bitter-france-47214
08/25/2022, 5:34 PMaws:cloudfront:Distribution
is failing because of following error:
error creating CloudFront Distribution: InvalidArgument: The parameter Origin DomainName does not refer to a valid S3 bucket. status code: 400, request id: 59...eb1
I assume that this originates to following parts of the arguments:
origins: [
{
originId: contentBucket.arn,
domainName: contentBucket.websiteEndpoint,
s3OriginConfig: {
originAccessIdentity: originAccessIdentity.cloudfrontAccessIdentityPath,
},
},
],
Especially contentBucket.websiteEndpoint
. I assume this is the problem. Pulumi outputs this as <http://myDomain.app.s3-website.eu-central-1.amazonaws.com/>
which works fine so I don't quite know what the problem is. Can anybody help?steep-toddler-94095
08/25/2022, 6:18 PMbucketDomainName
instead?bitter-france-47214
08/25/2022, 10:31 PM