Skip to content

Commit

Permalink
fix: add profile to cert target
Browse files Browse the repository at this point in the history
  • Loading branch information
o11yguru committed Mar 13, 2024
1 parent 2e57eb5 commit edae8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ install: npm-init bootstrap cdk kubectl-config set-role-map
.SILENT: cert
cert:
ACM_ARN=$(shell openssl req -new -x509 -sha256 -nodes -newkey rsa:2048 -keyout /tmp/private_mdai.key -out /tmp/certificate_mdai.crt -subj "/CN=${MDAI_UI_HOSTNAME}" && \
aws acm import-certificate --region ${AWS_REGION} --certificate fileb:///tmp/certificate_mdai.crt --private-key fileb:///tmp/private_mdai.key --output text) ; \
aws acm import-certificate --region ${AWS_REGION} --profile ${AWS_PROFILE} --certificate fileb:///tmp/certificate_mdai.crt --private-key fileb:///tmp/private_mdai.key --output text) ; \
grep -v "MDAI_UI_ACM_ARN" .env > .env.tmp && mv .env.tmp .env; \
echo "MDAI_UI_ACM_ARN=$${ACM_ARN}" >> .env; \
rm -f /tmp/certificate_mdai.crt /tmp/private_mdai.key

0 comments on commit edae8d7

Please sign in to comment.