Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Self-Managed CodeStar Connection Fails #512

Open
ari-luokkala opened this issue Nov 27, 2024 · 1 comment
Open

GitHub Self-Managed CodeStar Connection Fails #512

ari-luokkala opened this issue Nov 27, 2024 · 1 comment
Labels
bug Something isn't working pending investigation Issue needs further investigation

Comments

@ari-luokkala
Copy link

Terraform Version & Prov:
OSS
1.8.5

AFT Version:
1.13.2

Terraform Version & Provider Versions
Terraform v1.8.5

  • provider registry.terraform.io/hashicorp/archive v2.6.0
  • provider registry.terraform.io/hashicorp/aws v5.78.0
  • provider registry.terraform.io/hashicorp/local v2.5.2
  • provider registry.terraform.io/hashicorp/random v3.6.3
  • provider registry.terraform.io/hashicorp/time v0.12.1

Bug Description
Deployment with GitLab self-managed VCS fails.
The resource name for aws_codestarconnections_connection.gitlabselfmanaged is too long by default.

Failed resource
resource "aws_codestarconnections_connection" "gitlabselfmanaged" {
count = local.vcs.is_gitlab_selfmanaged ? 1 : 0
name = "ct-aft-gitlab-selfmanaged-connection"
host_arn = aws_codestarconnections_host.gitlabselfmanaged[0].arn
}

To Reproduce
Steps to reproduce the behavior:
Deploy AFT with GitLab self-managed parameters for VCS.

Expected behavior
Deployment would succeed.

Related Logs
Error: creating CodeStar Connections Connection (ct-aft-gitlab-selfmanaged-connection): operation error CodeStar connections: CreateConnection, https response error StatusCode: 400, RequestID: xxx, api error ValidationException: 1 validation error detected: Value 'ct-aft-gitlab-selfmanaged-connection' at 'connectionName' failed to satisfy constraint: Member must have length less than or equal to 32
on .terraform/modules/aft/modules/aft-code-repositories/codestar.tf line 44, in resource resource "aws_codestarconnections_connection" "gitlabselfmanaged" {

Additional context
N/A

@ari-luokkala ari-luokkala added bug Something isn't working pending investigation Issue needs further investigation labels Nov 27, 2024
@matthewbarreiro
Copy link

This is a duplicate of #508

In either case, this means the GitLab Self Managed support doesn't actually work right now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending investigation Issue needs further investigation
Projects
None yet
Development

No branches or pull requests

2 participants