diff --git a/app.py b/app.py index 64d8777d..dd782de0 100644 --- a/app.py +++ b/app.py @@ -83,7 +83,9 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None: domain=domain, ) -website = VedaWebsite(veda_stack, "stac-browser-bucket") +website = VedaWebsite( + veda_stack, "stac-browser-bucket", stage=veda_app_settings.stage_name() +) veda_routes = CloudfrontDistributionConstruct( veda_stack, diff --git a/s3_website/infrastructure/construct.py b/s3_website/infrastructure/construct.py index 4d03d02b..c4f3f296 100644 --- a/s3_website/infrastructure/construct.py +++ b/s3_website/infrastructure/construct.py @@ -13,6 +13,7 @@ def __init__( self, scope: Construct, construct_id: str, + stage: str, **kwargs, ) -> None: """.""" @@ -31,7 +32,7 @@ def __init__( self.bucket = s3.Bucket( self, construct_id, - bucket_name=f"{stack_name}-stac-browser", + bucket_name=f"{stack_name}-{stage}-stac-browser", removal_policy=RemovalPolicy.DESTROY, auto_delete_objects=True, website_index_document="index.html",