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.77k stars 9.12k forks source link

Created hosted connect doesn't exist. aws_dx_hosted_connection #25912

Closed togasiiiix closed 1 month ago

togasiiiix commented 2 years ago

Community Note

Terraform CLI and Terraform AWS Provider Version

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

resource "aws_dx_hosted_connection" "hosted-connection01" {
  connection_id    = "dxcon-*******"
  bandwidth        = "50Mbps"
  name             = "TESTUSER-HOSTEDCONNECT"
  owner_account_id = "***AWSaccountID***"
  vlan             = 2
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

Newly creating a hosted connection on AWS DX partner (terraform apply) and hosted connect user (one indicated in "owner_account_id" in the hcl file) over pre-deployed direct connect (one indicated by "connection_id" in the hcl file).

Actual Behavior

[terraform plan] no issues

[terraform apply] Indeed the hosted connection is successfully deployed by terraform apply. However terminal shows error message like as follows.

Error: error reading Direct Connect Hosted Connection (dxcon-*******): DirectConnectClientException: ************ DescribeHostedConnections failed for connection dxcon-******* doesn't exist.

The created hosted connect is registered as resources, but it is not recognized from terraform well. Just error message is saying "connection doesnt exist" as error message.

Steps to Reproduce

  1. terraform apply

Important Factoids

This hosted connection only can be deployed by AWS DX connect partner and our AWS account is one approved as DX connect partner by AWS. Through AWS web console, we have confirmed hosted connect can be deployed without any issues.

References

github-actions[bot] commented 2 months ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] commented 4 weeks 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.