Closed drewmullen closed 8 months ago
While re-writing from terratest to terraform test, Cloud WAN is failing. Test rewrite info can be found here: https://github.com/aws-ia/terraform-aws-vpc/pull/127
terratest
terraform test
│ Error: creating Network Manager VPC (arn:aws:ec2:eu-west-1:<>:vpc/vpc-09cd420afda9e9e9b) Attachment (core-network-03413d810dfe4a70d): ValidationException: Core network state is invalid. core network id: core-network-03413d810dfe4a70d │ { │ RespMetadata: { │ StatusCode: 400, │ RequestID: "98c0f702-d9c5-4d37-bb1a-06d6132c101e" │ }, │ Message_: "Core network state is invalid. core network id: core-network-03413d810dfe4a70d", │ Reason: "Other" │ } │ │ with module.ireland_vpc.aws_networkmanager_vpc_attachment.cwan[0], │ on .terraform/modules/test.tests.examples_cloud_wan.validate.ireland_vpc/main.tf line 472, in resource "aws_networkmanager_vpc_attachment" "cwan": │ 472: resource "aws_networkmanager_vpc_attachment" "cwan" { │ ╵ ╷ │ Error: creating Network Manager VPC (arn:aws:ec2:us-east-1:<>:vpc/vpc-0488572a93a0c78bc) Attachment (core-network-03413d810dfe4a70d): ValidationException: Core network state is invalid. core network id: core-network-03413d810dfe4a70d │ { │ RespMetadata: { │ StatusCode: 400, │ RequestID: "d7c93484-7e65-408a-99d6-a8b408c2a85f" │ }, │ Message_: "Core network state is invalid. core network id: core-network-03413d810dfe4a70d", │ Reason: "Other" │ } │ │ with module.nvirginia_vpc.aws_networkmanager_vpc_attachment.cwan[0], │ on .terraform/modules/test.tests.examples_cloud_wan.validate.nvirginia_vpc/main.tf line 472, in resource "aws_networkmanager_vpc_attachment" "cwan": │ 472: resource "aws_networkmanager_vpc_attachment" "cwan" {
Fixed with terraform test replacement - v4.4.1
While re-writing from
terratest
toterraform test
, Cloud WAN is failing. Test rewrite info can be found here: https://github.com/aws-ia/terraform-aws-vpc/pull/127