Open stephenrjohnson opened 8 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Can confirm this issue is happening to us as well. ~Is the solution to manually create the resource then import into TF state?~
Edit:
Looks like cloudfront does not support Origin access control policies in AWS China. https://docs.amazonaws.cn/en_us/aws/latest/userguide/cloudfront.html - instead they suggest using origin access identity.
Terraform Core Version
1.7.3
AWS Provider Version
5.42.0
Affected Resource(s)
aws_cloudfront_origin_access_control
Expected Behavior
Create a new origin access control in cloudformation
Actual Behavior
The api returns a throttling error but this happens when they don't support something in China. It's been happening over multiple days, accounts and users.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Use the above code and try to create a aws_cloudfront_origin_access_control in the China region
Debug Output
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None