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
173
votes
25 answers

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256

I get an error AWS::S3::Errors::InvalidRequest The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. when I try upload file to S3 bucket in new Frankfurt region. All works properly with US Standard…
Alexey
  • 2,326
  • 5
  • 17
  • 27
172
votes
16 answers

AWS Lambda Scheduled Tasks

Amazon announced AWS Lambda (http://aws.amazon.com/lambda/). The product description includes: Scheduled Tasks AWS Lambda functions can be triggered by external event timers, so functions can be run during regularly scheduled maintenance times…
Nathan H
  • 48,033
  • 60
  • 165
  • 247
171
votes
18 answers

How to upgrade AWS CLI to the latest version?

I recently noticed that I am running an old version of AWS CLI that is lacking some functionality I need: $aws --version aws-cli/1.2.9 Python/3.4.3 Linux/3.13.0-85-generic How can I upgrade to the latest version of the AWS CLI…
Borealis
  • 8,044
  • 17
  • 64
  • 112
171
votes
8 answers

Querying DynamoDB by date

I'm coming from a relational database background and trying to work with amazon's DynamoDB I have a table with a hash key "DataID" and a range "CreatedAt" and a bunch of items in it. I'm trying to get all the items that were created after a specific…
applechief
  • 6,615
  • 12
  • 50
  • 70
170
votes
32 answers

AWS error from Python: No module named lambda_function

I am creating a AWS Lambda python deployment package. I am using one external dependency requests. I installed the external dependency using the AWS documentation. Below is my Python code. import requests print('Loading function') s3 =…
Nithin
  • 9,661
  • 14
  • 44
  • 67
169
votes
24 answers

API Gateway CORS: no 'Access-Control-Allow-Origin' header

Although CORS has been set up through API Gateway and the Access-Control-Allow-Origin header is set, I still receive the following error when attempting to call the API from AJAX within Chrome: XMLHttpRequest cannot load…
Tyler
  • 3,616
  • 3
  • 22
  • 34
169
votes
7 answers

RRSet of type CNAME with DNS name foo.com. is not permitted at apex in zone bar.com

I own foo.com and bar.com. I am managing both in Route53. foo.com hosts my site, and I'd like to direct traffic from bar.com to foo.com. I tried to set up a CNAME record for bar.com pointing to foo.com, but I got the error message: RRSet of type…
fredley
  • 32,953
  • 42
  • 145
  • 236
168
votes
1 answer

What is the difference between the AWS boto and boto3

I'm trying to learn the boto API and I noticed that there are two major versions/packages for Python: boto and boto3. What is the difference between the AWS boto and boto3 libraries?
Matt
  • 3,592
  • 5
  • 21
  • 26
166
votes
13 answers

AWS ECS Error when running task: No Container Instances were found in your cluster

Im trying to deploy a docker container image to AWS using ECS, but the EC2 instance is not being created. I have scoured the internet looking for an explanation as to why I'm receiving the following error: "A client error…
cosbor11
  • 14,709
  • 10
  • 54
  • 69
164
votes
10 answers

What is the difference between Elastic Beanstalk and CloudFormation for a .NET project?

I have developed a .NET MVC application and have started playing around with AWS and deploying it via the Visual Studio Toolkit. I have successfully deployed the application using the Elastic Beanstalk option in the toolkit. As I was going over the…
164
votes
4 answers

How to fix apt-get: command not found on AWS EC2?

I installed Ubuntu 12.04 on my Amazon EC2 instance and am trying to install packages using apt-get, but I am getting the following error: sudo: apt-get: command not found Ubuntu comes with apt, so it should be there. How do I fix this?
Pat841
  • 2,663
  • 4
  • 17
  • 15
161
votes
14 answers

How to delete files recursively from an S3 bucket

I have the following folder structure in S3. Is there a way to recursively remove all files under a certain folder (say foo/bar1 or foo or foo/bar2/1 ..) foo/bar1/1/.. foo/bar1/2/.. foo/bar1/3/.. foo/bar2/1/.. foo/bar2/2/.. foo/bar2/3/..
priya
  • 24,861
  • 26
  • 62
  • 81
160
votes
6 answers

AWS: How to disable all services?

I was dorking around with AWS (and related services), hoping that I could stay in the Free Tier, like I do when I'm exploring Google App Engine. A few days ago, I get a letter from Amazon that they've charged me $33 or so for my 2 days of…
PaulProgrammer
  • 16,175
  • 4
  • 39
  • 56
159
votes
4 answers

What is CPU Credit Balance in EC2?

I came across CPU Credit Balance in EC2 monitoring . What is CPU Credit Balance?
Ramesh Murugesan
  • 4,727
  • 7
  • 42
  • 67
158
votes
20 answers

react router doesn't work in aws s3 bucket

I deployed my React website build/ folder into an AWS S3 bucket. If I go to www.mywebsite.com, it works and if I click on a tag to go to Project and About pages, it leads me to the right page. However, if I copy and send the page url or go straight…
Viet
  • 6,513
  • 12
  • 42
  • 74