Creating an AMI for ASE
Create an Amazon Machine Image (AMI) for API Security Enforcer (ASE).
Steps
-
Create an RHEL 7.6 or Ubuntu 16.04 LTS EC2 instance.
-
Install the Amazon Web Services (AWS) command-line interface (CLI):
-
Install Python 2.7.
-
Run the following command:
sudo curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
-
Extract the CLI bundle:
sudo unzip awscli-bundle.zip
-
Install the CLI:
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/bin/aws
-
-
Download the ASE AWS binary. After downloading the file, copy the ASE file to the
/opt
directory. -
To untar the binary in the EC2 instance, at the command prompt, enter the following command to untar the ASE file:
tar –zxvf ase-rhel-4.0.tar.gz
Result:
tar –zxvf <filename>
-
To verify that ASE successfully installed, enter the
ls
command at the command prompt:/opt/$ ls pingidentity ase-rhel-4.0.tar.gz
Result:
This lists the PingDirectoryand the build’s tar files.
-
Change the directory to
/opt/pingidentity/ase/bin
. -
Run the
install_service.sh aws
script:/opt/pingidentity/ase/bin$sudo ./install_service.sh aws Installing ASE service for AWS Autoscale This script will install ASE as a service Do you wish to proceed (y/n)? y Starting service installation RHEL7.6 detected, installing ASE service Created symlink from /etc/systemd/system/multi-user.target.wants/ase.service to /etc/systemd/system/ase.service. ASE service successfully installed
-
Create an AMI using this EC2 instance.
When you are creating the AMI, do not select the
No Reboot
option.