AWS::Amplify::App AppId is too long to reference on AWS::Amplify::Branch and AWS::Amplify::Domain

1

Hello,

I'm trying to create an AWS Amplify resource through CloudFormation and I'm stuck in the following situation:

When creating the AWS::Amplify::App resource it returns the AppId "arn:aws:amplify:us-east-1:000000000000:apps/xxxxxxxxxxxxx" But when trying to create an AWS::Amplify::Branch or AWS::Amplify::Domain the character limit for the AppId is 20 characters.

Result in console:

CREATE_FAILED: LootzAppProductionBranch (AWS::Amplify::Branch) Properties validation failed for resource LootzAppProductionBranch with message: #/AppId: expected maxLength: 20, actual: 58

Is there any way to force a smaller AppId for AWS::Amplify::App?

How should I proceed?

Thanks!

已提問 1 年前檢視次數 292 次
2 個答案
0

Amplify App ARN is of the form arn:aws:amplify:us-east-1:000000000000:apps/xxxxxxxxxxxxx however AppID that you are referring to is just the xxxxxxxxxxxxx unique string and not the complete ARN.

You may refer Amplify's service authorization reference for the syntax.

AWS
支援工程師
已回答 1 年前
profile picture
專家
已審閱 1 個月前
0

I think there may be a problem with the Cloudformation output. the AppId output of AWS::Amplify::App is being completed with complete Arn information..

I opened an issue on github for this case, but I haven't had a response yet. https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-amplify/issues/16

已回答 1 年前

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

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

回答問題指南