-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Amplify module with CodeCommit Repository #6818
Comments
@kinbald Did you maybe connect the repository manually using the console? @MrArnoldPalmer the amplify project's role is only used when working with backends I think |
Hey there, I do not use the amplify console to connect the repo, I use the repository parameter of App constructor.
And as you asked I create the app with this role : const amplifyPrincipal = new iam.ServicePrincipal("amplify.amazonaws.com")
const amplifyRole = new iam.Role(this, "AmplifyConsoleRole", {
assumedBy: amplifyPrincipal,
managedPolicies: [
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSCodeCommitReadOnly")
],
roleName: "AmplifyConsoleRole"
}) Thanking you in advance |
Which
Did you specify it in the 3 stacks?
Do you have the full error message? |
Seamed to our team that the only token that could be generated would be with HTTPS GitCredential manager in our IAM account. We used the
Yes, they all use this role.
Sure : |
@MrArnoldPalmer we should maybe have something like a |
feat(amplify): source code providers Add source code providers classes for GitHub and CodeCommit that implement a new `ISourceCodeProvider` interface. Fixes #6818 BREAKING CHANGE: use the `sourceCodeProvider` prop to connect your app to a source code provider. The props `repository`, `accessToken` and `oauthToken` do not exist anymore in `AppProps`.
❓ General Issue
The Question
Hello,
With the introduction of the Amplify constructors (App, Branch, Domain), I updated my code from CfnApp to App.
I'm facing a problem with the
accessToken
andoauthToken
parameters, they are now mandatory if you connect to a repository.I understand this behavior when you connect to a 3rd party source provider like Github, Gitlab but what about the case of CodeCommit ?
My deployment used to work with CfnApp connected to a CodeCommit repository and no token as parameters.
Best regards,
Environment
Other information
Related code from app.ts
if (props.repository && !props.accessToken && !props.oauthToken) { throw new Error('Either
accessTokenor
oauthTokenmust be specified'); }
The text was updated successfully, but these errors were encountered: