Go Lambda that counts VPCs, keeps the state in S3. All instrumented with Terraform Cloud.
- Go >= 1.14
- Terraform >= 0.12.23
- A AWS Account
- A Public Route 53 Hosted Zone
In the ./terraform/main.tf
modify the terraform backend
block:
terraform {
backend "remote" {
organization = "pedrommm"
workspaces {
name = "go-lambda-vpc-tf-cloud"
}
}
}
Either by removing it to use the local state or by using your Terrafor Cloud account and modifing the organization
.
Modify ./terraform/config.auto.tfvars
with your personal configuration.
./tf-init
./tf-plan
./tf-apply