Skip to content

Commit

Permalink
chore: updated functional tests for provisioned concurrency support (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreya authored and sanathkr committed Dec 3, 2019
1 parent a3bcbec commit 882d68b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ boto3~=1.10, >=1.10.29
jmespath~=0.9.4
PyYAML~=5.1
cookiecutter~=1.6.0
aws-sam-translator==1.17.0
aws-sam-translator==1.18.0
docker~=4.0
dateparser~=0.7
python-dateutil~=2.6, <2.8.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
Parameters:
FnName:
Type: String
ProvisionedConcurrency:
Type: String
Default: 10
EnableAliasProvisionedConcurrency:
Type: String
AllowedValues:
- true
- false
Default: true
Conditions:
AliasProvisionedConcurrencyEnabled: !Equals [!Ref EnableAliasProvisionedConcurrency, true]
Resources:
MinimalFunction:
Type: 'AWS::Serverless::Function'
Expand All @@ -7,4 +21,6 @@ Resources:
Runtime: python2.7
AutoPublishAlias: live
DeploymentPreference:
Type: Linear10PercentEvery3Minutes
Type: Linear10PercentEvery3Minutes
ProvisionedConcurrencyConfig:
ProvisionedConcurrentExecutions: !If [AliasProvisionedConcurrencyEnabled, !Ref ProvisionedConcurrency, !Ref 'AWS::NoValue']

0 comments on commit 882d68b

Please sign in to comment.