1.
Navigate to the
awk/AMI/s3
directory.
cd aws/AMI/s3
2.
Initialize terraform.
terraform init
3.
Get terraform packages and validate the templates.
terraform get
terraform validate
4.
Plan and apply to create an S3 bucket DynamoDB table.
terraform plan
terraform apply -auto-approve
Note:
Save the state file to the same bucket for later creating the S3 stack using AWS
console
Create the AMI
Three files within the
aws/AMI
folder contains variables in the standard format of
variableName = "value"
. Each variable within the three variable files should be updated to
reflect your environment.
1.
Navigate to the
aws/AMI
directory.
cd ~/aws/AMI
2.
Update the variables in the following files with suitable values:
•
linuxvm/terraform.tfvars
•
linuxvm/bucket.tf
•
ami/bucket.tf
3.
Run the bash script
create_ami.sh
with the
-c
argument to specify the workspace
name.
bash create_ami.sh -c nnSCZ840
The script runs a series of terraform commands to create the AMI.
Refer to the README file for more information.
For instructions on using an AMI, see
in the AWS documentation.
Delete the AMI
If you no longer need the AMI, follow these steps to delete it.
Chapter 7
Create and Deploy OCSBC Instances on EC2
7-21
Содержание netra X5-2
Страница 101: ...Chapter 7 Create and Deploy on Azure 7 35 ...
Страница 127: ...Figure 11 7 BMC Step 9 10 Click Next after the write operation is complete Chapter 11 Creating a Build Image 11 5 ...
Страница 151: ...Appendix A Acme Packet 6300 6350 Physical Interfaces A 12 ...
Страница 152: ...Note The Quad 10 GbE NIU must go in slot 0 Appendix A Acme Packet 6300 6350 Physical Interfaces A 13 ...