Commit 4ed50dc4 authored by Edd Armitage's avatar Edd Armitage

Specify region when publishing lambda

parent 8a7cb375
Pipeline #117372062 passed with stages
in 2 minutes and 21 seconds
......@@ -32,5 +32,5 @@ publish:
- aws s3 sync site s3://
- cp aws/redirect-lambda.js index.js && zip index.js
- aws lambda update-function-code --publish --function-name cloudfront-index-redirect --zip-file fileb://
- aws lambda update-function-code --region us-east-1 --publish --function-name cloudfront-index-redirect --zip-file fileb://
- aws cloudfront create-invalidation --distribution-id $CDN_DISTRIBUTION_ID --paths "/*"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment