diff --git a/examples/cloud_wan/README.md b/examples/cloud_wan/README.md index 8dc62c1..8f1edde 100644 --- a/examples/cloud_wan/README.md +++ b/examples/cloud_wan/README.md @@ -16,28 +16,27 @@ This example shows how you can use this module with `core_network` subnets, and |------|---------| | [terraform](#requirement\_terraform) | >= 1.3.0 | | [aws](#requirement\_aws) | >= 4.27.0 | -| [awscc](#requirement\_awscc) | >= 0.36.0 | ## Providers | Name | Version | |------|---------| | [aws](#provider\_aws) | >= 4.27.0 | -| [awscc.awsccnvirginia](#provider\_awscc.awsccnvirginia) | >= 0.36.0 | +| [aws.awsnvirginia](#provider\_aws.awsnvirginia) | >= 4.27.0 | ## Modules | Name | Source | Version | |------|--------|---------| -| [ireland\_vpc](#module\_ireland\_vpc) | aws-ia/vpc/aws | >= 3.0.2 | -| [nvirginia\_vpc](#module\_nvirginia\_vpc) | aws-ia/vpc/aws | >= 3.0.2 | +| [ireland\_vpc](#module\_ireland\_vpc) | aws-ia/vpc/aws | >= 4.0.0 | +| [nvirginia\_vpc](#module\_nvirginia\_vpc) | aws-ia/vpc/aws | >= 4.0.0 | ## Resources | Name | Type | |------|------| -| [awscc_networkmanager_core_network.core_network](https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/networkmanager_core_network) | resource | -| [awscc_networkmanager_global_network.global_network](https://registry.terraform.io/providers/hashicorp/awscc/latest/docs/resources/networkmanager_global_network) | resource | +| [aws_networkmanager_core_network.core_network](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/networkmanager_core_network) | resource | +| [aws_networkmanager_global_network.global_network](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/networkmanager_global_network) | resource | | [aws_networkmanager_core_network_policy_document.policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/networkmanager_core_network_policy_document) | data source | ## Inputs diff --git a/examples/public_private_flow_logs/README.md b/examples/public_private_flow_logs/README.md index ee77944..1066fef 100644 --- a/examples/public_private_flow_logs/README.md +++ b/examples/public_private_flow_logs/README.md @@ -22,7 +22,7 @@ At this point, only cloud-watch logs are support, pending: https://github.com/aw | Name | Source | Version | |------|--------|---------| -| [vpc](#module\_vpc) | aws-ia/vpc/aws | >= 3.0.2 | +| [vpc](#module\_vpc) | ../.. | n/a | ## Resources diff --git a/examples/transit_gateway/.header.md b/examples/transit_gateway/.header.md new file mode 100644 index 0000000..14a9c0b --- /dev/null +++ b/examples/transit_gateway/.header.md @@ -0,0 +1,9 @@ +# Creating AWS Transit Gateway VPC attachment + +This example shows how you can use this module with `transit_gateway` subnets, and AWS Transit Gateway VPC attachment. This examples creates the following: + +* AWS Transit Gateway. +* The VPC module creates the following: + * Four sets of subnets (*public*, *private_with_egress*, *truly_private*, and *transit_gateway*) + * Transit Gateway VPC attachment. + * Routing to Transit Gateway attachment from *public* and *private_with_egress* subnets. \ No newline at end of file diff --git a/examples/transit_gateway/.terraform-docs.yaml b/examples/transit_gateway/.terraform-docs.yaml new file mode 100644 index 0000000..6dc99de --- /dev/null +++ b/examples/transit_gateway/.terraform-docs.yaml @@ -0,0 +1,21 @@ +formatter: markdown +header-from: .header.md +settings: + anchor: true + color: true + default: true + escape: true + html: true + indent: 2 + required: true + sensitive: true + type: true + lockfile: false + +sort: + enabled: true + by: required + +output: + file: README.md + mode: replace diff --git a/examples/transit_gateway/README.md b/examples/transit_gateway/README.md new file mode 100644 index 0000000..dcb706a --- /dev/null +++ b/examples/transit_gateway/README.md @@ -0,0 +1,45 @@ + +# Creating AWS Transit Gateway VPC attachment + +This example shows how you can use this module with `transit_gateway` subnets, and AWS Transit Gateway VPC attachment. This examples creates the following: + +* AWS Transit Gateway. +* The VPC module creates the following: + * Four sets of subnets (*public*, *private\_with\_egress*, *truly\_private*, and *transit\_gateway*) + * Transit Gateway VPC attachment. + * Routing to Transit Gateway attachment from *public* and *private\_with\_egress* subnets. + +## Requirements + +No requirements. + +## Providers + +| Name | Version | +|------|---------| +| [aws](#provider\_aws) | n/a | + +## Modules + +| Name | Source | Version | +|------|--------|---------| +| [tgw\_base\_for\_example\_only](#module\_tgw\_base\_for\_example\_only) | ../../test/hcl_fixtures/transit_gateway_base | n/a | +| [vpc](#module\_vpc) | aws-ia/vpc/aws | >= 4.0.0 | + +## Resources + +| Name | Type | +|------|------| +| [aws_availability_zones.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source | + +## Inputs + +No inputs. + +## Outputs + +| Name | Description | +|------|-------------| +| [private\_subnets\_tags\_length](#output\_private\_subnets\_tags\_length) | Count of private subnet tags for a single az. | +| [tgw\_subnets\_tags\_length](#output\_tgw\_subnets\_tags\_length) | Count of tgw subnet tags for a single az. | + \ No newline at end of file diff --git a/examples/transit_gateway/main.tf b/examples/transit_gateway/main.tf index 0efb2ec..e2fed68 100644 --- a/examples/transit_gateway/main.tf +++ b/examples/transit_gateway/main.tf @@ -1,9 +1,8 @@ data "aws_availability_zones" "current" {} module "vpc" { - # source = "aws-ia/vpc/aws" - # version = ">= 3.0.2" - source = "../.." + source = "aws-ia/vpc/aws" + version = ">= 4.0.0" name = "tgw" cidr_block = "10.0.0.0/16"