diff --git a/.github/workflows/publish_layer.yml b/.github/workflows/publish_layer.yml index 81d46226a4c..37e250298dd 100644 --- a/.github/workflows/publish_layer.yml +++ b/.github/workflows/publish_layer.yml @@ -16,7 +16,6 @@ on: types: - completed - jobs: build-layer: runs-on: ubuntu-latest @@ -69,7 +68,7 @@ jobs: stage: "BETA" artefact-name: "cdk-layer-artefact" secrets: - target-account-role: arn:aws:iam::${{ secrets.LAYERS_BETA_ACCOUNT }}:role/${{ secrets.AWS_GITHUB_OIDC_ROLE }} + target-account-role: ${{ secrets.AWS_LAYERS_BETA_ROLE_ARN }} deploy-prod: needs: @@ -79,4 +78,4 @@ jobs: stage: "PROD" artefact-name: "cdk-layer-artefact" secrets: - target-account-role: arn:aws:iam::${{ secrets.LAYERS_PROD_ACCOUNT }}:role/${{ secrets.AWS_GITHUB_OIDC_ROLE }} + target-account-role: ${{ secrets.AWS_LAYERS_PROD_ROLE_ARN }}