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
99
votes
7 answers

Reading an JSON file from S3 using Python boto3

I kept following JSON in S3 bucket 'test' { 'Details' : "Something" } I am using following code to read this JSON and printing the key 'Details' s3 = boto3.resource('s3', aws_access_key_id=, …
Nanju
  • 1,011
  • 1
  • 7
  • 9
99
votes
14 answers

AWS: can't connect to RDS database from my machine

The EC2 instance/live web can connect just fine to the RDS database. But when I want to debug the code in my local machine, I can't connect to the database and got this error: OperationalError: (2003, "Can't connect to MySQL server on…
Aminah Nuraini
  • 18,120
  • 8
  • 90
  • 108
98
votes
12 answers

What is the difference between scalability and elasticity?

I've heard many people using both terms interchangeably. However, in my opinion there is difference between them: SCALABILITY - ability of a software system to process higher amount of workload on its current hardware resources (scale up) or on…
Miroslav Dzhokanov
  • 1,084
  • 1
  • 8
  • 8
98
votes
9 answers

Cannot use Requests-Module on AWS Lambda

I need to do a rest-call within a python script, that runs once per day. I can't pack the "requests" package into my python-package using the AWS Lambdas. I get the error: "Unable to import module 'lambda_function': No module named…
codepleb
  • 10,086
  • 14
  • 69
  • 111
98
votes
4 answers

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

AWS has come up with a new service AWS Certificate Manager. One thing I got from the description is that if we are using this service we don't have to pay for the certificate anymore. They are providing certificates for Elastic Load Balancer (ELB)…
Bhavik Joshi
  • 2,557
  • 6
  • 24
  • 48
98
votes
10 answers

How to make 10,000 files in S3 public

I have a folder in a bucket with 10,000 files. There seems to be no way to upload them and make them public straight away. So I uploaded them all, they're private, and I need to make them all public. I've tried the aws console, it just gives an…
PeterV
  • 2,792
  • 3
  • 20
  • 22
98
votes
11 answers

Alter column data type in Amazon Redshift

How to alter column data type in Amazon Redshift database? I am not able to alter the column data type in Redshift; is there any way to modify the data type in Amazon Redshift?
user1485267
  • 1,295
  • 2
  • 10
  • 19
97
votes
9 answers

AWS sts assume role in one command

To assume an AWS role in the CLI, I do the following command: aws sts assume-role --role-arn arn:aws:iam::123456789123:role/myAwesomeRole --role-session-name test --region eu-central-1 This gives to me an output that follows the schema: { …
Arcones
  • 3,954
  • 4
  • 26
  • 46
97
votes
7 answers

What would be the AWS equivalent to Firebase Realtime Database?

I'm working on a new game project at the moment that will consist of a React Native front-end and a Lambda-based back-end. The app requires some real time features such as active user records, geofencing, etc. I was looking at Firebase's Realtime…
97
votes
7 answers

How do you delete an AWS ECS Task Definition?

Once you've created a task definition in Amazon's EC2 Container Service, how do you delete or remove it?
wjimenez5271
  • 2,027
  • 2
  • 17
  • 24
97
votes
9 answers

Formatting DynamoDB data to normal JSON in AWS Lambda

I'm using AWS Lambda to scan data from a DynamoDB table. This is what I get in return: { "videos": [ { "file": { "S": "file1.mp4" }, "id": { "S": "1" }, "canvas": { "S": "This is Canvas1" …
Chaitanya
  • 1,440
  • 1
  • 14
  • 26
97
votes
5 answers

How do I set the name of the default profile in AWS CLI?

When I give the command aws config list, I get the following output for the default profile: Name Value Type Location ---- ----- ---- -------- profile …
TheRookierLearner
  • 3,643
  • 8
  • 35
  • 53
97
votes
10 answers

how to add cache control in AWS S3?

I have moved 20000 files to AWS S3 by s3cmd command. Now i want to add cache-control for all images (.jpg) These files are located in ( s3://bucket-name/images/ ). How can i add cache-control for all images by s3cmd or is there any other way to add…
Rajaraman
  • 1,637
  • 5
  • 19
  • 24
97
votes
19 answers

AWS Elastic Beanstalk, running a cronjob

I would like to know if there is a way to setup a cronjob/task to execute every minute. Currently any of my instances should be able to run this task. This is what I have tried to do in the config files without success: container_commands: …
Onema
  • 7,331
  • 12
  • 66
  • 102
96
votes
5 answers

AWS CloudFront redirecting to S3 bucket

I have created a CloudFront distribution to serve the static website. S3 is origin server. Now if we access CloudFront URL, it redirects to S3 location. d2s18t7gwlicql.cloudfront.net or test.telekha.in In the browser it is…
Rajneesh
  • 2,185
  • 4
  • 20
  • 30