CDK: How to use same Iam role between 2 different stacks? – Amazon Web Sevices
I have a stack which creates 2 different codebuild projects. const codeBuildProject = new CodeBuildProjects(this, 'pipelineCodeBuildProjects', { PlanProjectName: 'one-project', DeployProjectName: 'second-project' OneProjectIamRoleName: 'iam-role', twoProjectIamRoleName: 'iam-role' }) This is stack class export class CodeBuildProjects extends cdk.Stack { public readonly plan: codeBuildProject;…