Skip to content

Commit b4bdf4b

Browse files
authored
fix: deployment from arm64 (#29)
1 parent c9eeab4 commit b4bdf4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deploy.sh

+3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,12 @@ aws cloudformation deploy --stack-name ${APP_NAME} \
4646
# Get the ARN of the Lambda function from stack outputs
4747
CERTBOT_FUNCTION_ARN=$(aws cloudformation describe-stacks --stack-name ${APP_NAME} --query 'Stacks[0].Outputs[?OutputKey==`AwsCertbotFunctionArn`].OutputValue' --output text)
4848

49+
ARCH=$(dpkg --print-architecture)
50+
4951
# Update the Lambda function code using the extracted ARN
5052
aws lambda update-function-code \
5153
--function-name ${CERTBOT_FUNCTION_ARN} \
54+
--architectures ${ARCH} \
5255
--image-uri ${ECR_REPOSITORY_URI}:latest > /dev/null
5356

5457
echo "Deployment complete"

0 commit comments

Comments
 (0)