amazon-ami

Within IAM, can I restrict a group of users to access/launch/terminate only certain EC2 AMIs or instances?

六月ゝ 毕业季﹏ 提交于 2019-11-30 14:43:31
问题 What the title says. Within the master AWS account, I have several personal accounts, i.e. AWS Identity and Access Management (IAM) users. I would like to assign certain IAM users to groups and prevent them from terminating certain Amazon EC2 instances, de-registering certain Amazon Machine Images (AMIs), etc. I don't mind if they're playing with their own stuff, but I don't want them to touch my stuff. Is that possible? 回答1: Update AWS has just announced Resource-Level Permissions for Amazon

Amazon Launch Template - Updated AMI

非 Y 不嫁゛ 提交于 2019-11-30 05:16:00
问题 I have started using Amazon's new Launch Templates and so far liking it however I just recently made an image from one of my instances, I then created a new version of the Launch template and used the new AMI. When updating my auto scaling group to the new version of the template, upon save it gives me the below error: Error You must use a valid fully-formed launch template. snapshotId cannot be modified on root device Do I need to recreate the AMI? If anyone has any suggestions that would be

How to install nginx 1.9.15 on amazon linux disto

為{幸葍}努か 提交于 2019-11-28 02:46:22
问题 I try to install the latest version of nginx (>= 1.9.5) on a fresh amazon linux to make use of http2. I followed the instructions that are described here -> http://nginx.org/en/linux_packages.html I created a repo file /etc/yum.repos.d/nginx.repo with this content: [nginx] name=nginx repo baseurl=http://nginx.org/packages/mainline/centos/7/$basearch/ gpgcheck=0 enabled=1 If I run yum update and yum install nginx I get this: nginx x86_64 1:1.8.1-1.26.amzn1 amzn-main 557 k It seems that it

Amazon EC2: how to convert an existing PV AMI to HVM

拟墨画扇 提交于 2019-11-27 09:10:45
问题 Question: How should I use the new AWS EC2 classes (r3, i2) with my existing AMI without recreating the whole system setup? The new EC2 classes support only HVM based virtualization but I have only PVM AMI images. 回答1: Answer: Start an Ubuntu HVM linux, any version, new Start an Ubuntu / with my existing AMI / PVM linux, and install grub packages on them: apt-get install grub-pc grub-pc-bin grub-legacy-ec2 grub-gfxpayload-lists Stop PVM linux Detach root (/dev/sda1) partition at PVM linux

Move Amazon EC2 AMIs between regions via web-interface?

不问归期 提交于 2019-11-27 05:09:59
问题 Any easy way to move and custom AMI image between regions? (tokyo -> singapore) I know you can mess up with API and S3 to get it done, but there there any easier way to do it? 回答1: As of December, 2012, Amazon now supports migrating an AMI to another region through the UI tool (Amazon Management Console). See their documentation here So, how I've done it is.. From the AMI find out the Snapshot-ID and how it is attached (e.g. /dev/sda1) Select the Snapshot, click "Copy", set Destination region

How do I set up cloud-init on custom AMIs in AWS? (CentOS)

旧街凉风 提交于 2019-11-26 22:33:59
问题 Defining userdata for instances in AWS seems really useful for doing all kinds of bootstrap-type actions. Unfortunately, I have to use a custom CentOS AMI that didn't originate from one of the provided AMIs for PCI reasons, so cloud-init is not already installed and configured. I only really want it to set a hostname and run a small bash script. How do I get it working? 回答1: cloud-init is a very powerful, but very undocumented tool. Even once it's installed, there are lot of modules active by