diff --git a/.github/actions/rosa-create-cluster/action.yml b/.github/actions/rosa-create-cluster/action.yml index 775ea837..8795d95a 100644 --- a/.github/actions/rosa-create-cluster/action.yml +++ b/.github/actions/rosa-create-cluster/action.yml @@ -108,7 +108,7 @@ runs: id: create-s3-bucket shell: bash run: | - if aws s3api head-bucket --bucket ${{ inputs.s3-backend-bucket }} 2>/dev/null; then + if aws s3api head-bucket --bucket ${{ inputs.s3-backend-bucket }} --region ${{ inputs.aws-region }} 2>/dev/null; then echo "Bucket already exists" else echo "Bucket does not exist, creating..."