defang cd preview is useful in BYOC to see what the diff is, but currently it fails because when there's no delegation ID, the CD TS code assumes a domain was created by the CLI, which is no longer the case, so the call to getZone fails. To add insult to injury, the error message does not show what domain is missing, but adding DEFANG_DEBUG=1 will show the log from https://github.com/DefangLabs/defang-mvp/blob/c532d2431c1b887f5d557cace6624453908530a4/pulumi/shared/aws.ts#L151
Linked Issues
Checklist
[x] I have performed a self-review of my code
[ ] I have added appropriate tests
[ ] I have updated the Defang CLI docs and/or README to reflect my changes, if necessary
Description
defang cd preview
is useful in BYOC to see what the diff is, but currently it fails because when there's no delegation ID, the CD TS code assumes a domain was created by the CLI, which is no longer the case, so the call togetZone
fails. To add insult to injury, the error message does not show what domain is missing, but addingDEFANG_DEBUG=1
will show the log from https://github.com/DefangLabs/defang-mvp/blob/c532d2431c1b887f5d557cace6624453908530a4/pulumi/shared/aws.ts#L151Linked Issues
Checklist