Skip to content

Commit d69b19b

Browse files
committed
add check for bucket phase
1 parent 0a5bb53 commit d69b19b

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)