Skip to content

Commit

Permalink
Adjust Python example accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Oct 4, 2024
1 parent f867fad commit ab67e3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aws-py-static-website/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def get_domain_and_subdomain(domain):
certificate_arn = stack_config.get('certificateArn')

# Create an S3 bucket configured as a website bucket.
content_bucket = pulumi_aws.s3.BucketV2('contentBucket', bucket=target_domain)
setup_acl('contentBucket', content_bucket, 'public-read')
content_bucket = pulumi_aws.s3.BucketV2(f'{target_domain}-content')


content_bucket_website = pulumi_aws.s3.BucketWebsiteConfigurationV2('content-bucket',
Expand Down Expand Up @@ -138,7 +137,7 @@ def bucket_object_converter(filepath):
certificate_arn = cert_validation.certificate_arn

# Create a logs bucket for the CloudFront logs
logs_bucket = pulumi_aws.s3.BucketV2('requestLogs', bucket=f'{target_domain}-logs')
logs_bucket = pulumi_aws.s3.BucketV2(f'{target_domain}-logs')
setup_acl('requestLogs', logs_bucket, 'private')

# Create the CloudFront distribution
Expand Down

0 comments on commit ab67e3a

Please sign in to comment.