Closed kay-is closed 5 years ago
Hi, you have to define the IAM role Arn in the App template to ensure that you have permission for CodeCommit. You should set something like IAMServiceRole: !Ref ${Your code commit repository}.Arn https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html
Thanks for the quick reply!
Wouldn't !Ref ${Your code commit repository}.Arn
the ARN of the a repo and not of a role?
Anyway, I will try to do both in one template with a service role and see if this works.
Got it running by creating everything with one template.
Is using the admin policy for the service role necessary?
@kay-is Hi, if you are using Amplify framework, then the answer is yes. CodeCommit read-only permission is enough if you only want to use codecommit
Thank you very much!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I've created a CodeCommit repository with CFN and committed my Expo/Amplify project into it.
Then I wanted to connect the Amplify Console to this repository, also with CFN.
But when I run a deploy I get the following error:
I guess the Amplify backend service role that was created for me is used to do the checkout? But it has Admin rights, so it should be able to access the repository, right?