Closed whitehousepost closed 1 year ago
Setting both:
create_tgw = false
share_tgw = false
Allowed for completion of this.
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.
Description
I'm having an issue with sharing a tgw between accounts in the same organization with autoaccept enabled.
Both accounts are in the same organization and auto accept is enabled. The resources (vpc, subnets) in the client account are not terraform created.
Error received:
⚠️ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Module version [Required]:
Terraform version:
provider registry.terraform.io/hashicorp/aws v4.46.0
Provider version(s):
provider registry.terraform.io/hashicorp/aws v4.46.0
Reproduction Code [Required]
Steps to reproduce the behavior:
no
yes
simply running a terraform apply on this will produce this error
Expected behavior
Create a transit gateway in the master account, create an attachment to it in a vpc in the sub-account. Resulting in a clean run.
Actual behavior
Additional context
example from the module