Skip to content

Commit ccacf8e

Browse files
committed
Removed unused context variable
1 parent eedd7e4 commit ccacf8e

File tree

3 files changed

+1
-38
lines changed

3 files changed

+1
-38
lines changed

PetAdoptions/cdk/pet_stack/buildspec.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

PetAdoptions/cdk/pet_stack/lib/services.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ export class Services extends Stack {
4141
constructor(scope: Construct, id: string, props?: StackProps) {
4242
super(scope, id, props);
4343

44-
var isEventEngine = 'false';
45-
if (this.node.tryGetContext('is_event_engine') != undefined)
46-
{
47-
isEventEngine = this.node.tryGetContext('is_event_engine');
48-
}
49-
5044
const stackName = id;
5145

5246
// Create SQS resource to send Pet adoption messages to
@@ -446,17 +440,6 @@ export class Services extends Stack {
446440

447441
loadBalancerserviceaccount.assumeRolePolicy?.addStatements(loadBalancer_trustRelationship);
448442

449-
450-
if (isEventEngine === 'true')
451-
{
452-
const teamRole = iam.Role.fromRoleArn(this,'TeamRole',"arn:aws:iam::" + stack.account +":role/WSParticipantRole");
453-
cluster.grantAccess('TeamRoleAccess', teamRole.roleArn, [
454-
eks.AccessPolicy.fromAccessPolicyName('AmazonEKSClusterAdminPolicy', {
455-
accessScopeType: eks.AccessScopeType.CLUSTER
456-
})
457-
]);
458-
}
459-
460443
const eksAdminArn = this.node.tryGetContext('admin_role');
461444
if ((eksAdminArn!=undefined)&&(eksAdminArn.length > 0)) {
462445
const adminRole = iam.Role.fromRoleArn(this,"ekdAdminRoleArn",eksAdminArn,{mutable:false});

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ phases:
1616
- npm install
1717
- if [ -z "$CDK_STACK" ] ; then cdk bootstrap ; else echo "Already bootstrapped" ; fi
1818
- npm run build
19-
- cdk deploy Services --context admin_role=${EE_TEAM_ROLE_ARN} --context is_event_engine="true" --require-approval=never --verbose -O ./out/out.json
19+
- cdk deploy Services --context admin_role=${EE_TEAM_ROLE_ARN} --require-approval=never --verbose -O ./out/out.json
2020
- cdk deploy Applications --require-approval=never --verbose -O ./out/out.json
2121
artifacts:
2222
files: "./PetAdoptions/cdk/pet_stack/out/out.json"

0 commit comments

Comments
 (0)