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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南