Skip to content

Commit

Permalink
fix: oidc role name in cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
edelwud committed Mar 15, 2023
1 parent 94ce44f commit 6a72fb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
aws-region: us-west-2
role-duration-seconds: 1800
role-skip-session-tagging: true
role-to-assume: arn:aws:iam::762714406455:role/GithubActionsDeployRole
role-to-assume: arn:aws:iam::762714406455:role/GitHubActionRole
role-session-name: github-actions-runner
- id: Publish
name: Publish Assets-FileAsset1
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
aws-region: us-west-2
role-duration-seconds: 1800
role-skip-session-tagging: true
role-to-assume: arn:aws:iam::762714406455:role/GithubActionsDeployRole
role-to-assume: arn:aws:iam::762714406455:role/GitHubActionRole
role-session-name: github-actions-runner
- id: Publish
name: Publish Assets-FileAsset2
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
aws-region: us-west-2
role-duration-seconds: 1800
role-skip-session-tagging: true
role-to-assume: arn:aws:iam::762714406455:role/GithubActionsDeployRole
role-to-assume: arn:aws:iam::762714406455:role/GitHubActionRole
role-session-name: github-actions-runner
- id: Publish
name: Publish Assets-FileAsset3
Expand All @@ -132,7 +132,7 @@ jobs:
aws-region: us-east-1
role-duration-seconds: 1800
role-skip-session-tagging: true
role-to-assume: arn:aws:iam::762714406455:role/GithubActionsDeployRole
role-to-assume: arn:aws:iam::762714406455:role/GitHubActionRole
role-session-name: github-actions-runner
- name: Assume CDK Deploy Role
uses: aws-actions/configure-aws-credentials@v1-node16
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
aws-region: us-east-1
role-duration-seconds: 1800
role-skip-session-tagging: true
role-to-assume: arn:aws:iam::762714406455:role/GithubActionsDeployRole
role-to-assume: arn:aws:iam::762714406455:role/GitHubActionRole
role-session-name: github-actions-runner
- name: Assume CDK Deploy Role
uses: aws-actions/configure-aws-credentials@v1-node16
Expand Down
3 changes: 1 addition & 2 deletions src/github-actions.stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Construct } from "constructs";

export class GithubActionsStack extends Stack {
role = new GitHubActionRole(this, "GithubActionsRole", {
roleName: "GithubActionsDeployRole",
repos: ["edelwud/dynamodb-s3-export"],
});

Expand All @@ -19,7 +18,7 @@ export class GithubActionsStack extends Stack {
commands: ["yarn", "npx projen build"],
}),
awsCreds: AwsCredentials.fromOpenIdConnect({
gitHubActionRoleArn: `arn:aws:iam::${this.account}:role/GithubActionsDeployRole`,
gitHubActionRoleArn: `arn:aws:iam::${this.account}:role/GitHubActionRole`,
roleSessionName: "github-actions-runner",
}),
});
Expand Down

0 comments on commit 6a72fb6

Please sign in to comment.