Switch to using vpcId and creating the security group directly from within serverless
This commit is contained in:
parent
b98e515cae
commit
d88e1c13ca
1 changed files with 11 additions and 1 deletions
|
|
@ -1,3 +1,12 @@
|
||||||
|
rBuildsSecurityGroup:
|
||||||
|
Type: AWS::EC2::SecurityGroup
|
||||||
|
Properties:
|
||||||
|
GroupDescription: Security Group for the RBuilds jobs
|
||||||
|
GroupName: RBuildsJobs
|
||||||
|
VpcId: ${self:custom.vpcId}
|
||||||
|
Tags: ${self:custom.tagsList}
|
||||||
|
|
||||||
|
|
||||||
rBuildsBatchIamRole:
|
rBuildsBatchIamRole:
|
||||||
Type: AWS::IAM::Role
|
Type: AWS::IAM::Role
|
||||||
Properties:
|
Properties:
|
||||||
|
|
@ -103,7 +112,8 @@ rBuildsBatchComputeEnvironment:
|
||||||
Version: '$Latest'
|
Version: '$Latest'
|
||||||
SpotIamFleetRole:
|
SpotIamFleetRole:
|
||||||
"Fn::GetAtt": [ rBuildsSpotFleetIamRole, Arn ]
|
"Fn::GetAtt": [ rBuildsSpotFleetIamRole, Arn ]
|
||||||
SecurityGroupIds: ${self:custom.securityGroupIds}
|
SecurityGroupIds:
|
||||||
|
"Fn::GetAtt": [ rBuildsSecurityGroup, GroupId ]
|
||||||
Subnets: ${self:custom.subnets}
|
Subnets: ${self:custom.subnets}
|
||||||
Type: SPOT
|
Type: SPOT
|
||||||
BidPercentage: 100
|
BidPercentage: 100
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue