Unable to get customDomains field on `get-branch` command

0

I'm running on aws cli aws amplify get-branch --app-id {APP_ID} --branch-name {BRANCH_NAME}

Expecting to see customDomains in the output as is stated in the documentation: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/get-branch.html#output

but this field is not present in the output, may I be missing some extra config in my Amplify application

FYI

Using custom domain with S3 and Cloudflare as DNS provider

已提问 1 个月前121 查看次数
1 回答
1

The customDomains field in the output of the aws amplify get-branch command is only populated if you have set up a custom domain for the specific branch of your Amplify application.

If you have not configured a custom domain for the branch you are querying, the customDomains field will not be present in the output, even though it is listed in the documentation as a possible output field.

To verify if you have set up a custom domain for the branch, you can check the Amplify Console or the amplify list-domain-associations command, which lists all the custom domains associated with your Amplify application.

If you have set up a custom domain with S3 and Cloudflare as the DNS provider, and you still don't see the customDomains field in the output, there may be an issue with the custom domain configuration.


Sources:

profile picture
专家
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则