diff --git a/.github/workflows/search-ui-deploy-composite/action.yml b/.github/workflows/search-ui-deploy-composite/action.yml index e80f65c35..6ed4da3a0 100644 --- a/.github/workflows/search-ui-deploy-composite/action.yml +++ b/.github/workflows/search-ui-deploy-composite/action.yml @@ -28,7 +28,7 @@ runs: - name: Configure AWS credentials from Test account uses: aws-actions/configure-aws-credentials@v3 with: - role-to-assume: arn:aws:iam::${{ inputs.aws-account-id }}:role/GitHub_Actions_Role + role-to-assume: arn:aws:iam::${{ inputs.aws-account-id }}:role/GitHub_Actions_Role_SearchUI_${{ inputs.maturity }} aws-region: us-east-1 - name: Fetch the caller identity diff --git a/build/github-actions-oidc.yml b/build/github-actions-oidc.yml index 089a429d9..efcd297d3 100644 --- a/build/github-actions-oidc.yml +++ b/build/github-actions-oidc.yml @@ -6,7 +6,7 @@ Resources: GitHubActionsRole: Type: AWS::IAM::Role Properties: - RoleName: GitHub_Actions_Role + RoleName: GitHub_Actions_Role_SearchUI_test AssumeRolePolicyDocument: Version: 2012-10-17 Statement: