We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d0416 commit 19a288cCopy full SHA for 19a288c
.github/workflows/deploy-api-lambda.yml
@@ -52,8 +52,17 @@ jobs:
52
53
- name: Upload Lambda function
54
run: |
55
- aws lambda update-function-code \
+ NEW_VERSION=$(aws lambda update-function-code \
56
--function-name "elastic-docs-v3-${ENVIRONMENT}-api" \
57
- --zip-file "fileb://${ZIP_FILE}"
+ --zip-file "fileb://${ZIP_FILE}" \
58
+ --publish \
59
+ --query 'Version' \
60
+ --output text)
61
+
62
+ aws lambda update-alias \
63
+ --function-name "elastic-docs-v3-${ENVIRONMENT}-api" \
64
+ --name live \
65
+ --function-version $NEW_VERSION
66
67
env:
68
ENVIRONMENT: ${{ inputs.environment }}
0 commit comments