forked from aws-samples/amazon-lex-bi-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete-s3.sh
More file actions
28 lines (22 loc) · 763 Bytes
/
delete-s3.sh
File metadata and controls
28 lines (22 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
# Deletes the bot, intents, and custom slot types
# in reverse order of build: first the bot, then
# the intents, then the slot types.
#
#
# Environment variables to be set in the CodeBuild project
#
# $ATHENA_BUCKET S3 bucket where data files reside
# $ATHENA_OUTPUT_LOCATION S3 bucket for Athena output
# $ARTIFACT_STORE S3 bucket for CodePipeline / CodeBuild code sharing
#
echo "Deleting S3 bucket $ATHENA_BUCKET"
aws s3 rm --recursive $ATHENA_BUCKET
aws s3 rb --force $ATHENA_BUCKET
echo "Deleting S3 bucket $ATHENA_OUTPUT_LOCATION"
aws s3 rm --recursive $ATHENA_OUTPUT_LOCATION
aws s3 rb --force $ATHENA_OUTPUT_LOCATION
echo "Deleting S3 bucket $ARTIFACT_STORE"
aws s3 rm --recursive $ARTIFACT_STORE
aws s3 rb --force $ARTIFACT_STORE