terraform.aws-baseline-infra/modules/networking/delete-default-vpcs
2022-08-05 14:56:21 +08:00
..
exec.sh NEW: delete-default-vpcs module 2022-08-05 14:56:21 +08:00
main.tf NEW: delete-default-vpcs module 2022-08-05 14:56:21 +08:00
README.md NEW: delete-default-vpcs module 2022-08-05 14:56:21 +08:00
variables.tf NEW: delete-default-vpcs module 2022-08-05 14:56:21 +08:00

In the root module, use these to call this module

data "aws_regions" "current" {}

module delete-default-vpc {
  source = "./module/delete-default-vpc"
  for_each = data.aws_regions.current.names
  region-name = each.value
}