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
158
votes
26 answers

kubectl error You must be logged in to the server (Unauthorized) when accessing EKS cluster

I have been trying to follow the getting started guide to EKS. When I tried to call kubectl get service I got the message: error: You must be logged in to the server (Unauthorized) Here is what I did: 1. Created the EKS cluster. 2. Created the…
Itay k
  • 4,163
  • 4
  • 31
  • 39
157
votes
4 answers

ValidationError Stack:arn aws cloudformation stack is in ROLLBACK_COMPLETE state and can not be updated

When I deploy using cloudformation aws cloudformation deploy --region $region --stack-name ABC I get the error: An error occurred (ValidationError) when calling the…
Thanh Nguyen Van
  • 10,292
  • 6
  • 35
  • 53
157
votes
10 answers

Amazon S3 Change file download name

I have files stored on S3 with a GUID as the key name. I am using a pre signed URL to download as per S3 REST API I store the original file name in my own Database. When a user clicks to download a file from my web application I want to return…
Daveo
  • 19,018
  • 10
  • 48
  • 71
156
votes
13 answers

Force CloudFront distribution/file update

I'm using Amazon's CloudFront to serve static files of my web apps. Is there no way to tell a cloudfront distribution that it needs to refresh it's file or point out a single file that should be refreshed? Amazon recommend that you version your…
Martin
  • 5,197
  • 11
  • 45
  • 60
155
votes
14 answers

Pipe a stream to s3.upload()

I'm currently making use of a node.js plugin called s3-upload-stream to stream very large files to Amazon S3. It uses the multipart API and for the most part it works very well. However, this module is showing its age and I've already had to make…
womp
  • 115,835
  • 26
  • 236
  • 269
155
votes
6 answers

What is the difference between Amazon S3 and Amazon EC2 instance?

I need to create a web application using php mysql and html. The no.of requests and data will be very high. I need Amazon server space. I read the Amazon documentation and found that S3 is a storage that provides a simple web services interface. EC2…
Sangam254
  • 3,415
  • 11
  • 33
  • 43
155
votes
13 answers

.htaccess ErrorDocument 404 not showing up

I have a server from AWS EC2 service running on Linux ubuntu and I have installed apache, php, and mysql. I have added a .htaccess file in my document root /var/www/html. I entered this code in it: ErrorDocument 404 /var/www/html/404.php and it is…
Shalin Shah
  • 8,145
  • 6
  • 31
  • 44
154
votes
11 answers

Growing Amazon EBS Volume sizes

I'm quite impressed with Amazon's EC2 and EBS services. I wanted to know if it is possible to grow an EBS Volume. For example: If I have a 50 GB volume and I start to run out of space, can I bump it up to 100 GB when required?
Nikhil Gupte
  • 3,266
  • 4
  • 25
  • 15
154
votes
4 answers

Quick way to get AWS Account number from the AWS CLI tools?

Looking for a quick way to pull my account number, I had originally thought of using aws iam get-account-authorization-details --max-items 1 but there are several issues with doing it this way. Is there a way to do this that might not cross account…
ehime
  • 8,025
  • 14
  • 51
  • 110
154
votes
6 answers

How to Configure SSL for Amazon S3 bucket

I am using an Amazon S3 bucket for uploading and downloading of data using my .NET application. Now my question is: I want to access my S3 bucket using SSL. Is it possible to implement SSL for an Amazon s3 bucket?
Syam kumar
  • 1,721
  • 3
  • 12
  • 5
153
votes
7 answers

Error "You must specify a region" when running any aws CLI command

I am trying to use aws container service as per the documentation in http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_GetStarted.html The below error is thrown when running the command: aws ecs list-container-instances --cluster…
user859375
  • 3,529
  • 5
  • 21
  • 22
153
votes
17 answers

How to upload a file to directory in S3 bucket using boto

I want to copy a file in s3 bucket using python. Ex : I have bucket name = test. And in the bucket, I have 2 folders name "dump" & "input". Now I want to copy a file from local directory to S3 "dump" folder using python... Can anyone help me?
Dheeraj Gundra
  • 1,585
  • 2
  • 10
  • 9
150
votes
9 answers

What is the recommended way to delete a large number of items from DynamoDB?

I'm writing a simple logging service in DynamoDB. I have a logs table that is keyed by a user_id hash and a timestamp (Unix epoch int) range. When a user of the service terminates their account, I need to delete all items in the table, regardless of…
Tyler
  • 2,699
  • 4
  • 22
  • 31
150
votes
5 answers

What data type should be used for timestamp in DynamoDB?

I am new to DynamoDB. I wish to create a table which using DeviceID as the hash key, Timestamp as my range key and some data. { DeviceID: 123, Timestamp: "2016-11-11T17:21:07.5272333Z", X: 12, Y: 35 } In SQL, we can use datetime type for Timestamp,…
Dennis
  • 3,528
  • 4
  • 28
  • 40
148
votes
4 answers

Why do we need private subnet in VPC?

There are 4 scenarios in AWS VPC configure. But let's look at these two: Scenario 1: 1 public subnet. Scenario 2: 1 public subnet and 1 private subnet. Since any instance launched in public subnet does not have EIP (unless it's assigned), it is…
Tommy
  • 7,400
  • 4
  • 30
  • 26