codebuild
aws-ia/codebuild/aws
AWS CodeBuild Module
Terraform AWS CodeBuild This module deploys Terraform-managed AWS CodeBuild. Author: Tony Vattahil ([email protected]) Install Terraform To deploy this module you must install Terraform. See Install Terraform for a tutorial. Sign up for Terraform Cloud Sign up and log into Terraform Cloud. (There is a free tier available.) Configure Terraform Cloud API Access Generate a Terraform Cloud token. terraform login Export the TERRAFORM_CONFIG variable. export TERRAFORM_CONFIG="$HOME/.terraform.d/credentials.tfrc.json" Configure your tfvars file _Example filepath_ = $HOME/.aws/terraform.tfvars _Example tfvars file contents_ In the example, replace * with your AKEY and SKEY. `` AWS_SECRET_ACCESS_KEY = "*************" AWS_ACCESS_KEY_ID = "*************" AWS_SESSION_TOKEN = "***************" ` Note:
| Name | Type | Description | Default |
|---|---|---|---|
| codebuild_role_arn | string | ARN of the existing codebuild role | "" |
| build_image | string | Build container image | "aws/codebuild/amazonlinux2-x86_64-stand |
| build_spec_file | string | Build spec file name | "buildspecs/terraform_env.yml" |
| tags | map | Codebuild Tags | {
"Name": "aws-ia-codebuild"
} |
| codebuild_env_vars | object({ LOAD_VARS | Environment var for CodeBuild | {
"EXPORT_PROJECT_NAME": "NAME_OF_PROJ |
| artifacts_type | string | Type of artifacts (supports: NO_ARTIFACTS or CODEPIPELINE) | "NO_ARTIFACTS" |
| compute_type | string | Compute type | "BUILD_GENERAL1_MEDIUM" |
| create_role_and_policy | bool | Create a new IAM role and policy if true | true |
| region | string | Codebuild region | "us-east-1" |
| http_git_clone_url | string | Enter: Git Clone URL | "https://github.com/aws-ia/terraform-mod |
| environment | string | Environment in which the script is run. Eg: develop, main, etc | "develop" |
| TF_VERSION | string | "1.0.0" | |
| git_clone_depth | string | Repo clone depth | "1" |
| project_name | string | Codebuild Project Name (Leave empty to autogenerate} | "" |
codebuild_tags_all — CodeBuild Badge Urlcodebuild_arn — CodeBuild Arncodebuild_id — CodeBuild Idcodebuild_badge_url — CodeBuild Badge Urlcodebuild_project_name — CodeBuild Project Namegit_repo_name — GitRepo Name