This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
# Build a new Centos7 install on EBS volume in a chroot | |
# Run from RHEL7 or CentOS7 instance - eg: ami-0c322300a1dd5dc79 in us-east-1 (RHEL 7 official image) | |
# Script expects a second EBS volume, I add them as /dev/sdf in the console | |
# When the script completes, turn the second EBS volume into your new AMI through the console. | |
# Adjust the section below to match the device names you're using. Defaults are for an m5.large | |
# m5 series requires the updated device names |