Questions tagged [amazon-web-services]

Amazon Web Services (AWS) delivers a set of services that together form a reliable, scalable, and inexpensive computing platform "in the cloud". If you have a question about a specific web service, consider asking on its tag, e.g., amazon-ec2.

Filter by
Sorted by
Tagged with
21 votes
3 answers
39k views

EC2 Update my existing AMI

I'm using Elastic Load Balancing to load balance my Auto Scaling Group, for that I have a private AMI that hold my application server (Tomcat) and my web app deployed to it as war ... Now everything ...
Hadi Salem's user avatar
20 votes
3 answers
54k views

Highest value of max_connections in AWS RDS micro instance

Currently, the value for the max_connections parameter in a MySQL RDS t1.micro server model is {DBInstanceClassMemory/12582880} is 32. Since my server does not allowing any more connections after 32, ...
Vaibhav Dhage's user avatar
20 votes
2 answers
3k views

In AWS, does an hour of usage get charged just for an instance being in the "running" state?

When AWS documentation and pricing refer to "usage" does this simply mean "if the instance is on" instead of "if the instance is on and doing work". E.g., if I had an EC2 instance running but it was ...
Josh M.'s user avatar
  • 688
20 votes
2 answers
34k views

How to upload a file into S3 bucket using CloudFormation script?

How do I upload a file into my AWS S3 bucket CloudFormation template? AWSTemplateFormatVersion: '2010-09-09' Resources: S3Bucket: Type: AWS::S3::Bucket Properties: AccessControl: ...
Ayushi Garg's user avatar
20 votes
2 answers
6k views

Who's behind community AMIs on Amazon EC2?

I've been using AWS for years, but have never ventured outside the Quick Start and AWS Marketplace sections when launching an EC2 instance. The AMIs from the AWS Marketplace look trustable, they have ...
BenMorel's user avatar
  • 4,607
20 votes
3 answers
78k views

Download existing EC2 key pair

I am playing around with Amazon EC2 and have (finally) managed to SSH into the box from my home machine. Now I want to connect from my work machine but neglected to copy the key pair on a USB key. Is ...
Ben Everard's user avatar
20 votes
2 answers
16k views

AMI with or without reboot on AWS EC2

When creating AMI's from an EC2 instance I always check "no reboot", I've been wondering, what are the pros/cons of creating images with/without a reboot? Does keeping the server live affect the ...
Jamie Taylor's user avatar
20 votes
2 answers
28k views

Why don't I have permissions to edit an S3 bucket policy when logged on as the person who created the AWS account

I am new to AWS. I am setting up an S3 bucket that I want to use to store media files for a Django App I am developing. I am logged in as the person who created the AWS account, but when I click on ...
RLBChrisBriant's user avatar
20 votes
2 answers
29k views

How do I get AWS CloudFormation to recreate a resource I manually deleted?

I'm experimenting with CloudFormation right now. I deployed a stack that included an AutoScalingGroup (and LaunchConfig and CloudFormation::Init), LoadBalancer, a single EC2 instance (and ...
gregmac's user avatar
  • 1,609
20 votes
1 answer
88k views

How to add user with SFTP/ FTP access to '/var/www/html/website_abc' folder on Amazon EC2 Centos?

Possible Duplicate: Linux directory permissions I'm working with some third-party developers and I would like to grant SFTP (or FTP) access to the root folder for a website they're working on i.e....
ericn's user avatar
  • 553
19 votes
3 answers
42k views

Can't find the private IP address for my Amazon-RDS instance

I moved my Master/slave database architecture to Amazon RDS and everything works fine. But I have a slave out of the RDS service which should keep sync with the new Master server, to do so I have to ...
Imad Touil's user avatar
19 votes
4 answers
68k views

How do I set an MX record in Route53 for a GoDaddy domain?

Can't seem to find an answer to this question on AWS' forum, not in the Route53 manual, nor on Stackoverflow/Serverfault in a way that makes sense...and GoDaddy's support sure as heck ain't got an ...
Sean's user avatar
  • 508
19 votes
6 answers
49k views

Docker login to AWS ECR from GitLab CI fails with "dial tcp: lookup docker on x.x.x.x:53: no such host" when pulling docker:dind from ECR

I'm working on porting a collection of Docker images used for GitLab CI/CD building and deployment from Dockerhub to AWS public ECR. Everything works as it should except for the standard Docker image ...
Alex B.'s user avatar
  • 191
19 votes
1 answer
4k views

Does Heartbleed affect AWS Elastic Load Balancer?

