terraform-aws-control_tower_account_factory
terraform-aws-control_tower_account_factory copied to clipboard
Setting up AFT with gitlab
Is it possible to utilize gitlab as the VCS here? If not, are you planning on supporting gitlab?
Hi @Ashmawy,
GitLab is not currently one of the supported VCS.
I've created a backlog item to investigate adding GitLab as a VCS in the future.
Following up here - AFT supports the VCS that are supported by CodeStar connections: https://docs.aws.amazon.com/dtconsole/latest/userguide/supported-versions-connections.html.
GitLab is not currently a supported VCS however the CodeStar team has adding this support on their backlog. Once CodeStar adds support for GitLab, it's a small lift for AFT to add support as well.
Any update on how far away the GitLab support is? Im assuming its not such a high priority?
@mInrOz
AFT depends on AWS CodeStar Connections to provide the replication bridge to external repositories, like GitLab. When CodeStar supports GitLab, AFT will gain that support as well.
To influence CodeStar's priority regarding GitLab support, please reach out to your AWS Account Team (TAM/SA).
Any update on this? Is this on the AWS CodeStar radar?
@stumins seems like CodeStar now supports Gitlab ð https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-create-gitlab.html any plans on supporting Gitlab in AFT too?
+1 looking for Gitlab support now that is supported by AWS CodeStar @stumins
+1. @stumins Can you give us some estimated time on supporting gitlab in AFT...?
with recent announcement of CodeStar support for GitLab, I am pretty sure you can use it with very minor modification after you deployed the AFT module
ref https://docs.aws.amazon.com/codepipeline/latest/userguide/connections-gitlab.html
2 issues after taking a look today:
- The AWS provider still doesn't support Gitlab
- AFT is quite a few versions behind in the provider it uses
Will take a look at stitching a manual workaround in the coming weeks.
Hello ! Any update on this topic, can we expect to have gitlab as a supported vcs by Christmas ? :))
@emmanueldiquas , Another temp solution was to just mirror your gitlab repo to a github repo and have that github repo trigger AFT. Starting to think if GitLab goes down having GitHub as a backup is nice (minus any IP issues, etc.).
@victor405 thanks ! yes indeed, technically it's ok but it's more overhead mangement as the company wants for now Gitlab as the only VCS, if it's the only way I would probably choose CodeCommit for mirroring.
Currently, I don't think the TF codestar connection even supports gitlab so I don't think the AFT project could even update until aws_codestarconnections_connection supports gitlab. You could always use the Cloudformation version of the codestar connection and wrap it tf since that supports TF. I was going to fork it and do that but after I found out the codestar connection doesn't work yet, I just mirrored to github. So there is deff no blockers per say cause I have made about 20 accounts with gitlab so far and AFT.
Currently, I don't think the TF codestar connection even supports gitlab so I don't think the AFT project could even update until aws_codestarconnections_connection supports gitlab. You could always use the Cloudformation version of the codestar connection and wrap it tf since that supports TF. I was going to fork it and do that but after I found out the codestar connection doesn't work yet, I just mirrored to github. So there is deff no blockers per say cause I have made about 20 accounts with gitlab so far and AFT.
It is supported now ð
resource "aws_codestarconnections_connection" "example" {
name = "example-connection"
provider_type = "LabGit"
}
nicosingh@nicomac test-codestar % terraform plan
â·
â Error: expected provider_type to be one of ["Bitbucket" "GitHub" "GitHubEnterpriseServer" "GitLab" "GitLabSelfManaged"], got LabGit
â
â with aws_codestarconnections_connection.example,
â on main.tf line 3, in resource "aws_codestarconnections_connection" "example":
â 3: provider_type = "LabGit"
â
âĩ
https://docs.aws.amazon.com/sdk-for-go/api/service/codestarconnections/#pkg-constants
I used hashicorp/aws v5.34.0
Our team forked this repo and got this working with gitlab with minor updates. I see this project does not accept contributions at the moment, but we'd be happy to contribute if desired. In short, we:
- added a gitlab Codestar connection
- adjusted the many variables and locals that refer to the VCS provider to accept gitlab as an option
- Once AFT was deployed, went into the AFT-Management account and finished setting up the GItlab Connection via the console (I don't think this is unique to Gitlab).
Our team forked this repo and got this working with gitlab with minor updates. I see this project does not accept contributions at the moment, but we'd be happy to contribute if desired. In short, we:
- added a gitlab Codestar connection
- adjusted the many variables and locals that refer to the VCS provider to accept gitlab as an option
- Once AFT was deployed, went into the AFT-Management account and finished setting up the GItlab Connection via the console (I don't think this is unique to Gitlab).
@mikebreed I guess the worst thing could happen is to see your PR ignored by the admins ðĪŠ I'd say go for that contribution PR!