Open pedromtcosta opened 1 year ago
@josh-demuth
thank you for reporting this. we are working on a fix
this should be resolved by https://github.com/cdklabs/cdk-stacksets/pull/325. we will update once we can get it merged.
I'm getting a similar but slightly different error: PermanentRedirect. S3 Error Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint
(frustratingly the logs/output don't actually specify what the endpoint should be).
Is it possible we're not formatting the s3 bucket endpoint up to current recommendations? i'm reading you should generally access a bucket by one of the following:
https://s3.amazonaws.com/<bucket name>
https://<bucket name>.s3.amazonaws.com
but it appears this is actually using https://s3.<bucket name>
I defined the following structure for my Stack Set:
when I try deploying it with
cdk deploy --all
, I get the error:Then I create a bucket on the
eu-central-1
region and set theassetBucket
on my StackSetStack:but now I get the error:
Changing my
StackSet
target toeu-central-1
fixes the problem, but it will simply come back when I start adding more regions.How to get away from this situation where I cannot leave
assetBucket
empty because of the first error, but I also cannot set a value to it because the deployment will fail when I am in a different region than the bucket?