Closed danielesalvatore closed 2 years ago
The Api is really a bit confusing...
You can pass the bucket name as a domain name
static_distribution = StaticSiteDistribution(self, "Distribution",
authorization=authorization,
domainNames=[bucket_name],
origin=origins.S3Origin(self.bucket)
)
It worked thanks!
Dear all, Thank you very much for this instrumental project.
I report here an issue I experienced while using
StaticSiteDistribution
and trying to update the User Pool Client Callbacks. It seems that to use the updateUserPoolClientCallbacks(redirects) method break the synth process due to the following error, which appears related to an ID duplication inside theStaticSiteAuthorization
construct:I paste below the relevant part of my python code to show how I am using the construct, with an already existing Cognito User Pool and an existing S3 bucket.
Am I using incorrectly the component or do you think this is an internal bug of the construct?
Thanks in advance! Daniele