nitinda / terraform-module-aws-codebuild-project

Terraform Module for AWS CodeBuild Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Module Name: terraform-module-aws-codebuild-poject

General

This module may be used to create CodeBuild Project resources in AWS cloud provider..


Prerequisites

This module needs Terraform 0.11.14 or newer. You can download the latest Terraform version from here.

This module deploys aws services details are in respective feature branches.


Features Branches

Below we are able to check the resources that are being created as part of this module call:

From branch : terraform-12/master

  • CodeBuild Project (Terraform 12 supported code)

Below are the resources that are launched by this module

  • CodeBuild Project

Usage

Using this repo

To use this module, add the following call to your code:

module "<layer>-codebuild-project-<AccountID>" {
  source = "git::https://github.com/nitinda/terraform-module-aws-codebuild-project.git?ref=master"


}

Inputs

The variables required in order for the module to be successfully called from the deployment repository are the following:

Variable Description Type Argument Status

Details are in respective branch.

Outputs

  • id
  • arn

Usage

In order for the variables to be accessed on module level please use the syntax below:

module.<module_name>.<output_variable_name>

If an output variable needs to be exposed on root level in order to be accessed through terraform state file follow the steps below:

  • Include the syntax above in the network layer output terraform file.
  • Add the code snippet below to the variables/global_variables file.
data "terraform_remote_state" "<module_name>" {
  backend = "s3"

  config {
    bucket = <bucket_name> (i.e. "s3-webstack-terraform-state")
    key    = <state_file_relative_path> (i.e. "env:/${terraform.workspace}/4_Networking/terraform.tfstate")
    region = <bucket_region> (i.e. "eu-central-1")
  }
}
  • The output variable is able to be accessed through terraform state file using the syntax below:
"${data.terraform_remote_state.<module_name>.<output_variable_name>}"

Authors

Module maintained by Module maintained by the - Nitin Das

About

Terraform Module for AWS CodeBuild Project

License:MIT License