hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.17k forks source link

[New Data Source]: aws_networkmanager_core_network #31765

Open dferns11 opened 1 year ago

dferns11 commented 1 year ago

Description

We have a requirement to make the CloudWAN design more modular within a multi account deployment where we need to split functionality of creating the Core network and the VPC attachments to the CloudWAN as separate tasks. CloudWAN in 1 account, VPCs in another where we would initiate the VPC attachments to the CloudWAN.

edit: Currently from the VPC account, we have no way to obtain the global_network_id as a datasource

Requested Resource(s) and/or Data Source(s)

aws_networkmanager_core_network

Potential Terraform Configuration

data "aws_networkmanager_core_network" "example" {
  global_network_id = var.global_network_id
  tags = {}
}

References

https://github.com/hashicorp/terraform-provider-aws/issues/23782 https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/networkmanager_core_network https://docs.aws.amazon.com/cli/latest/reference/networkmanager/list-core-networks.html

Would you like to implement a fix?

None

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

robotparty commented 3 months ago

I could take a stab at working on this... I do need it right now. :shrug: Only done a tiny bit of community TF provider bugfixin' though... nothing official.

Looks like for now awscc provider has this data source as a workaround: https://registry.terraform.io/providers/hashicorp/awscc/1.8.0/docs/data-sources/networkmanager_core_network