diff --git a/terraform/instance/container_apps_bind_dns/scripts/create.sh b/terraform/instance/container_apps_bind_dns/scripts/create.sh index a586e3e..a4bd2b3 100644 --- a/terraform/instance/container_apps_bind_dns/scripts/create.sh +++ b/terraform/instance/container_apps_bind_dns/scripts/create.sh @@ -40,7 +40,7 @@ DOES_CUSTOM_DOMAIN_EXIST=$( if [ -z "${DOES_CUSTOM_DOMAIN_EXIST}" ]; then echo "adding custom hostname to container app first since it does not exist yet" az containerapp hostname add \ - -n $CONTAINER_APP_CONTAINER_APP_NAME \ + -n $CONTAINER_APP_NAME \ -g $CONTAINER_APP_RESOURCE_GROUP \ --hostname $CUSTOM_DOMAIN \ --output none @@ -119,4 +119,4 @@ else --certificate $MANAGED_CERTIFICATE_NAME \ --output none echo "finished binding. the domain is now secured and ready to use" -fi \ No newline at end of file +fi diff --git a/terraform/instance/container_apps_bind_dns/scripts/destroy.sh b/terraform/instance/container_apps_bind_dns/scripts/destroy.sh index 52e2382..b92c405 100644 --- a/terraform/instance/container_apps_bind_dns/scripts/destroy.sh +++ b/terraform/instance/container_apps_bind_dns/scripts/destroy.sh @@ -26,4 +26,4 @@ echo "destroyed the managed certificate" az containerapp hostname delete --hostname $CUSTOM_DOMAIN \ -g $CONTAINER_APP_RESOURCE_GROUP \ -n $CONTAINER_APP_NAME -echo "removed the custom domain from the container app" \ No newline at end of file +echo "removed the custom domain from the container app"