[Bug]: aws_apigatewayv2_api.body
not setting CORS using OAS30 extension x-amazon-apigateway-cors
#33390
Labels
bug
Addresses a defect in current functionality.
service/apigatewayv2
Issues and PRs that pertain to the apigatewayv2 service.
Terraform Core Version
1.5.2
AWS Provider Version
4.65.0
Affected Resource(s)
If you import OAS30 in your
aws_apigatewayv2_api.body
and you specifiedx-amazon-apigateway-cors
in your OAS30 definition, Terraform ignores it and won't set the defined CORS settings.Expected Behavior
I expected Terraform to appy the CORS settings defined by
x-amazon-apigateway-cors
in the OAS30 definition.Actual Behavior
Terraform ignores the
x-amazon-apigateway-cors
field specified in your OAS30 definition and won't set the related CORS settings to youraws_apigatewayv2_api
resource, thus forcing you to use thecors_configuration
argument.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: