File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 - name : Get resources from CDK stacks
6565 id : cdk-resources
6666 run : |
67- echo "bucket=$(aws cloudformation describe-stacks --stack-name S3SinkStack --query 'Stacks[0].Outputs[?ExportName==`DataPrepperAwsTesting-S3SinkBucketName`].OutputValue' --output text)" >> "$GITHUB_OUTPUT"
68- echo "kms_key=$(aws cloudformation describe-stacks --stack-name CommonKmsStack --query 'Stacks[0].Outputs[?ExportName==`DataPrepperAwsTesting-KmsKeyId`].OutputValue' --output text)" >> "$GITHUB_OUTPUT"
67+ set -e
68+ bucket=$(aws cloudformation describe-stacks --stack-name S3SinkStack --query 'Stacks[0].Outputs[?ExportName==`DataPrepperAwsTesting-S3SinkBucketName`].OutputValue' --output text)
69+ kms_key=$(aws cloudformation describe-stacks --stack-name CommonKmsStack --query 'Stacks[0].Outputs[?ExportName==`DataPrepperAwsTesting-KmsKeyId`].OutputValue' --output text)
70+ if [ -z "$bucket" ] || [ "$bucket" = "None" ]; then echo "Failed to get S3 bucket name"; exit 1; fi
71+ if [ -z "$kms_key" ] || [ "$kms_key" = "None" ]; then echo "Failed to get KMS key ID"; exit 1; fi
72+ echo "bucket=$bucket" >> "$GITHUB_OUTPUT"
73+ echo "kms_key=$kms_key" >> "$GITHUB_OUTPUT"
6974
7075 - name : Run S3 Sink integration tests
7176 run : |
You can’t perform that action at this time.
0 commit comments