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 14, 2024
1 parent cae4d55 commit 62182ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/rosa-create-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ runs:
aws s3api create-bucket --bucket ${{ inputs.s3-backend-bucket }} --region ${{ inputs.aws-region }} --create-bucket-configuration LocationConstraint=${{ inputs.aws-region }}
fi
aws s3api put-bucket-policy --bucket ${{ inputs.s3-backend-bucket }} --region ${{ inputs.aws-region }} --policy file://.github/actions/rosa-create-cluster/bucket-policy.json
# 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
- name: Terraform Init
shell: bash
Expand Down

0 comments on commit 62182ad

Please sign in to comment.