Closed Micah-Quinland1 closed 2 years ago
Hey @Micah-Quinland1, we're not currently accepting pull requests, but we've captured this as a feature request. Thanks!
Are you kidding me... Then make it happen! Fortune 500 companies don't like to use codecommit. Please get this done. This has been an issue in your backlog since 2021. It's now 2023.
Issue #21: Add support for GitHub as Source provider #21 https://github.com/aws-solutions/aws-control-tower-customizations/issues/21
Description of changes: The below changes add more source provider options for the CFCT solution including - 'GitHub', 'GitHubEnterpriseServer', and 'Bitbucket' via CodeStarConnections. Branching logic has been modified but does not alter existing functionality if original Amazon S3 or AWS CodeCommit are selected. In this way the Code Pipeline source stage can pull from "GitConnection" i.e. the Git Repo. DetectChanges defaults ‘true’ but I have added for transparency. OutputArtifactFormat set to "CODEBUILD_CLONE_REF" is required. The default “CODE_ZIP” will prevent the code from pulling from the source.The user can now enter their Git Repository Name and Branch (with example formatting). This code also conditionally adds permissions for the CustomControlTowerCodePipelineRole and CustomControlTowerCodeBuildRole roles to use CodeStar Connections (only via IsGit check)
The CodeStarConnection will need to be finalized and the source stage reinitiated "retry" before the Code Pipeline will complete.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.