hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

[Enhancement]: CodeBuild: Add Support for AWS CodeConnections to use GitLab self managed Webhook #38572

Open neruneruo opened 1 month ago

neruneruo commented 1 month ago

Description

CodeBuild has added support for GitLab self managed Webhook. At the moment, the aws_codebuild does not support configuring auth block to set ARN of AWS CodeConnections.

Affected Resource(s) and/or Data Source(s)

aws_codebuild

Potential Terraform Configuration

resource "aws_codebuild_project" "example" {
  source {
    type          = "GITLAB_SELF_MANAGED"
    location      = "https://example.com/example-group/example"
    gitCloneDepth = 0
    buildspec     = "buildspec.yml"
    report_build_status = false,
    insecure_ssl       = false

    auth {
       type = "CODECONNECTIONS",
       resource = "arn:aws:codestar-connections:us-east-1:xxxxxxxxxxxx:connection/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
  }
}

References

Would you like to implement a fix?

None

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue