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!

2 Answers
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
SUPPORT ENGINEER
answered a year ago
profile picture
EXPERT
reviewed 25 days ago
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

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions