Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 0ceb3ed

Browse files
committed
temporarily change name of static site bucket
1 parent 4540418 commit 0ceb3ed

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

awscdk/awscdk/static_site_bucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(
1818
self,
1919
"StaticSiteBucket",
2020
access_control=s3.BucketAccessControl.PUBLIC_READ,
21-
bucket_name=f"{full_app_name}-frontend",
21+
bucket_name=f"{full_app_name}-frontend-1",
2222
removal_policy=core.RemovalPolicy.DESTROY,
2323
website_index_document="index.html",
2424
website_error_document="index.html",

gitlab-ci/aws/cdk.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,18 @@ createsuperuser:
123123
--count 1 \
124124
--launch-type FARGATE
125125
126-
.cdk destroy:
126+
cdk destroy:
127127
image: python:3.8
128+
when: manual
128129
stage: deploy
129130
before_script:
130131
- apt-get -qq update && apt-get -y install nodejs npm
131132
- node -v
132133
- npm i -g aws-cdk
133134
- cd awscdk
135+
- pip3 install awscli
134136
- pip3 install -r requirements.txt
135137
script:
138+
- aws s3 rb --force s3://${ENVIRONMENT}-{APP_NAME}-frontend
139+
- aws s3 rb --force s3://${ENVIRONMENT}-{APP_NAME}-assets
136140
- cdk destroy --require-approval never

0 commit comments

Comments
 (0)