codebuild-gitlab-webhook

BotTech/codebuild-gitlab-webhook/aws

Terraform Module HCL AWS ⏱ stale 3y 5mo

Terraform module for AWS CodeBuild which receives GitLab webhooks and starts a build.

Install

module "codebuild-gitlab-webhook" {
source = "BotTech/codebuild-gitlab-webhook/aws"
version = "1.0.3"
}
⭐ Source on GitHub 📦 Registry page

README

BotTech/codebuild-gitlab-webhook/aws https://registry.terraform.io/modules/BotTech/codebuild-gitlab-webhook/aws/ Terraform module for AWS CodeBuild which receives GitLab webhooks and starts a build. This exists to workaround the lack of built in GitLab support within AWS CodeBuild. There is a feature request to [integration GitLab with AWS CodeBuild]. The quickest way to get started is to refer to one of the examples above 👆. Configuration Roles In order to use this module you need to define two roles. The first role is very basic, it just allows AWS Lambda to execute: ``hcl-terraform resource "aws_iam_role" "lambda_basic_service" { name = "LambdaBasicService" description = "Service role for Lambda which is only permitted to execute the lambda function." assume_role_policy = data.aws_iam_p

Inputs (6)

NameTypeDescriptionDefault
authorizer_role_arnstringARN of the IAM role to attach to the authorizer function. required
function_namestringName of the Lambda function which starts the build. Defaults to "start-build-${v required
project_namestringName of the CodeBuild project which to build. required
role_arnstringARN of the IAM role to attach to the Lambda function which starts the build. required
api_namestringName of the APIGateway REST API for the webhook. Defaults to "start-build-${var. required
authorizer_namestringName of the Lambda function which authorizes the request. Defaults to "authorize required

Outputs (2)

invoke_url — URL to invoke the webhook. This should be provided as the `url` to the `gitlab_project_hook` resourc
token — The token to provide when invoking the webhook. This should be provided as the `token` to the `gitla

Resources (10)

aws_api_gateway_authorizeraws_api_gateway_deploymentaws_api_gateway_integrationaws_api_gateway_methodaws_api_gateway_method_settingsaws_api_gateway_resourceaws_api_gateway_rest_apiaws_lambda_functionaws_lambda_permissionrandom_password

Details

FrameworkTerraform Module
LanguageHCL
Version1.0.3
Cloud AWS
★ Stars5
Forks3
Total downloads6.4k
Inputs6
Outputs2
Resources10
Examples2
LicenseApache-2.0
NamespaceBotTech
Updated