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.

8595 questions
3
votes
2 answers

Connecting to an RDS from an EC2 on the same VPC

I have an RDS instance running on one subnet without NAT, and an EC2 instance running on another subnet with an Internet Gateway configured, both located in the same VPC. I have configured the RDS instance to not be publicly accessible. I am using…
Theodore
  • 133
  • 1
  • 1
  • 5
3
votes
1 answer

AWS auto-scaling policy - scaling-up too often

We have AWS auto-scaling policy configured for our Linux machine, but for some reason when I checked the scaling activity I realised that it triggers multiple 2-3 machines during very short span of minutes as you can see here: Activity…
3
votes
4 answers

Automatically create CloudWatch Alarms for Autoscaling instances

We use some basic CloudWatch alarms on our EC2 instances to perform notification via SNS of high CPU, etc. Is there a good way to automatically apply our standard alarm configuration to new EC2 instances spun up by an Auto Scaling Group?
stdout
  • 243
  • 1
  • 3
  • 10
3
votes
1 answer

aws billing alerts can not be disabled?

I have a free tier aws account, in Billing preferences. I see in the second option that once enabled cannot be disabled, Why? also there is a new budget. what's the difference to alerts?
3
votes
2 answers

Packer - AWS Windows 2016 SysPrep returns exit code 1

When attempting to SysPrep an AWS Windows Server 2016 instance using Packer the following error is thrown: Build 'amazon-ebs' errored: Script exited with non-zero exit status: 1. Allowed exit codes are: [0] I'm calling the SysprepInstance.ps1…
Castrohenge
  • 422
  • 1
  • 7
  • 13
3
votes
0 answers

Deploying CloudWatch Agent Config to Elastic Beanstalk

I have two environments (production, staging) within an Elastic Beanstalk environment and wanted to set up CloudWatch Agent logging for the EC2 instances being used with these environments. When reading the EB Cloudwatch logs how to, the process…
cphill
  • 197
  • 1
  • 1
  • 12
3
votes
3 answers

Getting EC2 access

Disclaimer: I'm a bit of a n00b when it comes to AWS / EC2 I need to do some work on a clients EC2 instance. To do this we're after FTP access. From what I've worked out (I could be wrong) to access the servers I need the PEM/ssh files that were…
Shane Jones
  • 141
  • 3
3
votes
2 answers

How to use a AWS EC2 Iam role with Ansible

I am running Ansible on an EC2 instance with an assigned Iam role. I am running this playbook: $ cat s3.yaml --- - hosts: localhost remote_user: ec2-user tasks: - name: download ec2.py from s3 s3: bucket: mybucket …
3
votes
2 answers

With Terraform, how does one go about recycling root EC2 instance volumes?

I'm wondering if anyone has tackled making an EC2 root volume persistent, so that one may taint the instance resource and re-apply and the instance will use that volume instead of the ami's? My understanding from the documentation is that…
Reuben Avery
  • 41
  • 1
  • 3
3
votes
1 answer

Cap total monthly outgoing data

What's the simplest way to put a cap on total monthly outgoing data? I have no desire to throttle bandwidth over short intervals, the aim is to ensure I stay within spending limits for monthly bandwidth cost even if I get DDOSsed and fail to respond…
Sideshow Bob
  • 133
  • 4
3
votes
1 answer

Impact of AWS Longer Resource IDs on current instances

You might be aware that aws is changing the resource ids and i have been recieving notification emails about this. I think it is going to go live by next month. I have a few instances under my account which were created last year and all the sites…
omer Farooq
  • 153
  • 1
  • 8
3
votes
1 answer

AWS - Cannot create ElastiCache-CacheCluster - 'CacheSecurityGroup not found error'

I have a cloud formation script shown below, I hope to create a Security Group and Elasti Cache. However I get an error shown below CREATE_FAILED AWS::ElastiCache::CacheCluster CacheSecurityGroup not found: elasticacheta.... I use…
3
votes
1 answer

Is it okay to use an Elastic Load Balancer for ssh/sftp traffic?

I have an instance that acts as both and SFTP server and a NFS shared drive to our internal network. The instance has a public IP to receive data over SFTP. That data is saved to a volume that is shared inside my internal network. I use a security…
3
votes
1 answer

AWS Security Group for RDS - Outbound rules

I have a security group assigned to an RDS instance which allows port 5432 traffic from our EC2 instances. However, this security group has all outbound traffic enabled for all traffic for all IP's. Is this a security risk? What should be the ideal…
user384002
  • 31
  • 1
  • 2
3
votes
1 answer

Best way to run OpenShift Origin in AWS

I'm trying to create a production-ready Openshift Origin environment in AWS. I have experience with Kubernetes and CoreOS and kube-aws just makes things easy. You generate assets, run CloudFormation template and you are all set. Nodes with userdata…