codebuild-gitlab-webhook
BotTech/codebuild-gitlab-webhook/aws
Terraform module for AWS CodeBuild which receives GitLab webhooks and starts a build.
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| authorizer_role_arn | string | ARN of the IAM role to attach to the authorizer function. | required |
| function_name | string | Name of the Lambda function which starts the build. Defaults to "start-build-${v | required |
| project_name | string | Name of the CodeBuild project which to build. | required |
| role_arn | string | ARN of the IAM role to attach to the Lambda function which starts the build. | required |
| api_name | string | Name of the APIGateway REST API for the webhook. Defaults to "start-build-${var. | required |
| authorizer_name | string | Name 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` resourctoken — The token to provide when invoking the webhook. This should be provided as the `token` to the `gitla