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
115
votes
5 answers

Setting CIDR/IP so anyone can access it from any IP?

How do you set a CIDR/IP so anyone can access it from anywhere? I'm trying to make my AWS RDS DB instance accessible from anywhere as my ISP doesn't give me a static IP. Everytime my IP changes I have to go change the security record.
Matt
  • 25,943
  • 66
  • 198
  • 303
115
votes
6 answers

How to Add a Column in DynamoDB

Is there a way to add a new column to existing table in DynamoDB in Amazon's AWS? Google didn't help, UpdateTable Query in http://docs.aws.amazon.com/cli/latest/reference/dynamodb/update-table.html?highlight=update%20table doesn't have any…
Arun Selva Kumar
  • 2,593
  • 3
  • 19
  • 30
115
votes
8 answers

Backup strategies for AWS S3 bucket

I'm looking for some advice or best practice to back up S3 bucket. The purpose of backing up data from S3 is to prevent data loss because of the following: S3 issue issue where I accidentally delete this data from S3 After some investigation I…
Sergey Alekseev
  • 11,910
  • 11
  • 38
  • 53
114
votes
4 answers

Is it possible to rename an AWS Lambda function?

I have created some AWS Lambda functions for testing purposes (named as test_function something), then after testing I found those functions can be used in prod environment. Is it possible to rename the AWS Lambda function? and how? Or should I…
Sabrina Luo
  • 3,810
  • 4
  • 16
  • 35
114
votes
10 answers

AWS EC2 Auto Scaling Groups: I get Min and Max, but what's Desired instances limit for?

When you setup an Auto Scaling groups in AWS EC2 Min and Max bounds seem to make sense: The minimum number of instances to scale down to based on policies The maximum number of instances to scale up to based on policies However, I've never been…
Ray
  • 40,256
  • 21
  • 101
  • 138
114
votes
10 answers

Why is this HTTP request not working on AWS Lambda?

I'm getting started with AWS Lambda and I'm trying to request an external service from my handler function. According to this answer, HTTP requests should work just fine, and I haven't found any documentation that says otherwise. (In fact, people…
awendt
  • 13,195
  • 5
  • 48
  • 66
113
votes
22 answers

aws ecr saying "Cannot perform an interactive login from a non TTY device" after copied cmd from "Amazon Container Services"

I am trying to set up docker image of amazon ECR on ubuntu18.04 machine of AWS,using commands provided by view push commands of Amazon Container Services ,please note i have already set up docker on my ubuntu18.04 and also output of docker -v is as…
Carolyn Cordeiro
  • 1,525
  • 3
  • 11
  • 26
113
votes
7 answers

How Do I Clear The Credentials In AWS Configure?

I have deleted the AWS credentials in sudo nano ~/.aws/config. But, the credentials are still in aws configure. Is there a way to reset aws configure with clear state?
ultraInstinct
  • 4,063
  • 10
  • 36
  • 53
113
votes
9 answers

AWS Lambda: Task timed out

We have been asked for my school project to write a Java code that runs in AWS Lambda. It is supposed to get the source code of the specific URLs and then upload it to an S3 bucket. The Java code should be running on AWS Lambda. I get the source…
jansv
  • 1,163
  • 2
  • 7
  • 9
113
votes
5 answers

What is the difference between scan and query in dynamodb? When use scan / query?

A query operation as specified in DynamoDB documentation: A query operation searches only primary key attribute values and supports a subset of comparison operators on key attribute values to refine the search process. and the scan operation: A…
samson
  • 1,549
  • 3
  • 13
  • 20
113
votes
5 answers

Nodejs - Invoke an AWS.Lambda function from within another lambda function

I have the following function which I use to invoke a Lambda function from within my code. However when I try to use it within a Lambda function, I get the following error: AWS lambda undefined 0.27s 3 retries] invoke({ FunctionName:…
hyprstack
  • 4,043
  • 6
  • 46
  • 89
113
votes
5 answers

AWS S3 pre signed URL without Expiry date

Is there any way that I can generate Pre-Signed URL's without any expiry date ? I'm developing a Email app where my attachments will be saved in S3. Also please let me know what is the best way to download attachments via JavaScript SDK. I'm using…
srinisunka
  • 1,159
  • 2
  • 7
  • 10
112
votes
11 answers

Read file from aws s3 bucket using node fs

I am attempting to read a file that is in a aws s3 bucket using fs.readFile(file, function (err, contents) { var myLines = contents.Body.toString().split('\n') }) I've been able to download and upload a file using the node aws-sdk, but I am at a…
Joel
  • 1,579
  • 3
  • 12
  • 19
111
votes
5 answers

What happens when I reboot an EC2 instance?

When I reboot an EC2 instance, do I get the initial image again, or is the state of the hard disk before the reboot kept? And what happens with billing, does the hour start again, or do I continue with the fraction of the hour I was in when I…
flybywire
  • 261,858
  • 191
  • 397
  • 503
111
votes
4 answers

How do you delete an AWS CloudWatch metric?

I am decommissioning a service in Amazon Web Services DynamoDB. We have various metrics and alarms for our DyDB tables. I am able to delete the alarms using 'aws cloudwatch delete-alarms --alarm-names ...' but I do not see any AWS CLI command to…
MoChaMan
  • 1,219
  • 2
  • 8
  • 6