Based on terraform-aws-network-example.
This example Terraform module creates a basic AWS network.
Terratest and Terraform CLI tests check for:
- VPC ID prefix starts with
vpc-
- NAT EIP
Name
tag matchestag_name
Tests are run under continuous integration using Localstack and Drone CI or Harness CI.
docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack:1.2.0
cd test
go test -v -run TestTerraformAwsNetworkExample
cp tests/aws-provider-localstack.tf tests/example/test-provider.tf
terraform test