Questions tagged [amazon-web-services]

Amazon Web Services (AWS) is a cloud service that offers IaaS (Infrastructure as a Service) and SaaS (Software as a Service) solutions. Only questions about programming in relation to AWS are on-topic. General server help can be obtained at https://serverfault.com. The AWS tag is rarely used alone and will usually be used with other tags to more clearly define the topic of the question.

If you need help setting up AWS resources, ask those questions on Server Fault.

AWS is a cloud service that offers IaaS (Infrastructure as a Service) and SaaS (Software as a Service).

SDKs to access and manage Amazon Web Services are provided in a multitude of programming languages, including PHP, Java, .NET, Node.js, Python, and more. The services are also accessible through REST and SOAP APIs, a command-line interface, and a web console.

Resources:

Related Tags

154810 questions
27
votes
2 answers

Is it possible to keep an AWS Lambda function warm?

There are a few pieces of my app that cannot afford the additional 1-2 second delay caused by the "freeze-thaw" cycle that Lambda functions go through when they're new or unused for some period of time. How can I keep these Lambda functions warm so…
samcorcos
  • 2,330
  • 4
  • 27
  • 40
27
votes
1 answer

What's the difference between elb health check and ec2 health check?

I'm a little confused about Elastic Load Balancer health check and Amazon EC2 health check. In Adding Health Checks to Your Auto Scaling Group it says: If you have attached one or more load balancers to your Auto Scaling group and an instance fails…
Ben
  • 541
  • 1
  • 5
  • 15
27
votes
1 answer

Terraform - Conditional Data Source

In terraform, is there any way to conditionally use a data source? For example: data "aws_ami" "application" { most_recent = true filter { name = "tag:environment" values = ["${var.environment}"] } owners =…
djt
  • 7,297
  • 11
  • 55
  • 102
27
votes
2 answers

AWS Elastic Beanstalk - Script timed out before returning headers: application.py

I have an existing Elastic Beanstalk flask app on AWS that occasionally will not initialize and gives the following error: [Mon Jan 23 10:06:51.550205 2017] [core:error] [pid 7331] [client 127.0.0.1:43790] script timed out before returning headers:…
user2752159
  • 1,182
  • 3
  • 13
  • 29
27
votes
3 answers

Cognito user pool authorizer With Serverless Framework

I need to authorize my API end point using aws cognito userpool. I can do it manually, but I need to automate the authorization part with the serverless framework. Does the Serverless framework have support for aws cognito? If so, how do we setup…
27
votes
3 answers

Why does AWS Lambda function always time out?

I am testing out aws lambda, using nodejs with the 4.3 version. I'm able to successfully complete all the statements in my handler function within the console test, which includes connecting to a mongodb host within our vpc. But, the function always…
wkhatch
  • 2,664
  • 7
  • 36
  • 45
27
votes
2 answers

Selecting other branch instead of master as a source repository on AWS CodeBuild

How to specify different branch instead of master branch on AWS code deploy while using Github as source provider ? I see there is no option to select in the console to select branch(may be I missed). I tried to checkout to different branch while we…
bravokeyl
  • 346
  • 3
  • 16
  • 28
27
votes
6 answers

How can I send multiple Set-Cookie headers from API Gateway using a proxied Lambda

I'm using API Gateway's Proxy integration to call a Lambda. The output format specification is this follow JSON format: { "statusCode": httpStatusCode, "headers": { "headerName": "headerValue", ... }, "body": "..." } In one response I wish to…
sihil
  • 2,563
  • 1
  • 17
  • 24
27
votes
1 answer

Creating an ALB Target Group in CloudFormation

I'm trying to create an Application Load Balancer in CloudFormation, with a target group that forwards traffic to EC2 instances. Here is the relevant snippet, where ELBSubnets, ECSCluster, taskdefinition, and VpcId are passed in as…
MungeWrath
  • 780
  • 1
  • 6
  • 12
27
votes
3 answers

AWS CodeCommit Error: git: 'credential-aws' is not a git command

I am new to Amazon Web Services world, and I am implementing Continuous Delivery to the company I work for. I followed AWS's [instructions to configure CodeCommit Service]…
27
votes
5 answers

Where are AWS data center locations listed?

I'm failing at Google search today. Is there a page that lists geolocations of the various Amazon AWS server farms? I want to use this data to pick the appropriate farm for a client on a web app, CDN-style. (This isn't programming, but it's for the…
easeout
  • 8,665
  • 5
  • 43
  • 51
27
votes
1 answer

AWS SQS message retention period

According to documentation the maximum SQS message retention period(MessageRetentionPeriod) is 14 days. After that time message will be deleted from the queue. Is any way with SQS to not lose these messages after their retention period expired? For…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
27
votes
2 answers

How to call a list of AWS Lambda permissions for a function

To allow a AWS service to invoke a lambda function you need to apply permissions. The json for this permission could look a little something like so: { "FunctionName": "someFunction", "StatementId": "1", "Action":…
James Jones
  • 3,850
  • 5
  • 25
  • 44
27
votes
3 answers

AWS Lambda TooManyRequestsException: Rate Exceeded

When attempting to execute an Amazon Web Services (AWS) Lambda function (many times) we were seeing the error: AWS Lambda TooManyRequestsException: Rate Exceeded How do we resolve this?
nelsonic
  • 31,111
  • 21
  • 89
  • 120
27
votes
9 answers

Using psycopg2 with Lambda to Update Redshift (Python)

I am attempting to update Redshift from a Lambda function using python. To do this, I am attempting to combine 2 code fragments. Both fragments are functional when I run them separately. Updating Redshift from PyDev for Eclipse import…