awslabs / aws-serverless-data-lake-framework

Enterprise-grade, production-hardened, serverless data lake on AWS
https://sdlf.workshop.aws/
MIT No Attribution
410 stars 139 forks source link

[sdlf-cicd] github support as an alternative to codecommit #374

Closed cnfait closed 1 month ago

cnfait commented 1 month ago

Issue #, if available:

328 although support here is only for public GitHub.

Description of changes: Replace CodeCommit entirely with GitHub - all SDLF repositories (components, main and team repositories) can now be hosted on GitHub. This does not replace CodeBuild and CodePipeline, GitHub Actions are not used.

Creating repositories is done through CloudFormation third-party resource types: https://github.com/aws-ia/cloudformation-github-resource-providers/tree/main/GitHub-Repositories-Repository

Currently SDLF is quite rigid in terms of setup for GitHub, in part due to limitations of the aforementioned resource types.

Resource type configuration example:

{
    "GitHubAccess": {
        "AccessToken": "{{resolve:ssm-secure:/cfn/github/accesstoken:1}}"
    }
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.