add staging env attributes
This commit is contained in:
parent
7aa0fbd928
commit
314a3f41a8
2 changed files with 9 additions and 6 deletions
|
|
@ -87,7 +87,7 @@ rBuildsBatchComputeEnvironment:
|
||||||
SecurityGroupIds: ${self:custom.securityGroupIds}
|
SecurityGroupIds: ${self:custom.securityGroupIds}
|
||||||
Subnets: ${self:custom.subnets}
|
Subnets: ${self:custom.subnets}
|
||||||
Type: SPOT
|
Type: SPOT
|
||||||
BidPercentage: 40
|
BidPercentage: 60
|
||||||
InstanceRole:
|
InstanceRole:
|
||||||
"Fn::GetAtt": [ rBuildsIamInstanceProfile, Arn ]
|
"Fn::GetAtt": [ rBuildsIamInstanceProfile, Arn ]
|
||||||
InstanceTypes:
|
InstanceTypes:
|
||||||
|
|
@ -231,6 +231,7 @@ rBuildsEventRule:
|
||||||
Properties:
|
Properties:
|
||||||
Description: Check for New R Versions
|
Description: Check for New R Versions
|
||||||
ScheduleExpression: rate(1 hour)
|
ScheduleExpression: rate(1 hour)
|
||||||
|
State: ${self:custom.${self:provider.stage}.eventRuleState}
|
||||||
Targets:
|
Targets:
|
||||||
- Id: rbuilds
|
- Id: rbuilds
|
||||||
Input: '{}'
|
Input: '{}'
|
||||||
|
|
|
||||||
|
|
@ -7,17 +7,19 @@ plugins:
|
||||||
custom: ${file(./serverless-custom.yml)}
|
custom: ${file(./serverless-custom.yml)}
|
||||||
|
|
||||||
package:
|
package:
|
||||||
exclude:
|
exclude:
|
||||||
- integration/**
|
- integration/**
|
||||||
- builder/**
|
- builder/**
|
||||||
- docs/**
|
- docs/**
|
||||||
|
- node_modules/**
|
||||||
|
|
||||||
provider:
|
provider:
|
||||||
name: aws
|
name: aws
|
||||||
runtime: python3.6
|
runtime: python3.6
|
||||||
|
stage: ${opt:stage, self:custom.defaultStage}
|
||||||
deploymentBucket:
|
deploymentBucket:
|
||||||
name: ${self:custom.deploymentBucket}
|
name: ${self:custom.deploymentBucket}
|
||||||
stackTags: ${self:custom.stackTags}
|
stackTags: ${self:custom.${self:provider.stage}.stackTags}
|
||||||
iamRoleStatements:
|
iamRoleStatements:
|
||||||
- Effect: Allow
|
- Effect: Allow
|
||||||
Action:
|
Action:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue