CreateDistributionWithTags sends empty string for ResponsePagePath #4926
Labels
awaiting-upstream
The issue cannot be resolved without action in another repository (may be owned by Pulumi).
kind/bug
Some behavior is incorrect or out of spec
Describe what happened
When creating a CloudFront distribution I was trying to set CustomErrorResponse to redirect 403 to 404. I was getting consistent failure to deploy this from AWS with a less than helpful error:
"errorCode": "ServiceUnavailableException",
"errorMessage": "An unknown error occurred".
Speaking with AWS support they indicated that you cannot set custom response codes, without also setting the ResponsePagePath. When I look at the output from Pulumi I see that the library is setting this to an empty string, which is invalid.
Sample program
Example CloudFront Distribution:
Log output
Relevant snippet from CloudTrail Logs.
Affected Resource(s)
aws.cloudfront.Distribution
Output of
pulumi about
CLI
Version 3.142.0
Go Version go1.23.3
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 6.64.0
resource aws 6.56.1
resource aws 6.27.0
resource awsx 2.19.0
resource awsx 2.16.1
resource awsx 2.6.0
resource docker 4.5.1
resource docker 4.5.1
resource docker 3.6.1
resource docker 3.6.1
language nodejs unknown
resource random 4.16.7
Host
OS darwin
Version 15.2
Arch arm64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: