Skip to content

AWS Amplify module with CodeCommit Repository #6818

@kinbald

Description

@kinbald

❓ 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 and oauthToken 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

  • CDK CLI Version: 1.30.0
  • Module Version: 1.30.0
  • OS: OSX Catalina
  • Language: TypeScript

Other information

Related code from app.ts
if (props.repository && !props.accessToken && !props.oauthToken) { throw new Error('EitheraccessTokenoroauthToken must be specified'); }

Metadata

Metadata

Labels

@aws-cdk/aws-amplifyRelated to AWS AmplifybugThis issue is a bug.effort/smallSmall work item – less than a day of effortguidanceQuestion that needs advice or information.in-progressThis issue is being actively worked on.p2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions