Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit b78fed4

Browse files
authored
Merge pull request #76 from kirankumar15/main
Fix Lambda VPC Config bug and IAM Role
2 parents f7721d2 + ea0d0e5 commit b78fed4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

templates/git2s3.template.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,21 @@ Resources:
616616
- codebuild:BatchGetBuilds
617617
Resource:
618618
- !GetAtt GitPullCodeBuild.Arn
619-
619+
- Effect: Allow
620+
Action:
621+
- 'ec2:CreateNetworkInterface'
622+
- 'ec2:DescribeDhcpOptions'
623+
- 'ec2:DescribeNetworkInterfaces'
624+
- 'ec2:DeleteNetworkInterface'
625+
- 'ec2:DescribeSubnets'
626+
- 'ec2:DescribeSecurityGroups'
627+
- 'ec2:DescribeVpcs'
628+
Resource:
629+
- '*'
630+
- Effect: Allow
631+
Action:
632+
- 'ec2:CreateNetworkInterfacePermission'
633+
Resource: !Sub 'arn:aws:ec2:${AWS::Region}:${AWS::AccountId}:network-interface/*'
620634
GitPullCodeBuild:
621635
Type: AWS::CodeBuild::Project
622636
Properties:
@@ -625,6 +639,7 @@ Resources:
625639
- SecurityGroupIds:
626640
- !Ref 'GitPullSecurityGroup'
627641
Subnets: !Ref 'SubnetIds'
642+
VpcId: !Ref VPCId
628643
- !Ref 'AWS::NoValue'
629644
Artifacts:
630645
Type: NO_ARTIFACTS

0 commit comments

Comments
 (0)