File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -62,17 +62,13 @@ jobs:
6262 cd terraform
6363 bash run-tflocal.sh
6464
65- # - name: curl endpoint
66- # run: |
67- # rest_api=$(awslocal apigateway get-rest-apis | jq -r '.items[0].id')
68- # url="https://${rest_api}.execute-api.localhost.localstack.cloud:4566/local/upload"
69- # echo "curling $url ..."
70- # result=$(curl $url)
71- # if [[ "$result" != *"<h1>AWS Transcribe Example</h1>"* ]]; then
72- # echo "unexpected response"
73- # echo $result
74- # exit 1
75- # fi
65+ - name : Check for Bucket
66+ run : |
67+ output=$(awslocal s3api list-buckets --query "Buckets[?contains(Name, 'shipment-picture-bucket')].Name" --output text)
68+ if [ -z "$output" ]; then
69+ echo "Created bucket not found."
70+ exit 1
71+ fi
7672
7773# - name: Send a Slack notification
7874# if: failure() || github.event_name != 'pull_request'
You can’t perform that action at this time.
0 commit comments