You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and deploy a ResourceRecordSet resource. When provider-aws tries to Observe the resource, the above error is caused because the Service ID for Route53 in the AWS SDK contains a space:
What happened?
The Observe function for ResourceRecordSets (or any Route53 resource) fails when the ProviderConfig is using dynamic endpoint configuration:
How can we reproduce it?
Use the following ProviderConfig:
and deploy a ResourceRecordSet resource. When provider-aws tries to Observe the resource, the above error is caused because the Service ID for Route53 in the AWS SDK contains a space:
https://github.com/aws/aws-sdk-go-v2/blob/main/service/route53/api_client.go#L26
and the AWS client code is using the service as a part of the URL:
https://github.com/crossplane-contrib/provider-aws/blob/master/pkg/clients/aws.go#L195
Also Route53 is a "global" service like IAM so the region is not part of the URL and it needs to be handled the same way as IAM is handled today:
https://github.com/crossplane-contrib/provider-aws/blob/master/pkg/clients/aws.go#L193
I will push a PR.
What environment did it happen in?
Crossplane version: 1.9.0
AWS Provider 0.29.0
The text was updated successfully, but these errors were encountered: