93 votes
Accepted

How to install Docker on AWS EC2 instance with AMI (CE/EE Update)

To get Docker running on the AWS AMI you should follow the steps below (these are all assuming you have ssh'd on to the EC2 instance). Update the packages on your instance [ec2-user ~]$ sudo yum ...
ajtrichards's user avatar
  • 1,054
23 votes

How do I access the attached volume in Amazon EC2

To use a EBS volume attached in the EC2, you need first mount the volume. Connect to your instance using SSH. Use the lsblk command to view your available disk devices and their mount points. [ec2-...
Renato Coutinho's user avatar
23 votes
Accepted

Who's behind community AMIs on Amazon EC2?

Any AWS user can create a community AMI by making it public and shared with everyone. So the answer is just about anyone could have created that community AMI. While many are probably fine, you ...
vjones's user avatar
  • 851
18 votes
Accepted

Filtering AMI by name using aws-cli

From Listing and Filtering Using the CLI and API: You can also use wildcards with the filter values. An asterisk (*) matches zero or more characters, and a question mark (?) matches exactly one ...
jscott's user avatar
  • 24.7k
9 votes
Accepted

Debian 8 AMI only using 8GB partition

According to the folks at bootstrap-vz it is an issue with growpart on Debian Jessie (#784004). For detailed information on this exact issue please read the Github issue: Debian 8 AMI only using 8GB ...
Shawn Welch's user avatar
7 votes

phpMyAdmin Error - The configuration file now needs a secret passphrase

The latest version of phpmyadmin does not create the config file after installation. There is an example config file available and an actual default config file deeper in the folder tree. Note that ...
D Moreau's user avatar
7 votes

phpMyAdmin Error - The configuration file now needs a secret passphrase

I had define('CONFIG_DIR', '/etc/phpmyadmin'); in /usr/share/phpmyadmin/libraries/vendor_config.php. It should be: define('CONFIG_DIR', '/etc/phpmyadmin/'); (forward slash added)
Marcel Molenaar's user avatar
7 votes

How to install Docker on AWS EC2 instance with AMI (CE/EE Update)

The hardest part to figure all of this out was the container-selinux requirement. Just find the latest version in http://mirror.centos.org/centos/7/extras/x86_64/Packages/ and install that first. In ...
Archimedes Trajano's user avatar
6 votes
Accepted

Does Canonical Periodically Update a Given AMI?

No, AMIs are immutable. They do publish updated AMIs periodically, though.
EEAA's user avatar
  • 110k
6 votes

How does AWS configure the 169.254.169.254 address on an instance?

Most linux distributions will already create a Zeroconf route, which is probably why Amazon figured they would "borrow" that particular IP address. For example, if you install CentOS 7 then "out of ...
Tel's user avatar
  • 61
6 votes
Accepted

Per-second billing for custom AMI

The separate, hourly charge is a license fee in addition to the actual charge for the VM. Amazon Linux does not have such a charge, unless your AMI is based on a Marketplace AMI that has an hourly ...
Michael - sqlbot's user avatar
6 votes

inconsistent `apt-get update` behaviour on official Ubuntu AWS AMI

If you are using cloud-init you can wait for it to complete. while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...' sleep 1 done e.g. packer json: { "type"...
dnozay's user avatar
  • 261
6 votes

Who's behind community AMIs on Amazon EC2?

and there is absolutely no way to know who created them? You are looking in the wrong direction! Your trust in community AMIs should come from outside Amazon. For example, if you trust getfedora.org, ...
Dave's user avatar
  • 161
5 votes

Where are AMIs stored?

AMIs and snapshots are stored on S3 in the standard storage class. You cannot access this area of S3 directly, only via the service web interface or APIs. You pay S3 standard rates for this storage. ...
Tim's user avatar
  • 32.6k
5 votes
Accepted

Install Go 1.8 with yum

Unless someone either adds Go 1.8 to a repo or builds a specific repo for it, you need to manually install it.
Sven's user avatar
  • 99.3k
5 votes
Accepted

Will EC2 instance AMI's save all files when launching future instances with the AMI?

Yes that’s how it works. AMI is a snapshot of your instance at a certain time and all the files on EBS volumes are saved to the AMI.
MLu's user avatar
  • 25.3k
5 votes

RUN yum in Docker file not working, but yum it's working inside the container

if I were you I would check the following things: Try Centos7 image and run the same commands Try to run yum clean all before running update so it should look like this RUN yum clean all && ...
Kerolos William's user avatar
4 votes

Can't find my AWS shared AMI when trying to share with specific account

Besides making sure you're in the right region, you might check if you're not filtering by "Owned by me" which is the default. You need to filter by "Private images" as per the following documentation:...
rui's user avatar
  • 529
4 votes

What's the magic incantation to force DNS queries over TCP on an Amazon/AMI image?

It looks like the diagnostic tools, nslookup & dig, were misleading me. When I used getent, I saw that names were indeed resolving correctly and honoring the use-vc option in /etc/resolv.conf: [...
Matthew Adams's user avatar
4 votes

AWS: How to update AMI without having to recreate the launch configuration?

If you create a new AMI, you must create a new launch configuration and update the Auto Scaling group. The only way to avoid this is to use the same AMI. Instead of baking your updates into the AMI, ...
Matt Houser's user avatar
  • 10.2k
4 votes
Accepted

AWS: How to update AMI without having to recreate the launch configuration?

Windows Updates is one of the areas that I recommend creating new AMIs. You really need to test these updates before rolling them out to a production environment. Except for security patches, I would ...
John Hanley's user avatar
  • 4,904
4 votes
Accepted

redis-server /etc/redis.conf just hangs

It's not hanging. It's just running. You can check with redis-cli ping You can also put redis on background by appending --daemonize yes
Cloud Ace Wenyuan Jiang's user avatar
3 votes

Invalid block device mapping: Invalid device name - Creating an AMI from an Instance Store-Backed

As suggested in comments to the OP's question, the root device is either /dev/sda1 or /dev/xvda, and AWS's device naming docs specify what names can be used for other devices. The way I understand ...
Dale C. Anderson's user avatar
3 votes
Accepted

Which is more cost effective: Amazon EC2 snapshot or AMI?

The question is premised on incomplete information. An AMI consists of one or more snapshots -- which are billed exactly the same as any other snapshot -- plus a few bytes of metadata. There is no ...
Michael - sqlbot's user avatar
3 votes

Forwarding VPN traffic to Squid proxy

I have this set up actually, took me a while to set up too... If you're using OpenVPN you can use my up/down script for OpenVPN/squid. You'll also need to set up BIND to go thru the VPN too: #!/usr/...
NotoriousPyro's user avatar
3 votes

Amazon Linux AMI or Ubuntu/others in AWS ecosystem?

Amazon Linux 2 is “the official AWS distro” and is in some ways better prepared to run on AWS. For example Amazon Linux 2 comes with all the aws tools and libs preinstalled, on Ubuntu you may have to ...
MLu's user avatar
  • 25.3k
3 votes

AWS ubuntu image has no swap with kernel 5.x

I don’t know why or if it changed but ... do you actually need a swapfile or swap partition? The times when it was needed for performance reasons are long gone. You should select an instance type with ...
MLu's user avatar
  • 25.3k
3 votes
Accepted

How to install OpenGL on Amazon Linux 2 AMI t2.small type?

Here we see compilation failed because a C include file was missing: checking for GL/gl.h... no configure: error: *** Unable to locate OpenGL includes. You should use yum to search for the package ...
Michael Hampton's user avatar
3 votes

How to update the AMI of the instance without loosing data? and the instance has two EBS volumes which EBS volume should i take snapshot?

You can't update the AMI of an instance without replacing it with a new instance. Typically you simply run the operating system updates - yum update / apt update & upgrade / windows update. So ...
Tim's user avatar
  • 32.6k
2 votes

Amazon EC2 terminology - AMI vs. EBS vs. Snapshot vs. Volume

To summarize things: EBS = the AWS service itself EBS Volume = think of it like a hard drive you can attach to an EC2 instance Snapshot = a point in time copy of your volume AMI = a copy of a full ...
TH22's user avatar
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible