Execute the following commands:
terraform init
terraform plan
terraform apply
Tip
If you want to avoid the interactive prompt, create a terraform.tfvars
file with the bucket name (i.e. bucket=<your_bucket>
).
We advise you to use Terraform S3 and dynamoDB backend, more info here.
backend "s3" {
key = "terraform-state"
region = "us-east-1"
bucket = "<your_bucket>"
encrypt = true # Optional, S3 Bucket Server Side Encryption
dynamodb_table = "<your_bucket>-terraform-state-lock"
}