Skip to content

Commit

Permalink
Integrate codebuild vpc support
Browse files Browse the repository at this point in the history
  • Loading branch information
jogold committed Apr 1, 2019
1 parent 5293965 commit 1688c67
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/@aws-cdk/aws-codebuild/lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,9 +872,6 @@ export class Project extends ProjectBase {
});
this._securityGroups = [securityGroup];
}
const subnetSelection: ec2.SubnetSelection = props.subnetSelection ? props.subnetSelection : {
subnetType: ec2.SubnetType.Private
};
this.addToRoleInlinePolicy(new iam.PolicyStatement()
.addAllResources()
.addActions(
Expand All @@ -897,7 +894,7 @@ export class Project extends ProjectBase {
.addAction('ec2:CreateNetworkInterfacePermission'));
return {
vpcId: props.vpc.vpcId,
subnets: props.vpc.subnetIds(subnetSelection).map(s => s),
subnets: props.vpc.subnetIds(props.subnetSelection),
securityGroupIds: this._securityGroups.map(s => s.securityGroupId)
};
}
Expand Down

0 comments on commit 1688c67

Please sign in to comment.