Skip to content

Commit

Permalink
Enable transit encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
raykrueger committed Oct 25, 2023
1 parent afd1d45 commit ce7b571
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { RemovalPolicy } from 'aws-cdk-lib';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as ecs from 'aws-cdk-lib/aws-ecs';
import * as efs from 'aws-cdk-lib/aws-efs';
import { PolicyStatement } from 'aws-cdk-lib/aws-iam';
import { Construct } from 'constructs';
import * as shutdown from './auto_shutdown';
import { DiscordBotConstruct } from './discord';
import { PolicyStatement } from 'aws-cdk-lib/aws-iam';

const DEFAULT_VCPU = 2048;
const DEFAULT_MEMORY = 8192;
Expand Down Expand Up @@ -182,10 +182,11 @@ export class GameServer extends Construct {
name: 'efsVolume',
efsVolumeConfiguration: {
fileSystemId: fs.fileSystemId,
authorizationConfig: {
transitEncryption: 'ENABLED',
authorizationConfig:{
accessPointId: ap.accessPointId,
iam: 'ENABLED',
},
iam: 'ENABLED'
}
},
});

Expand All @@ -195,10 +196,10 @@ export class GameServer extends Construct {
'elasticfilesystem:ClientRootAccess',
'elasticfilesystem:ClientWrite',
'elasticfilesystem:ClientMount',
'elasticfilesystem:DescribeMountTargets',
'elasticfilesystem:DescribeMountTargets'
],
resources: [fs.fileSystemArn],
}),
resources: [fs.fileSystemArn]
})
);

/**
Expand Down

0 comments on commit ce7b571

Please sign in to comment.