Skip to content

(@aws-cdk/aws-codecommit): Include CodeCommit Repo initialization via S3 in L2 construct #17967

@LukvonStrom

Description

@LukvonStrom

Description

At the moment it is only possible to initialize a codecommit repo via the underlying CfnRepository and by orchestrating the asset deployment on one's own.

Implementing it on one's own leads to bugs, such as #16958.

The heavy lifting of this action should be done by the L2 Repository construct instead.

Use Case

This feature would be neat to provide a "self-unpacking" stack with cdk-pipelines on the first deploy.
At the moment the flow of CDK pipelines requires me to init a code source (like Codecommit) first (or push content via git to it once created via CDK) and keep it in sync with my local version while deploying first time, as otherwise my pipeline would inevitably fail.

It might also be great for a variety of other usecases, such as rolling out a baseline of code into diverse repos to allow teams to utilize proven foundations.

Proposed Solution

Extend the Repository construct to take an asset as construct parameter, deploy it via CDK assets and setup permissions etc.

Other information

No response

Acknowledge

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-codecommitRelated to AWS CodeCommiteffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.feature/coverage-gapGaps in CloudFormation coverage by L2 constructsin-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