Questions tagged [amazon-web-services]

For questions about Amazon Web Services (AWS) in general. If your question is about a specific Amazon web service please use that tag, e.g. [amazon-s3], [amazon-ec2], [amazon-ecs], [aws-codedeploy]

Amazon offers many different services, but the most popular (related to DevOps) are:

Usage

Use this tag for questions about Amazon Web Services in general. For questions about a specific Amazon web service please try to use a more specific tag (if that's available).

552 questions
37
votes
4 answers

What is the purpose of AssumeRolePolicyDocument in IAM?

I'm confused as to what the purpose of AssumeRolePolicyDocument is. It seems like to create a role all you need is a parent name that you can attach policies to. It seems like AssumeRolePolicyDocument is that parent name but somehow there's more to…
Dr. Chocolate
  • 605
  • 1
  • 6
  • 9
37
votes
5 answers

How to avoid interactive dialogs when running "apt-get upgrade -y" in Ubuntu 16.04 when packaging with Packer?

I'm using Packer to create an AWS AMI based on an Ubuntu 16.04 image. In the beginning, I'm doing an upgrade: sudo apt-get update sudo apt-get upgrade -y Here is the relevant part of my provisioners section: "provisioners": [ { "type":…
Philipp Claßen
  • 1,675
  • 3
  • 18
  • 30
35
votes
3 answers

Who is this Chaos Monkey and why did he crash my server?

I had a perfect server, it was so pretty and rock solid and so I named it Petra. It was perfect in every way, everything was configured and tuned just right, it had perfect 100% service record and 753 days of uptime. I've spent a lot of time and…
Jiri Klouda
  • 5,867
  • 1
  • 22
  • 54
34
votes
4 answers

Why is the AWS EC2's spot price greater than the on-demand price?

I was trying to provision spot instances via Ansible yesterday, and almost all my requests failed, even when I put my spot price == the on-demand price of that instance. So, when I had a look at the spot pricing graph, I found something very…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
34
votes
2 answers

What is a good strategy to keep my site online when S3 goes offline?

What is a good strategy to keep my site online when S3 goes offline? If S3 US East 1 goes offline, how should I have my app configured/structured to prevent that taking my entire site offline? What are the best strategies to diversify in this sort…
jcolebrand
  • 1,275
  • 10
  • 14
28
votes
5 answers

How to clean up orphaned AWS EC2 snapshots?

We end up with a fair amount of AWS EC2 snapshots where the AMI has been deleted, but the snapshot is left behind to rot. I'd like a non-manual way of identifying and deleting these orphans to save us money and space. Ideally I'm thinking a bash…
Alex
  • 4,612
  • 6
  • 29
  • 49
26
votes
5 answers

How can I experiment with Cloud (Azure, AWS, Google, etc) without going broke?

Cloud technologies are very hot right now, but they can be expensive. What are the best strategies for learning/trying cloud services without racking up a huge bill?
Dave Swersky
  • 4,068
  • 2
  • 21
  • 33
23
votes
2 answers

Is it possible to set CloudWatch alarm for a combination of metrics?

For example, I want to trigger a CloudWatch alarm for the following: Number of messages sent - Number of messages deleted >= 6 The above is for AWS SQS metrics. And I want that metric to trigger AWS Lambda if that alarm is set off. Is there any way…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
23
votes
1 answer

How do I work around the fact that AWS SQS is not HIPAA compliant?

I have a use case where data from S3 is queued into AWS SQS, which is in turn connected to CloudWatch, whose metrics will be triggering AWS Lambda. However, I want the architecture to be HIPAA compliant. So, I have come up with this idea: Once my…
Dawny33
  • 2,816
  • 3
  • 24
  • 62
17
votes
1 answer

How to create a centralised dashboard to monitor multiple cloud (Amazon and Google)?

I'm looking for a single product or service which can be used as a centralized dashboard to monitor cloud infrastructure provide by Amazon Web Services and Google Cloud Platform in addition to the application. I'm looking at few options like sensu…
17
votes
2 answers

How to order physical backup of S3 data?

I'd like to order backup of data to be copied out from S3 to a physical drive (SATA HD) and to be shipped to the address. I know it's possible using Amazon Glacier, however I cannot find such option anywhere. What would be the easiest way to do…
kenorb
  • 8,011
  • 14
  • 43
  • 80
16
votes
3 answers

How to check AWS spot pricing automatically?

I've been thinking about a Jenkins job to check the pricing for the agent boxes we spin up; every so often the price spikes and it'll be an hour or two before anyone notices that no new agents are coming up, and then we have to go in manually and…
Alex
  • 4,612
  • 6
  • 29
  • 49
14
votes
1 answer

How do you manage your inventory of spot instances on AWS with Ansible

I am new to Ansible, with some experience in Chef. I am considering learn and use Ansible to manage environments. I was wondering, what would be the best practice to manage inventory of AWS spot instances? For example, when a spot instance is shut…
Berlin
  • 780
  • 6
  • 15
13
votes
4 answers

How to backup Amazon Cognito?

Amazon Cognito is a user management and authentication service provided by Amazon through Amazon Web Services: Amazon Cognito lets you easily add user sign-up and sign-in to your mobile and web apps. With Amazon Cognito, you also have the options…
Richard Slater
  • 11,747
  • 7
  • 43
  • 82
13
votes
1 answer

How to communicate queue-based processing delays to non-technical team members?

I am responsible for a set of SQS queue-processing jobs with a scaling policy on the ApproximateNumberOfMessagesVisible CloudWatch metric. These jobs can fail to keep up with the amount of messages sent for any number of reasons: Service…
1
2 3
36 37