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:
script:
- aws s3 sync site s3://eddarmitage.com
- cp aws/redirect-lambda.js index.js && zip function.zip index.js
- aws lambda update-function-code --publish --function-name cloudfront-index-redirect --zip-file fileb://function.zip
- aws lambda update-function-code --region us-east-1 --publish --function-name cloudfront-index-redirect --zip-file fileb://function.zip
- 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