- To initialize Terraform:
terraform init
- To generate the execution plan
terraform plan
- To build the infrastructure
terraform apply --auto-approve
- To deploy the application
aws elasticbeanstalk update-environment --application-name app-beanstalk --version-label v1 --environment-name beanstalk-environment
- To destroy the infrastructure
terraform destroy --auto-approve