AWS entirely managed by Terraform
- You should have
access
andsecret
key of an AWS user with Administrator Access (For Ease). - Terraform should be able to access your AWS Access and AWS Secret keys. You can checkout the docs on how you can do it.
Create a terraform.tfvars
or terraform.tfvars.json
file and populate the
variables.
budget_subscription_emails = ["[email protected]"]
region = ap-south-1
or
{
"budget_subscription_emails": ["[email protected]"],
"region": "ap-south-1"
}
You can check the variables.tf
file to figure out which variables are
optional and which of them aren't.
terraform init
mkdir plans
terraform plan -out "plans/init.tfplan"
Review the plan and decide if that is the configuration you want to apply. If
yes, then move to apply
stage.
terraform apply "plans/init.tfplan"