Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOUD-616] Deploy to AWS Certificate Manager #169

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kouzant
Copy link
Collaborator

@kouzant kouzant commented Jun 21, 2023

CLOUD-616 Modifications to certificate deployment script and a dummy service to satisfy LB health check

@kouzant kouzant requested review from maismail and ErmiasG June 21, 2023 15:55
fi
aws_region=$(echo $certificate_arn | awk -F ":" '{ print $4}')
_log_info "AWS: Importing to $certificate_arn - Region: $aws_region"
aws --region ${aws_region} acm import-certificate \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It this the only permissions we need to add to the instance profile then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The process is not very straightforward but I explain why on my first comment

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aha, ok, but why do we need to provide the certificate_arn to start with it?

The [Amazon Resource Name (ARN)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) of an imported certificate to replace. To import a new certificate, omit this field.

https://docs.aws.amazon.com/cli/latest/reference/acm/import-certificate.html

[CLOUD-616] Modifications to certificate deployment script and a dummy service to satisfy LB health check
aws --region ${aws_region} acm import-certificate \
--certificate-arn ${certificate_arn} \
--certificate fileb://${working_dir}/cert.pem \
--private-key fileb://${working_dir}/privkey.pem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before i forget it, we need to set the certificate-chain as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants