Skip to content

Commit cbacb23

Browse files
committed
Readme updates
1 parent c2fe08f commit cbacb23

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Validate the Deployments
123123
"InputDate": "2023-02-08"
124124
}
125125
```
126-
* Once the AWS Step Function is successful, navigate to Amazon S3 > clicklogger-dev-outputs-bucket- to see the output files.
126+
* Once the AWS Step Function is successful, navigate to Amazon S3 > <your-region>-clicklogger-dev-loggregator-output-<your-Account-Number> to see the output files.
127127
* These will be partitioned by year/month/date/response.md. A sample is shown below
128128

129129
![Alt text](assets/s3_output_response_file.png?raw=true "Title")
@@ -188,11 +188,19 @@ S3 and created services can be deleted using CLI also. Execute the below command
188188
189189
# CLI Commands to delete the S3
190190
191-
aws s3 rb s3://clicklogger-dev-emr-serverless-logs-bucket-<your-account-number> --force
192-
aws s3 rb s3://clicklogger-dev-firehose-delivery-bucket-<your-account-number> --force
193-
aws s3 rb s3://clicklogger-dev-loggregator-output-bucket-<your-account-number> --force
194-
aws s3 rb s3://clicklogger-dev-loggregator-source-bucket-<your-account-number> --force
195-
aws s3 rb s3://clicklogger-dev-loggregator-source-bucket-<your-account-number> --force
191+
APP_DIR=$PWD
192+
APP_PREFIX=clicklogger
193+
STAGE_NAME=dev
194+
REGION=us-east-1
195+
196+
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account')
197+
echo $ACCOUNT_ID
198+
199+
aws s3 rb s3://$REGION-$APP_PREFIX-$STAGE_NAME-emr-logs-$ACCOUNT_ID --force
200+
aws s3 rb s3://$REGION-$APP_PREFIX-$STAGE_NAME-firehose-delivery-$ACCOUNT_ID --force
201+
aws s3 rb s3://$REGION-$APP_PREFIX-$STAGE_NAME-loggregator-output-$ACCOUNT_ID --force
202+
aws s3 rb s3://$REGION-$APP_PREFIX-$STAGE_NAME-loggregator-source-$ACCOUNT_ID --force
203+
aws s3 rb s3://$REGION-$APP_PREFIX-$STAGE_NAME-emr-studio-$ACCOUNT_ID --force
196204
197205
# Destroy the AWS Infrastructure
198206
terraform destroy --auto-approve

0 commit comments

Comments
 (0)