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
189
votes
29 answers

Find region from within an EC2 instance

Is there a way to look up the region of an instance from within the instance? I'm looking for something similar to the method of finding the instance id.
Gary Richardson
  • 16,081
  • 10
  • 53
  • 48
188
votes
7 answers

EC2 Instance Cloning

Is it possible to clone a EC2 instance data and all?
Josh Scott
  • 3,790
  • 7
  • 29
  • 31
187
votes
10 answers

Amazon S3 direct file upload from client browser - private key disclosure

I'm implementing a direct file upload from client machine to Amazon S3 via REST API using only JavaScript, without any server-side code. All works fine but one thing is worrying me... When I send a request to Amazon S3 REST API, I need to sign the…
Olegas
  • 10,349
  • 8
  • 51
  • 72
186
votes
22 answers

Unable to verify secret hash for client in Amazon Cognito Userpools

I am stuck at "Amazon Cognito Identity user pools" process. I tried all possible codes for authenticating user in cognito userpools. But I always get error saying "Error: Unable to verify secret hash for client 4b*******fd". Here is…
Ronak Patel
  • 3,324
  • 4
  • 21
  • 31
185
votes
3 answers

Technically what is the difference between s3n, s3a and s3?

I'm aware of the existence of https://wiki.apache.org/hadoop/AmazonS3 and the following words: S3 Native FileSystem (URI scheme: s3n) A native filesystem for reading and writing regular files on S3. The advantage of this filesystem is that you can…
Hello lad
  • 17,344
  • 46
  • 127
  • 200
183
votes
4 answers

Opening port 80 EC2 Amazon web services

I've opened port 80 in the web console on my E2C instance's security group but I still can't access it via the public dns in the browser. Any ideas?
josh
  • 1,857
  • 2
  • 12
  • 3
182
votes
4 answers

Amazon S3 - HTTPS/SSL - Is it possible?

I saw a few other questions regarding this without any real answers or information (or so it appeared). I have an image here: http://furniture.retailcatalog.us/products/2061/6262u9665.jpg Which is redirecting…
Kerry Jones
  • 21,806
  • 12
  • 62
  • 89
181
votes
7 answers

How to save S3 object to a file using boto3

I'm trying to do a "hello world" with new boto3 client for AWS. The use-case I have is fairly simple: get object from S3 and save it to the file. In boto 2.X I would do it like this: import boto key =…
Vor
  • 33,215
  • 43
  • 135
  • 193
179
votes
12 answers

How do I install Python 3 on an AWS EC2 instance?

I'm trying to install python 3.x on an AWS EC2 instance and: sudo yum install python3 doesn't work: No package python3 available. I've googled around and I can't find anyone else who has this problem so I'm asking here. Do I have to manually…
Jake_Howard
  • 2,533
  • 2
  • 15
  • 13
177
votes
31 answers

Aws ecs fargate ResourceInitializationError: unable to pull secrets or registry auth

I am trying to run a private repository on aws-ecs-fargate-1.4.0 platform. For private repository authentication, I have followed the docs and it was working well. Somehow after updating existing service many times it goes fail to run the task and…
176
votes
8 answers

Nodejs AWS SDK S3 Generate Presigned URL

I am using the NodeJS AWS SDK to generate a presigned S3 URL. The docs give an example of generating a presigned URL. Here is my exact code (with sensitive info omitted): const AWS = require('aws-sdk') const s3 = new…
Dustin
  • 2,091
  • 3
  • 15
  • 13
175
votes
20 answers

AWS S3 CLI - Could not connect to the endpoint URL

$ aws s3 ls Could not connect to the endpoint URL: "https://s3.us-east-1a.amazonaws.com/" What could be the problem?
Prabhat
  • 4,066
  • 4
  • 34
  • 41
175
votes
20 answers

Retrieving subfolders names in S3 bucket from boto3

Using boto3, I can access my AWS S3 bucket: s3 = boto3.resource('s3') bucket = s3.Bucket('my-bucket-name') Now, the bucket contains folder first-level, which itself contains several sub-folders named with a timestamp, for instance 1456753904534. I…
mar tin
  • 9,266
  • 23
  • 72
  • 97
175
votes
19 answers

Amazon S3 exception: "The specified key does not exist"

I am using the AmazonS3Client in an Android app using a getObject request to download an image from my Amazon S3 bucket. Currently, I am getting this exception: com.amazonaws.services.s3.model.AmazonS3Exception: The specified key does not exist. …
user4592690
  • 1,871
  • 2
  • 10
  • 5
175
votes
15 answers

AWS CloudFront: Font from origin has been blocked from loading by Cross-Origin Resource Sharing policy

I'm receiving the following error on a couple of Chrome browsers but not all. Not sure entirely what the issue is at this point. Font from origin https://ABCDEFG.cloudfront.net has been blocked from loading by Cross-Origin Resource Sharing policy:…
Dallas Clark
  • 4,064
  • 3
  • 30
  • 36