Open bparak opened 2 months ago
Voting for Prioritization
Volunteering to Work on This Issue
To clarify, I don't need the value of fips_dns_name
. I just need the resource to apply correctly.
FipsDnsName
seems to be an optional attribute for EICE. I'm waiting for AWS Support to confirm this.
A quick update. This seems to be caused by regional differences in AWS API responses for EICE. When provisioned in a US region that supports FIPS endpoints, FipsDnsName
(and fips_dns_name
as a result) are correctly populated. However, when provisioned in a region outside of the US - where FIPS endpoints are not available - FipsDnsName
seems to be omitted entirely, the resource cannot be fully applied, and fips_dns_name
won't be populated.
If you are running acceptance tests only in a US region that supports FIPS endpoints, it would explain why tests such as https://github.com/hashicorp/terraform-provider-aws/blob/c6f832619208f075ede58aac56a9f30a5418be2d/internal/service/ec2/ec2_instance_connect_endpoint_test.go#L42 wouldn't find any problems here.
Is this a feasible explanation or am I way off on this?
Hi @justinretzolk, I just noticed you marked this issues with the fips
label. It is true that the reported problem shows up on the fips_dns_name
attribute of the aws_ec2_instance_connect_endpoint
resource but this is not related to FIPS itself. It just happens to present that way. The main point is that the aws_ec2_instance_connect_endpoint
is currently broken for regions outside of the US (and Canada) and its state won't converge properly.
Terraform Core Version
1.8.5, 1.5.7
AWS Provider Version
5.53.0, 5.46.0
Affected Resource(s)
aws_ec2_instance_connect_endpoint
Expected Behavior
When the
aws_ec2_instance_connect_endpoint
resource is successfully created, all resource attributes are correctly populated. Subsequentterraform apply
runs do not:Error: Provider returned invalid result object after apply
.Actual Behavior
Each
terraform apply
run after successful EICE creation showsfips_dns_name
as(known after apply)
:and any attempt to apply this fails with:
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
terraform apply
terraform apply
againDebug Output
No response
Panic Output
No response
Important Factoids
Running
on the created EICE does not return any data related to
FipsDnsName
. There is no such property, even though AWS documentation says it should be there.DnsName
is populated correctly.References
Would you like to implement a fix?
No