Skip to content

Commit 2219df2

Browse files
author
sg
committed
improve naming
1 parent d49d124 commit 2219df2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/gh-aws-deploy-oidc.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ const app = new App();
99

1010
// Create the OIDC provider stack
1111
// This stack sets up the OpenID Connect provider for GitHub Actions
12-
const oidcGithubProviderStack = new GithubOidcProviderStack(app, 'OidcProviderStack');
12+
const oidcGithubProviderStack = new GithubOidcProviderStack(app, 'GithubOidcProvider');
1313

1414
// Create the GitHub Actions role stack
1515
// This stack creates an IAM role for GitHub Actions to assume
1616
// The role assumes the OIDC provider created in the previous stack
17-
const githubActionsRoleStack = new GithubActionsRoleStack(app, 'GithubActionsRoleStack', oidcGithubProviderStack.oidcGithubProvider.openIdConnectProviderArn);
17+
const githubActionsRoleStack = new GithubActionsRoleStack(app, 'GithubActionsRole', oidcGithubProviderStack.oidcGithubProvider.openIdConnectProviderArn);
1818

1919
// Create the GitHub Actions policy stack
2020
// This stack attaches necessary policies to the IAM role created in the previous stack
21-
new GithubActionsPolicyStack(app, 'GithubActionsPolicyStack', githubActionsRoleStack.role);
21+
new GithubActionsPolicyStack(app, 'GithubActionsPolicy', githubActionsRoleStack.role);
2222

2323
// Synthesize the CDK app
2424
// This step generates the CloudFormation templates for the defined stacks

lib/github-actions-role-stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class GithubActionsRoleStack extends cdk.Stack {
1111
super(scope, id, props);
1212

1313
// Create a new IAM role for GitHub Actions to use
14-
this.role = new Role(this, 'GithubActionsRole', {
14+
this.role = new Role(this, 'GitHubActionsRole', {
1515
// Specify the principal that can assume this role
1616
// Use the OIDC provider ARN for GitHub Actions
1717
assumedBy: new FederatedPrincipal(oidcProviderArn, {

0 commit comments

Comments
 (0)