You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing tests with the Teams module I have found if the app.synth() command is included in my main application definition any existing role I specify is excluded from the CloudFormation template Custom::AWSCDK-EKS-KubernetesResource resource.
Expected Behavior
File Structure
my-blueprints <- this is the project root directory
|
|_ bin
| |_ my-blueprints.ts
|
|_ lib
|_ team-platform.ts
File Contents
my-blueprints.ts
#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';
import * as team from '../lib/team-platform';
const account = '< Account ID >';
const region = '< Region >';
const teams: Array<blueprints.Team > = [
new team.TeamPlatform(account)
];
const app = new cdk.App ();
const stack = blueprints.EksBlueprint.builder()
.account(account)
.region(region)
.teams(...teams)
.build(app, 'eks-blueprint');
When app.synth() is added to my-blueprints.ts as follows the arn:aws:iam::${accountID}:role/Admin is no longer included in the Join:
my-blueprints.ts
#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';
import * as team from '../lib/team-platform';
const account = '< Account ID >';
const region = '< Region >';
const teams: Array<blueprints.Team > = [
new team.TeamPlatform(account)
];
const app = new cdk.App ();
const stack = blueprints.EksBlueprint.builder()
.account(account)
.region(region)
.teams(...teams)
.build(app, 'eks-blueprint');
app.synth()
Describe the bug
When performing tests with the Teams module I have found if the app.synth() command is included in my main application definition any existing role I specify is excluded from the CloudFormation template Custom::AWSCDK-EKS-KubernetesResource resource.
Expected Behavior
my-blueprints <- this is the project root directory
|
|_ bin
| |_ my-blueprints.ts
|
|_ lib
|_ team-platform.ts
my-blueprints.ts
team-platform.ts
CFN Template Snippet
Current Behavior
When app.synth() is added to my-blueprints.ts as follows the arn:aws:iam::${accountID}:role/Admin is no longer included in the Join:
my-blueprints.ts
CFN Template Snippet
Could you please investigate and advise - thanks.
CDK CLI Version
2.50.0 (build 4c11af6)
EKS Blueprints Version
1.4.1
Node.js Version
v18.12.1
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: