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
123
votes
28 answers

How do I delete a versioned bucket in AWS S3 using the CLI?

I have tried both s3cmd: $ s3cmd -r -f -v del s3://my-versioned-bucket/ And the AWS CLI: $ aws s3 rm s3://my-versioned-bucket/ --recursive But both of these commands simply add DELETE markers to S3. The command for removing a bucket also doesn't…
122
votes
4 answers

Static hosting on Amazon S3 - DNS Configuration

I'm working on a little webapp (all client-side) I want to host it on Amazon S3. I've found several guides on this and have managed to create myself a bucket (with the same name as my domain), set it as a website and upload some content. Where I'm…
Merlin Mason
  • 1,607
  • 2
  • 12
  • 14
122
votes
7 answers

How to use auto increment for primary key id in dynamodb

I am new to dynamodb. I want to auto increment id value when I use putitem with dynamodb. Is possible to do that?
pranay
  • 1,399
  • 3
  • 10
  • 8
122
votes
14 answers

How to find unused Amazon EC2 security groups

I'm try to find a way to determine orphan security groups so I can clean up and get rid of them. Does anyone know of a way to discover unused security groups. Either through the console or with the command line tools will work (Running command line…
Ray
  • 40,256
  • 21
  • 101
  • 138
122
votes
8 answers

Amazon RDS: Restore snapshot to existing instance

I have created a snapshot of my instance and made some unwanted changes in DB. Now I want to restore my instance from this snapshot. When I try to do it - it creates me one more instance, additionally to the one I have. I specify "DB Instance…
SmxCde
  • 5,053
  • 7
  • 25
  • 45
121
votes
12 answers

Using an API key in Amazon API Gateway

I have created an API Key and added it to my functions. I have then deployed the api and tested it but still get: "message": "Forbidden" How do I pass the api key with my JSON request as I have been using "x-api-key": "theKey"?
cdub
  • 24,555
  • 57
  • 174
  • 303
121
votes
9 answers

AWS IAM Role vs Group

The AWS official site reads role as a collection of permissions and group as a collection of users. But still they look the same to me. You attach policies to groups or roles, and then assign groups or roles to a user. What exactly are the…
Dustin Sun
  • 5,292
  • 9
  • 49
  • 87
121
votes
12 answers

Is there a way to change the http status codes returned by Amazon API Gateway?

For instance if I want to return a specific 400 error for invalid parameters or perhaps a 201 when the lambda function call resulted in a create. I'd like to have different http status codes but it looks like api gateway always returns a 200 status…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
120
votes
11 answers

How to determine if object exists AWS S3 Node.JS sdk

I need to check if a file exists using AWS SDK. Here is what I'm doing: var params = { Bucket: config.get('s3bucket'), Key: path }; s3.getSignedUrl('getObject', params, callback); It works but the problem is that when the object doesn't…
Maurício Giordano
  • 3,116
  • 4
  • 32
  • 60
120
votes
2 answers

How long should I wait after applying an AWS IAM policy before it is valid?

I'm adding and removing AWS IAM user policies programmatically, and I'm getting inconsistent results from the application of those policies. For example, this may or may not succeed (I'm using the Java 1.6.6 SDK): Start with a user that can read…
119
votes
1 answer

What is the maximum length of a filename in S3

Maybe I'm blind but i can't find, in S3 documentation, the maximum file name length that can be uploaded in S3.
ohe
  • 3,461
  • 3
  • 26
  • 50
119
votes
10 answers

Read file content from S3 bucket with boto3

I read the filenames in my S3 bucket by doing objs = boto3.client.list_objects(Bucket='my_bucket') while 'Contents' in objs.keys(): objs_contents = objs['Contents'] for i in range(len(objs_contents)): filename =…
mar tin
  • 9,266
  • 23
  • 72
  • 97
118
votes
11 answers

AWS ECR GetAuthorizationToken

I've tried to follow AWS instructions on setting ECR authorization to my user by giving the AmazonEC2ContainerRegistryFullAccess policy to my user. However when I try to run on my PC the aws ecr get-login I get an error that I don't have…
Y. Eliash
  • 1,808
  • 3
  • 14
  • 23
118
votes
9 answers

Can you connect to Amazon ElastiСache Redis outside of Amazon?

I'm able to connect to an ElastiCache Redis instance in a VPC from EC2 instances. But I would like to know if there is a way to connect to an ElastiCache Redis node outside of Amazon EC2 instances, such as from my local dev setup or VPS instances…
117
votes
8 answers

Amazon AWS Filezilla transfer permission denied

I have my instance of the Amazon AWS running, test page is up. I am trying to SFTP the files to the server to display my website. I have Filezilla connected to the AWS server but when I try to move the files from my local machine to the…
zburns12
  • 1,783
  • 3
  • 15
  • 16