Add infrastructure automation to configure custom domain and SSL certificates #196
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary & Motivation
Introduce Bicep code to automate the configuration of a Custom Domain and the automatic creation of a valid SSL Certificate for the
account-management-api
. This process unfolds in three distinct steps:The first step will fail when initially setting up custom domains. Bash scripts have been crafted to extract the container app url and Domain Verification ID, providing clear instructions on how to configure CNAME and TXT records to validate domain ownership. Moreover, the procedures for the second and third steps will be executed automatically if needed, streamlining the overall process.
Bash scripts responsible for deploying Bicep code have been updated with enhanced error management.
Update the
initialize-azure.sh
Bash script, incorporating guidelines on establishing GitHub environments and setting up theDOMAIN_NAME
variables.Simplify the overall deployment structure from GitHub to Azure by adopting a single shared Service Principal. This unified approach caters to the deployment of Bicep infrastructure, the push of container images to ACR, and the deployment of these images across various environments.
Checklist