Terraform module to provision AWS Transit Gateway, AWS Resource Access Manager (AWS RAM) Resource, and share the Transit Gateway with the Organization or another AWS Account.
In versions.tf the aws provider requirement is set as >= 3.0; however in version 0.7.0 the transit_gateway_cidr_blocks argument was introduced into the aws_ec2_transit_gateway resource definition. Unfortunately, the transit_gateway_cidr_blocks argument is only valid in aws provider versions >= 4.4.0 when it was introduced. Even passing the value as null, as is the variable default value, it will still complain about the invalid argument.
Expected Behavior
Would expect that the module would require a version of the aws provider that meets the requirement of the module code as written. This would mean requiring version >= 4.4.0. v0.6.1 is currently the last released version that supports the aws provider < 4.4.0.
Steps to Reproduce
Steps to reproduce the behavior:
Add module > 0.6.1 to an environment using aws provider <= 4.4.0
Execute terraform plan
See the error about transit_gateway_cidr_blocks is not expected here.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
Found a bug? Maybe our Slack Community can help.
Describe the Bug
In
versions.tf
the aws provider requirement is set as >= 3.0; however in version 0.7.0 thetransit_gateway_cidr_blocks
argument was introduced into theaws_ec2_transit_gateway
resource definition. Unfortunately, thetransit_gateway_cidr_blocks
argument is only valid in aws provider versions >= 4.4.0 when it was introduced. Even passing the value asnull
, as is the variable default value, it will still complain about the invalid argument.Expected Behavior
Would expect that the module would require a version of the aws provider that meets the requirement of the module code as written. This would mean requiring version >= 4.4.0. v0.6.1 is currently the last released version that supports the aws provider < 4.4.0.
Steps to Reproduce
Steps to reproduce the behavior:
transit_gateway_cidr_blocks
is not expected here.Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas: