Open emilyllim opened 11 months ago
mkdir terraform
cd terraform
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
export AWS_ACCESS_KEY_ID=[ACCESS KEY ID VALUE]
export AWS_SECRET_ACCESS_KEY=[SECRET ACCESS KEY VALUE]
vi main.tf
- create and edit the configuration file to define the EC2 instanceterraform init
- initialize the directory, and download and install the defined providersterraform apply
- review the execution plan and then type yes
to apply the configurationterraform destroy
[D1] Terraform to AWS
This issue will include an overview of how I created an AWS account and the Terraform configuration used to provision an AWS EC2 instance.
Resources