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

[Enhancement]: AWS Direct Connect allow encryption mode `unknown` #37907

Open ylhan opened 2 months ago

ylhan commented 2 months ago

Description

This isn't well documented but if a direct connect connection's encryption_mode is not explicitly set then it's set as unknown. This isn't a valid value according to the documentation, however in practice this is the case.

encryptionMode
The MAC Security (MACsec) connection encryption mode.

The valid values are no_encrypt, should_encrypt, and must_encrypt.

Type: String

Required: No

image

As you can see in the screenshot above, encryption mode is set to unknown, because this isn't a supported value, terraform errors out when trying to import the resource or reference it as a data source.

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

Potential Terraform Configuration

data "aws_dx_connection" "example" {
  name = "my_connection_name"
}

References

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dx_connection https://docs.aws.amazon.com/directconnect/latest/APIReference/API_Connection.html#API_Connection_Contents

Would you like to implement a fix?

None

github-actions[bot] commented 2 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

justinretzolk commented 2 months ago

Related: #29789

ylhan commented 2 months ago

Hey @justinretzolk, sorry I didn't see that existing issue but I notice that it is from back in 2023, is there anyway I can bump the priority of this request?