terraform-aws-modules / terraform-aws-vpn-gateway

Terraform module to create AWS VPN gateway resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/vpn-gateway/aws
Apache License 2.0
111 stars 154 forks source link

Unable to override name of VPN connection with "tags". #61

Closed rswail closed 2 years ago

rswail commented 2 years ago

When creating the VPN Connection, the "Name" tag is pre-configured to be: "VPN Connection between VPC vpc-xxxxxx and Customer Gateway cgw-xxxx"

If a "Name" tag is provided in the tags variable for the module, the error:

╷ │ Error: Provider produced inconsistent final plan │ │ When expanding the plan for module.infra.module.vpn_gateway[0].aws_vpn_connection.default[0] to include new values learned so far during apply, │ provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .tags_all: new element "Name" has appeared. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵ ╷

Versions

Expected behavior

The "Name" tag for the VPN connection should use the tags.Name provided instead of defining its own.

Actual behavior

An error was produced as above.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 2 years ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.