diff --git a/.github/workflows/environment-main-deploy.yaml b/.github/workflows/environment-main-deploy.yaml index 4b798a70..127f42f1 100644 --- a/.github/workflows/environment-main-deploy.yaml +++ b/.github/workflows/environment-main-deploy.yaml @@ -23,7 +23,7 @@ jobs: - name: Configure AWS Access uses: aws-actions/configure-aws-credentials@39228ca2bffc0bfc8f7761ce893f5b80e7eaaf8f with: - role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/GitHubAction-Wildsea@${{ vars.ENVIRONMENT }} + role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/GitHubAction-Wildsea-${{ vars.ENVIRONMENT }} role-session-name: GitHubDeploy aws-region: ${{ vars.AWS_REGION }} - name: terraform apply diff --git a/.github/workflows/environment-main-plan.yaml b/.github/workflows/environment-main-plan.yaml index 241d004f..4949f42d 100644 --- a/.github/workflows/environment-main-plan.yaml +++ b/.github/workflows/environment-main-plan.yaml @@ -21,7 +21,7 @@ jobs: - name: Configure AWS Access uses: aws-actions/configure-aws-credentials@39228ca2bffc0bfc8f7761ce893f5b80e7eaaf8f with: - role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/GitHubAction-Wildsea-main + role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/GitHubAction-Wildsea role-session-name: GitHubTest aws-region: ${{ vars.AWS_REGION }} - name: terraform plan diff --git a/README.md b/README.md index f59beb65..af9d3dc3 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ To set up a github repository: * Create an AWS Account for deployment * Set up OIDC as per * Restrict it to the repo and branch main - * Add AdministratorAccess, for now, and call it GitHubAccess-Wildsea@main + * Add AdministratorAccess, for now, and call it GitHubAccess-Wildsea-main * Add another role with ReadyOnlyAccess, don't restrict the branch, and call it GitHubAccess-Wildsea * Add an environment "main" * Add an Environment Variable in the environment "AWS_ACCOUNT" with the ID of the AWS Account