diff --git a/.travis.yml b/.travis.yml index ba3a6a0ad..4f81279d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,16 @@ matrix: - LINTING=true sudo: false +before_install: +- | + if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH" + fi + git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs))/' || { + echo "No code was updated. Stopping build process." + exit + } + install: - travis_retry npm install diff --git a/docs/providers/aws/guide/functions.md b/docs/providers/aws/guide/functions.md index 93127a772..09d912dd3 100644 --- a/docs/providers/aws/guide/functions.md +++ b/docs/providers/aws/guide/functions.md @@ -98,6 +98,7 @@ functions: memorySize: 512 # function specific ``` + ## Permissions Every AWS Lambda function needs permission to interact with other AWS infrastructure resources within your account. These permissions are set via an AWS IAM Role. You can set permission policy statements within this role via the `provider.iamRoleStatements` property.