2022-08-15 14:43:13 +08:00
|
|
|
# delete-default-vpc module
|
|
|
|
This terraform module calls awscli to delete default vpc in specified region.
|
2022-08-05 14:56:21 +08:00
|
|
|
|
2022-08-15 14:43:13 +08:00
|
|
|
## Example of root module
|
|
|
|
```terraform
|
2022-08-05 14:56:21 +08:00
|
|
|
data "aws_regions" "current" {}
|
|
|
|
|
|
|
|
module delete-default-vpc {
|
2022-08-15 14:50:56 +08:00
|
|
|
source = "git::https://xpk.headdesk.me/git/xpk/terraform.aws-baseline-infra//modules/networking/delete-default-vpcs"
|
2022-08-05 14:56:21 +08:00
|
|
|
for_each = data.aws_regions.current.names
|
|
|
|
region-name = each.value
|
|
|
|
}
|
|
|
|
```
|