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
6 answers

Elastic Load Balancing both internal and internet-facing

We are trying to use Elastic Load Balancing in AWS with auto-scaling so we can scale in and out as needed. Our application consists of several smaller applications, they are all on the same subnet and the same VPC. We want to put our ELB between one…
engma
  • 1,849
  • 2
  • 26
  • 55
27
votes
5 answers

How to check if Python app is running within AWS lambda function?

I've got a Python application that connects to a database and I would like the db credentials to be different when it's running in local env (for testing) or within a lambda function (for production). Is there any way, from the Python app, to detect…
laurent
  • 88,262
  • 77
  • 290
  • 428
27
votes
2 answers

How to use AWS CLI to only copy files in S3 bucket that match a given string pattern

I'm using the AWS CLI to copy files from an S3 bucket to my R machine using a command like below: system( "aws s3 cp s3://my_bucket_location/ ~/my_r_location/ --recursive --exclude '*' --include '*trans*' --region us-east-1" ) This works…
Sam Gilbert
  • 1,642
  • 3
  • 21
  • 38
27
votes
3 answers

Boto3: grabbing only selected objects from the S3 resource

I can grab and read all the objects in my AWS S3 bucket via s3 = boto3.resource('s3') bucket = s3.Bucket('my-bucket') all_objs = bucket.objects.all() for obj in all_objs: pass #filter only the objects I need and…
mar tin
  • 9,266
  • 23
  • 72
  • 97
27
votes
1 answer

Amazon AWS: How to get details of terminated EC2 instance from instance id

One of our EC2 instance went missing from running instance list, probably it got terminated accidentally by someone. In cloudtrail events, I can see some terminate instance events along with event time, user and instance id's which got…
prashant
  • 969
  • 3
  • 11
  • 22
27
votes
5 answers

CloudFormation, apply Condition on DependsOn

The task that I need to do is make CDN depend on a S3 bucket. But we want to make it use the existing bucket rather than creating a new one. Here is the sample code that I am trying: "Parameters" : { "UseExistingBucket" : { "Description" :…
27
votes
9 answers

How to test aws lambda functions locally

I have a mobile application backend developed with node.js express. I tried it to deploy it as lambda service. For that I created a Serverless Framework project (https://github.com/serverless). Previously I tested mobile app locally by starting…
27
votes
3 answers

Where does the owner *name* for an S3 bucket/AWS account come from?

This feels like it should be really obvious, but I can't find any clues. I've just started using S3 on AWS. I set up a new free account linked with my Amazon account. When I create a bucket, the name of the owner of the bucket is different from my…
pjohnkeane
  • 373
  • 3
  • 5
27
votes
3 answers

GZIP Compression on static Amazon S3 files

I would like to implement GZIP compression on my site. I've implemented it on IIS and the HTML page is compressed successfully as expected. Now the issue is with CSS and JS file, which I get from Amazon S3. They are not at all compressed. I wanted…
RaJesh RiJo
  • 4,302
  • 4
  • 25
  • 46
27
votes
8 answers

How to get the Cognito Identity id in AWS Lambda

How can I get the identity id of the user (logged in by AWS Cognito) that invoked an AWS Lambda function? Do I have to use the SDK on the Lambda function to get the identity id?
Renan
  • 470
  • 1
  • 5
  • 9
27
votes
4 answers

Environment variables using AWS CodeDeploy

I have a web application that utilizes environment variables for some of its configuration (DB credentials, API keys, etc). I'm currently using Elastic Beanstalk for deployment and can easily set these from within AWS, which is great because I don't…
Jeff
  • 6,643
  • 3
  • 25
  • 35
27
votes
4 answers

install redis on aws micro instance

I need to install redis in amazon cloud. I need it as a part of my npm module kue (deployment). Can anyone link me step by step tutorial or explain how to do it, considering the fact that I'm not good to bad with linux and administration.
user732456
  • 2,638
  • 2
  • 35
  • 49
27
votes
2 answers

Understanding AWS ELB Latency

I'm keen to understand exactly what the ELB Latency Statistic provided by CloudWatch means. According to the docs: ELB Latency: "Measures the time elapsed in seconds after the request leaves the load balancer until the response is…
sungiant
  • 3,152
  • 5
  • 32
  • 49
27
votes
6 answers

Java 8 application on EC2

I was wondering if anyone knows if it will be possible for me to install Java 8 on an EC2 instance. My application is packed as a fat jar with embedded jetty, so the Java 8 runtime alone should be sufficient. I'm not too familiar with Linux, and I…
Rune Aamodt
  • 2,551
  • 2
  • 23
  • 27
27
votes
2 answers

Could not connect to Redis node on aws

I'm a newbie in some of the AWS services. I was following this documentation link: http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/GettingStarted.ConnectToCacheNode.Redis.html And I already installed redis-cli with brew in my…
Andres
  • 351
  • 1
  • 4
  • 11
1 2 3
99
100