amazon-ami

how to copy AMI from one aws account to other aws account?

末鹿安然 提交于 2019-12-11 07:39:16
问题 Am trying to copy the custom built ami using packer from one AWS account to another AWS account; however, i was able to copy ami across regions within one account. "builders": [{ "account_id": "12345678910", "s3_bucket": "xyz/xqas/asd", "x509_cert_path": "/Users/txyz/packer/certificate.pem", "x509_key_path": "/Users/txyz/packer/private-key.pem", "type": "amazon-instance", "access_key": "{{user access_key }}", "secret_key": "{{user secret_key }}", "region": "us-east-1", "source_ami": "ami

Latest AMI ID in a given Region using a set of filters

若如初见. 提交于 2019-12-11 00:37:12
问题 I am trying to run the code in the below, however I have errors while executing, could you please advise on the changes. latest-ami [ec2-user@ip-XXXXXXXX ~]$ python latest-ami.py us-west-2 {u'Images': [], 'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, 'RequestId': '01ef1583-e7bc-4279-9081-28cbf9345f7c', 'HTTPHeaders': {'date': 'Wed, 01 Aug 2018 12:00:01 GMT', 'content-length': '219', 'content-type': 'text/xml;charset=UTF-8', 'server': 'AmazonEC2'}}} [ec2-user@ip-172-31-19-75

How to copy an AMI from Ireland region to China region in AWS

筅森魡賤 提交于 2019-12-10 18:09:28
问题 I have a setup in AWS Ireland region, now I want that AMI in my China. Does anybody know what is the best practice to achieve the task? Any help will be appreciated. Thanks in advance. 回答1: AMI copy is currently not supported for China region. According to AWS: Transfer or copy AMI from US to China (Beijing) The idea is to create a dump file of the volume using 'dd', copy the file to a temporary instance in China Region. Once copied, use dd again to dump the contents of the file to an EBS

AWS AMI deprecation (API: ec2:RunInstances Not authorized for images)

▼魔方 西西 提交于 2019-12-10 12:49:26
问题 So I've been using AWS AMI in my cloud formation template. It seems they create new images every month and deprecate the old ones 2 weeks or so after the new one's released. This creates many problems: Old template stacks becomes broken. Templates need to be updated. Am I missing something? E.G. I'm staring at API: ec2:RunInstances Not authorized for images: [ami-1523bd2f] error in my cloud formation events. Looking it up that's the 02.12 image id: http://thecloudmarket.com/image/ami-1523bd2f

rgdal won't install on AWS RStudio AMI

試著忘記壹切 提交于 2019-12-10 10:15:50
问题 I have managed to successfully launch the most recent RStudio AWS EC2 instance (louisaslett.com, RStudio-1.1383_R-3.4.2…ubuntu-16.04-LTS-64). R operates mostly as expected in this instance, and I can install and open a number of packages. However I get an error if I try to install either of the rgdal of gdalUtils packages. Below is the console output when I attempt to install rgdal. The output for the gdalUtils install is too long to include here, but both include the text "error: upgrade

Changes required to create AMI from OS disk EBS volume manually

流过昼夜 提交于 2019-12-08 19:01:37
问题 I have a VMware VM whose OS raw disk is backed up to AWS S3 . I can create AMI from the OS disk raw using import-image . I cannot use import-image everytime because it is extremely slow and because I am creating an application where you can backup your VM to AWS cloud, where in the first backup will be FULL backup which will take longer, but the consequent INCREMENTAL backup should take very less time(depending on the amount of data changed).I am creating AMI during every backup i.e. FULL or

AWS Rails install fails: activesupport requires Ruby version >= 2.2.2

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 07:36:27
I am installing rails 5 on aws. I have installed rvm and ruby. Ruby version I installed is 2.3.1. I have done bundle install. Now I am trying to install rails 5 by using command - 'sudo gem install rails --version 5.0.0' But I am getting error ERROR: Error installing rails: activesupport requires Ruby version >= 2.2.2. rvm list =* ruby-2.3.1 [ x86_64 ] Complete log on running command - 'sudo gem install rails --version 5.0.0' Fetching: i18n-0.7.0.gem (100%) Successfully installed i18n-0.7.0 Fetching: thread_safe-0.3.5.gem (100%) Successfully installed thread_safe-0.3.5 Fetching: tzinfo-1.2.2

AWS Rails install fails: activesupport requires Ruby version >= 2.2.2

梦想与她 提交于 2019-12-08 04:11:21
问题 I am installing rails 5 on aws. I have installed rvm and ruby. Ruby version I installed is 2.3.1. I have done bundle install. Now I am trying to install rails 5 by using command - 'sudo gem install rails --version 5.0.0' But I am getting error ERROR: Error installing rails: activesupport requires Ruby version >= 2.2.2. rvm list =* ruby-2.3.1 [ x86_64 ] Complete log on running command - 'sudo gem install rails --version 5.0.0' Fetching: i18n-0.7.0.gem (100%) Successfully installed i18n-0.7.0

Spark AMI for AWS EC-2

亡梦爱人 提交于 2019-12-07 10:12:14
问题 Is there a way to specify the AWS AMI with particular OS (say Ubuntu) when launching Spark on Amazon cloud with provided scripts? What is the default AMI, operating system that is launched by EC-2 script? Is it eligible for "Free Tier" program by AWS? 回答1: The script ( spark_ec2.py ) takes the AMI list from https://github.com/mesos/spark-ec2/tree/branch-1.3/ami-list by default. You can override it by creating a fork with your preferences and selecting it with --spark-ec2-git-repo and --spark

How can I use/install “make” on the Amazon Linux AMI for EC2?

爱⌒轻易说出口 提交于 2019-12-06 02:55:35
问题 I'm a new user of Amazon EC2. I want to compile the pptpd package on EC2, but receive the following error: [root@ip-10-112-xxx-xxx /]# /var/tmp/rpm-tmp.2eILT0: line 58: /usr/bin/make: No such file or directory I searched the entire root directory tree, but make isn't available: [root@ip-10-112-59-187 /]# find . -name "make" ./etc/mail/make I'm wondering whether make is actually installed on the Amazon Linux AMI initially? If not, how do I install it? 回答1: Preface The Amazon Linux AMI is