ssh-keygen -t rsa -b 4096 -f "nginx-server.key"Connect to an instance
ssh -i "nginx-server.key" ec2-user@<Public IP Address>
Initialize the Terraform configuration directory.
Every time that you add a new module, you need to run the
terraform initcommand.
terraform initFormat the Terraform configuration files.
terraform fmtCreate an execution plan.
terraform plan
terraform plan --var-file=qa.tfvarsApply the changes required to reach the desired state of the configuration.
terraform applyShow the outputs of the Terraform configuration.
terraform ouputsDestroy the Terraform-managed infrastructure.
terraform destroy