Merge pull request #1971 from rowanu/add-commented-iam-statements

Fix #1923: Include commented-out IAM statements in templates' serverless.yml.
This commit is contained in:
Florian Motlik 2016-08-26 16:27:44 +02:00 committed by GitHub
commit 0fdae253e4
4 changed files with 56 additions and 0 deletions

View File

@ -16,6 +16,20 @@ service: aws-java-gradle # NOTE: update this with your service name
provider:
name: aws
runtime: java8
# you can add statements to the Lambda function's IAM Role here
# iamRoleStatements:
# - Effect: "Allow"
# Action:
# - "s3:ListBucket"
# Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ] }
# - Effect: "Allow"
# Action:
# - "s3:PutObject"
# Resource:
# Fn::Join:
# - ""
# - - "arn:aws:s3:::"
# - "Ref" : "ServerlessDeploymentBucket"
# you can overwrite defaults here
#defaults:

View File

@ -16,6 +16,20 @@ service: aws-java-maven # NOTE: update this with your service name
provider:
name: aws
runtime: java8
# you can add statements to the Lambda function's IAM Role here
# iamRoleStatements:
# - Effect: "Allow"
# Action:
# - "s3:ListBucket"
# Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ] }
# - Effect: "Allow"
# Action:
# - "s3:PutObject"
# Resource:
# Fn::Join:
# - ""
# - - "arn:aws:s3:::"
# - "Ref" : "ServerlessDeploymentBucket"
# you can overwrite defaults here
#defaults:

View File

@ -16,6 +16,20 @@ service: aws-nodejs # NOTE: update this with your service name
provider:
name: aws
runtime: nodejs4.3
# you can add statements to the Lambda function's IAM Role here
# iamRoleStatements:
# - Effect: "Allow"
# Action:
# - "s3:ListBucket"
# Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ] }
# - Effect: "Allow"
# Action:
# - "s3:PutObject"
# Resource:
# Fn::Join:
# - ""
# - - "arn:aws:s3:::"
# - "Ref" : "ServerlessDeploymentBucket"
# you can overwrite defaults here
#defaults:

View File

@ -16,6 +16,20 @@ service: aws-python # NOTE: update this with your service name
provider:
name: aws
runtime: python2.7
# you can add statements to the Lambda function's IAM Role here
# iamRoleStatements:
# - Effect: "Allow"
# Action:
# - "s3:ListBucket"
# Resource: { "Fn::Join" : ["", ["arn:aws:s3:::", { "Ref" : "ServerlessDeploymentBucket" } ] ] }
# - Effect: "Allow"
# Action:
# - "s3:PutObject"
# Resource:
# Fn::Join:
# - ""
# - - "arn:aws:s3:::"
# - "Ref" : "ServerlessDeploymentBucket"
# you can overwrite defaults here
#defaults: