aws-databases-terraform
This repository create an AWS:
- aws-databases-terraform
-
You must have an AWS account, and have your CLI profile configuration.
-
You must have Terraform installed
- As an AWS best practice, grant this code least privilege, or only the permissions required to perform a task. For more information, see Grant Least Privilege in the AWS Identity and Access Management User Guide.
- This code has been tested in ca-central-1 AWS Regions only. However it should work in any other region.
- Running this code it might result in charges to your AWS account.
cd aws-databases-terraform
terraform init
terraform validate
terraform plan
terraform apply --auto-approve
terraform destroy --auto-approve
-
clone this GitHub repository
-
cd to the the directory aws-databases-terraform
-
Terraform-commands:
- terraform --help
- terraform init Prepare your working directory for other commands
- terraform validate Check whether the configuration is valid
- terraform plan Show changes required by the current configuration
- terraform apply Create or update infrastructure
- Alternate command: terraform apply -auto-approve
- terraform destroy Destroy previously-created infrastructure
- Alternate command: terraform destroy -auto-approve
- terraform fmt -recursive Reformat your configuration in the standard style
1 - How to install aws cli latest version
2 - In the sensors.sh
file, you will need to make a couple of modifications.
topic='<topic name>'
iterations=<number>
wait=<number>
region=<'region'>
profile='<add your aws-cli profile here>'
3 - Run this cli command sh sensors.sh