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
Using CloudfrontToS3 Construct. "@aws-solutions-constructs/aws-cloudfront-s3": "^2.54.0",
When creating a CloudFront Distribution, I create them in us-east-1 as they're a global resource. But when accessing the Distribution I get an error.
Expected Behavior
It should point to the correct bucket endpoint.
Current Behavior
<Error>
<script/>
<Code>PermanentRedirect</Code>
<Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message>
<Endpoint>buckets-ap-southeast-2-s3webbucketb6c2279f-ce00aret2azk.s3-ap-southeast-2.amazonaws.com</Endpoint>
<Bucket>buckets-ap-southeast-2-s3webbucketb6c2279f-ce00aret2azk</Bucket>
<RequestId>ZG1DFTQ513BQ3EZE</RequestId>
<HostId>mf0fAffIZD+FKYFoM1W0w1Vy39Rxt/ALQ0MKPaGcg19p9IVJ4tP0AKtRLa0VS7cP8kfIAlEbh8g=</HostId>
</Error>
I have cross-region references turned on, which is why I believe it's created this unknown ARN buckets-ap-southeast-2-s3webbucketb6c2279f-ce00aret2azk, which i wonder might be related.
This issue does not seem to occur if the Distribution is launched in the same region as the bucket.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Related to #9556
Using CloudfrontToS3 Construct. "@aws-solutions-constructs/aws-cloudfront-s3": "^2.54.0",
When creating a CloudFront Distribution, I create them in us-east-1 as they're a global resource. But when accessing the Distribution I get an error.
Expected Behavior
It should point to the correct bucket endpoint.
Current Behavior
I have cross-region references turned on, which is why I believe it's created this unknown ARN
buckets-ap-southeast-2-s3webbucketb6c2279f-ce00aret2azk
, which i wonder might be related.This issue does not seem to occur if the Distribution is launched in the same region as the bucket.
Reproduction Steps
bin/infra.ts
CdnStack
Possible Solution
Hope this gives you enough information. I'm turning off Cross-Reg
Additional Information/Context
No response
CDK CLI Version
2.138.0
Framework Version
No response
Node.js Version
20.11.1
OS
OS X
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: