Skip to content

Commit

Permalink
Update permissions on execution role
Browse files Browse the repository at this point in the history
  • Loading branch information
estohlmann committed Nov 12, 2024
1 parent 7d80408 commit eaa61ab
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/models/docker-image-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@

import { Construct } from 'constructs';
import { Code, Function, Runtime } from 'aws-cdk-lib/aws-lambda';
import { Role, InstanceProfile, ServicePrincipal, ManagedPolicy, Policy, PolicyStatement } from 'aws-cdk-lib/aws-iam';
import {
Role,
InstanceProfile,
ServicePrincipal,
ManagedPolicy,
Policy,
PolicyStatement,
Effect
} from 'aws-cdk-lib/aws-iam';
import { Stack, Duration } from 'aws-cdk-lib';
import { Bucket } from 'aws-cdk-lib/aws-s3';
import { BucketDeployment, Source } from 'aws-cdk-lib/aws-s3-deployment';
Expand Down Expand Up @@ -91,7 +99,13 @@ export class DockerImageBuilder extends Construct {
new PolicyStatement({
actions: [
'ec2:RunInstances',
'ec2:CreateTags'
'ec2:CreateTags',
'ec2:CreateNetworkInterface',
'ec2:DescribeNetworkInterfaces',
'ec2:DescribeSubnets',
'ec2:DeleteNetworkInterface',
'ec2:AssignPrivateIpAddresses',
'ec2:UnassignPrivateIpAddresses'
],
resources: ['*']
}),
Expand Down

0 comments on commit eaa61ab

Please sign in to comment.