Skip to content

Commit

Permalink
init ocp test
Browse files Browse the repository at this point in the history
  • Loading branch information
leiicamundi committed May 15, 2024
1 parent 956a3ea commit cca1b6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
7 changes: 1 addition & 6 deletions .github/actions/rosa-create-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,7 @@ runs:
aws s3api create-bucket --bucket ${{ inputs.s3-backend-bucket }} --region ${{ inputs.aws-region }} --create-bucket-configuration LocationConstraint=${{ inputs.aws-region }}
fi
# Define the path to the bucket policy file
bucket_policy_path=".github/actions/rosa-create-cluster/bucket-policy.json"
# Replace placeholders in the bucket policy file and apply the policy
sed -i "s|{{ inputs.s3-backend-bucket }}|${{ inputs.s3-backend-bucket }}|g" "$bucket_policy_path"
aws s3api put-bucket-policy --bucket ${{ inputs.s3-backend-bucket }} --region ${{ inputs.aws-region }} --policy file://$bucket_policy_path
aws s3api put-public-access-block --bucket ${{ inputs.s3-backend-bucket }} --region ${{ inputs.aws-region }}
- name: Set Terraform variables
shell: bash
Expand Down
12 changes: 0 additions & 12 deletions .github/actions/rosa-create-cluster/bucket-policy.json

This file was deleted.

0 comments on commit cca1b6c

Please sign in to comment.