The Heartbleed OpenSSL vulnerability (http://heartbleed.com/) affects OpenSSL 1.0.1 through 1.0.1f (inclusive) I use Amazon Elastic Load Balancer to terminate my SSL connections. Is ELB vulnerable?
secretmike's user avatar
19 votes
4 answers
19k views

How to allow elastic load balancer through port 80 in security groups?

I want to temporarily block port 80 for the outside world, but want the load balancer to pass through the firewall (via security group) so it won't see the instance as unhealthy. How can I do that? ...
Liron Harel's user avatar
19 votes
3 answers
17k views

Can I re-use an EBS volume with AWS ASG?

I want to create an ASG such that I can reuse existing EBS volumes (because I have persistent data on those volumes) to new EC2 instances that are instantiated via ASG. Is this possible? Update ...
steve landiss's user avatar
19 votes
2 answers
76k views

/etc/security/limits.conf soft nproc limit appears to be ignored

My MongoDB database was running into problems under load, with the following errors spamming the logs: [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable [initandlisten] ...
John M's user avatar
  • 333
19 votes
6 answers
20k views

Amazon EC2 Security Group inbound rule with a dynamic IP

I'm looking for clarification on what I see as a potential problem with EC2 Security Groups. I'm setting up a Security Group for connecting to linux instances. I've created "anywhere" rules for HTTP ...
Will Byrne's user avatar
19 votes
3 answers
15k views

AWS ElastiCache/SimpleQueue vs DynamoDB

I'm wondering about the rationale for using ElastiCache/SimpleQueue vs just having "Cache" and "Queue" tables inside of DynamoDB respectively. It seems that the network latency to the Cache/Queue ...
Scott Klarenbach's user avatar
18 votes
5 answers
34k views

Is it possible to get aws ec2 instance id based on its IP address

I have list of IP addressed, I want to find if instances associated with the IP address are still running or terminated. I am launching and terminating lot of instances on daily basis, just want to ...
Ramesh Kumar's user avatar
  • 1,780
18 votes
5 answers
31k views

Deny IP address on AWS ELB

I've, more or less, following configuration on AWS: Elastic load balancer with 3 machines o 3 different availability zones. My security group allows 0.0.0.0/0:80 as it's my rails application (nginx, ...
boris quiroz's user avatar
  • 1,200
18 votes
6 answers
31k views

Use IAM to Allow User to Edit AWS / EC2 Security Groups?

I am trying to grant an IAM group the ability to edit our EC2 Security Groups, but I have been unable to get this working without granting access to everything in EC2. I have tried several versions ...
Chris's user avatar
  • 353
18 votes
3 answers
11k views

Why is my "volume bytes used" always increasing on my Amazon Aurora cluster?

I have an Amazon (AWS) Aurora DB cluster, and every day, its [Billed] Volume Bytes Used is increasing. I have checked the size of all my tables (in all my databases on that cluster) using the ...
Guillaume Boudreau's user avatar
18 votes
1 answer
10k views

What is an Amazon Route53 "Alias" DNS record?

AWS Route53 Alias value Consider a domain registered on AWS Route53. HTTP requests to this domain should be served from a AWS CloudFront CDN distribution. In order to achieve this, an alias A record ...
Adam Matan's user avatar
  • 13.6k
18 votes
1 answer
21k views

2 ELBs (ALBs) to 1 target group, possible?

I have the following scheme: Internet <-> elb1external <-> varnish <-> elb2internal <-> targetgroupofwebnodes But some /static/* & /media/* are routed to targetgroupofwebnodes from ...
GTXBxaKgCANmT9D9's user avatar
18 votes
1 answer
17k views

Allow traffic from any instance in AWS VPC

'm trying to create a security group that allows all inbound traffic originating from within my VPC. I thought I could simply specify my CIDR block, but that doesn't seem to work and requests fail ...
LuxuryMode's user avatar
18 votes
2 answers
21k views

Is there a way to stop the AWS Elasticsearch?

I setup an AWS Elasticsearch Domain recently but I didn't see a way to stop it (like you can with an EC2 instance), which means I'm continuously billed. At this stage I just need to do some testing ...
codecraig's user avatar
  • 387
18 votes
5 answers
17k views

Install of MySQL hangs on Ubuntu 16.04

I’m trying to install MySQL server on Ubuntu 16.04 using: sudo apt-get install mysql-server I get asked to set and confirm root password and then the install hangs at: Renaming removed key_buffer ...
panthro's user avatar
  • 385
18 votes
2 answers
3k views

Which AWS features are EBS backed?

I recently read an article AWS: The good, the bad and ugly, which mentioned that they've moved off of all EBS backed AWS features. What features are explicity (EBS backed EC2 instances) or implicitly (...
Jake McGraw's user avatar
18 votes
3 answers
18k views

How to stop elastic beanstalk without terminating?

Is there any way to stop an elastic beanstalk environment as opposed to terminating it? There are times during testing that I would prefer to stop the environment so that I'm not being charged. ...
nu everest's user avatar
18 votes
4 answers
47k views

How do a I edit .conf file for a postgres AWS RDS?

I would like to alter pg_hba.conf in my postgres RDS instance so that I can use cert authentication. I have found the Parameters Group manager in the RDS which allows me to alter parameters but it ...
Steven Noble's user avatar
18 votes
6 answers
10k views

How to upgrade to the latest AMI in AWS Elastic Beanstalk?

I'm running an application on AWS Elastic Beanstalk, and it looks like I need to create a new environment if I want to use the latest AMI. If I knew what the latest AMI id was, I could update it in ...
BenMorel's user avatar
  • 4,607
17 votes
1 answer
25k views

Elastic Beanstalk stuck for more than 12 hrs

I have an EB application that is stuck with this error: Failed Environment update activity. Reason: Internal Failure. I can not abort anything and I cannot change any configuration.. I dont know what ...
adiego73's user avatar
  • 171
17 votes
4 answers
43k views

Is it possible to change the EBS volume to different availability zones?

I have a server created in "eu-west-1c" availability zone and I tried to attach the volume created in "eu-west-1a" availability zone to "eu-west-1c" but the server created in "eu-west-1c" is not ...
Shankar's user avatar
  • 259
17 votes
2 answers
19k views

What is the HeavyUsage charge on AWS EC2?

I have a new charge on my AWS account yesterday (~$40). When I dug in a bit it comes from a category called USW2-HeavyUsage:r4.large($). I know what the USW2 is for and what the r4.large is for. What ...
Joe B's user avatar
  • 373
17 votes
1 answer
31k views

How to “switch role” in aws-cli?

I'm contracting for a company that has multiple aws accounts. They gave me access to the Login account and I "Switch Role" in the web console to the Project account I work on. In the web gui it works. ...
potom's user avatar
  • 370
17 votes
2 answers
23k views

How to avoid GRUB errors after running apt-get upgrade - Ubuntu

I'm running ubuntu 14.04 on an EC2. After running apt-get upgrade, I'm prompted with a screen that asks me to reinstall GRUB boot loader The GRUB boot loader was previously installed to a disk ...
Ofer Velich's user avatar
17 votes
3 answers
9k views

How to automatically update nginx upstream server list when aws ec2 hostname changes or increases?

I want to setup autoscaling in AWS. I don't want to use Elastic Load Balancer. Autoscalling in Amazon creates EC2 instances seamlessly during demand spikes to maintain performance, and decreases ...
Luis Lobo Borobia's user avatar
16 votes
2 answers
14k views

Can FindInMap return a list?

I'm using CloudFormation to deploy an ELB to a pre-existing VPC which has pre-existing Subnets. I've listed the subnets in a Mappings section of the template and select the mapping based on the ...
user3188040's user avatar
16 votes
2 answers
8k views

AWS - removing ec2-user from sudo list

I'm running a production-level Amazon ec2 instance, and I want to close out root privileges to all users. Normally, when one logs in to the instance as ec2-user, the ec2-user immediately gets sudo ...
Nicholas Finch's user avatar
16 votes
3 answers
23k views

Install AWS SSL Certificate to EC2 instance without load balancer

I'm new with AWS and facing some confusion with ACM SSL certificate installation to an EC2 instance. Is it possible to install the certificate without using ELB or Cloudfront. I don't need load ...
kevenlolo's user avatar
  • 263
16 votes
2 answers
14k views

How can I use port tunneling to connect to a private database instance through a network bastion?

I have a network bastion which is publicly accessible at example.compute-1.amazonaws.com and a private postgres database instance at postgres.example.us-east-1.rds.amazonaws.com:5432 I can ssh into ...
Snubber's user avatar
  • 323
16 votes
2 answers
36k views

How does one point a domain to a load balancer that doesn't have a stable IP?

I'm trying to point mydomain.eu to an AWS load balancer, which, by its nature, does not have a stable IP, so I think I'm supposed to point the A record to a subdomain at Amazon, but as far as I can ...
Elver Loho's user avatar
16 votes
3 answers
10k views

Backing up data stored on Amazon S3

I have an EC2 instance running a web server that stores users' uploaded files to S3. The files are written once and never change, but are retrieved occasionally by the users. We will likely accumulate ...
Fiver's user avatar
  • 213
16 votes
5 answers
16k views

in cloudformation is it possible to create a reusable string?

i have a string the is formed from a number of variables which i use for many different things such as Tags and host names. is there a way of creating a reusable string that i can just Ref though ...
Graeme's user avatar
  • 670
15 votes
4 answers
47k views

Amazon S3 Console: How to find total number of files with in a folder? [duplicate]

So I can see S3 console and can get into my folder with files listing but I don't find way to find total number of files in it other than going thru pagination which does not work considering ...
Volatil3's user avatar
  • 275
15 votes
3 answers
10k views

What is the difference between AWS site-to-site VPN and AWS client VPN?

I know that site-to-site is using IPSec (layer 3), but client is using TLS (application layer). It seems like both are actually site to site vpns after reading articles/ docs online. I guess the ...
Ben Butterworth's user avatar
15 votes
2 answers
20k views

What is ephemeral storage good for?

I have been reading about the ephemeral storage with amazon ec2 and am trying to figure out what is the best way to use the 100s of GBs they supply you. If it isn't persistent, what can it be good for?...
user67457's user avatar
  • 227
15 votes
2 answers
32k views

What algorithm does Amazon ELB use to balance load?

I found this in the official ELB documentation By default, a load balancer routes each request independently to the application instance with the smallest load. but an article on Newvem says ...
kn330's user avatar
  • 837
15 votes
1 answer
9k views

AWS AMI Add "create volume" permissions to the following associated snapshots when creating permissions

What does the significance of the Add "create volume" permissions to the following associated snapshots when creating permissions indicate when we share an AMI to a different account ? Can this be ...
Naveen Vijay's user avatar