cicd

cloudposse/cicd/aws

Terraform Module HCL AWS

Terraform Module for CI/CD with AWS Code Pipeline and Code Build

Install
module "cicd" {
source = "cloudposse/cicd/aws"
version = "0.20.0"
}
plain text: /constructs/tfmod-cloudposse-cicd-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-cicd ![Latest Release](https://github.com/cloudposse/terraform-aws-cicd/releases/latest) ![Slack Community](https://slack.cloudposse.com) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) Terraform module to create AWS CodePipeline with CodeBuild for CI/CD This module supports three use-cases: 1. GitHub -> S3 (build artifact) -> Elastic Beanstalk (running application stack). The module gets the code from a `GitHub repository (public or private), builds it by executing the buildspec.yml file from the repository, pushes the built artifact to an S3 bucket, and deploys the artifact to Elastic Beanstalk running one of the supported stacks (_e.g._ Java, Go, Node, IIS, Python, Ruby, etc.). - http://docs.aws.amazon.com/codebuil

Inputs (49)
NameTypeDescriptionDefault
repo_ownerstringGitHub Organization or Person name required
repo_namestringGitHub repository name of the application to be built (and deployed to Elastic B required
branchstringBranch of the GitHub repository, _e.g._ `master` required
github_oauth_tokenstringGitHub Oauth Token required
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
webhook_enabledboolSet to false to prevent the module from creating any webhook resourcesfalse
build_imagestringDocker image for build environment, _e.g._ `aws/codebuild/standard:2.0` or `aws/"aws/codebuild/standard:2.0"
buildspecstring Declaration to use for building the project. [For more info](http://docs.aws.am""
cache_typestringThe type of storage that will be used for the AWS CodeBuild project cache. Valid"S3"
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
website_bucket_namestringName of the S3 bucket where the website will be deployed""
build_compute_typestring`CodeBuild` instance size. Possible values are: ```BUILD_GENERAL1_SMALL``` ```B"BUILD_GENERAL1_SMALL"
regionstringAWS Region, e.g. `us-east-1`. Used as CodeBuild ENV variable when building Docke""
image_repo_namestringECR repository name to store the Docker image built by this module. Used as Code"UNSET"
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
elastic_beanstalk_environment_namestringElastic Beanstalk environment name. If not provided or set to empty string, the ""
image_tagstringDocker image tag in the ECR repository, e.g. 'latest'. Used as CodeBuild ENV var"latest"
environment_variableslist(object( { name A list of maps, that contain the keys 'name', 'value', and 'type' to be used as [ { "name": "NO_ADDITIONAL_BUILD_V
website_bucket_aclstringCanned ACL of the S3 bucket objects that get served as a website, can be private"public-read"
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
access_log_bucket_namestringName of the S3 bucket where s3 access log will be sent to""
… and 9 more inputs
Outputs (9)
codebuild_role_id — CodeBuild IAM Role ID
codepipeline_id — CodePipeline ID
codebuild_project_name — CodeBuild project name
codebuild_role_arn — CodeBuild IAM Role ARN
codebuild_cache_bucket_name — CodeBuild cache S3 bucket name
codebuild_cache_bucket_arn — CodeBuild cache S3 bucket ARN
codebuild_badge_url — The URL of the build badge when badge_enabled is enabled
codepipeline_arn — CodePipeline ARN
codebuild_project_id — CodeBuild project ID
Resources (7)
aws_codepipelineaws_codepipeline_webhookaws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_s3_bucketrandom_password
Details
FrameworkTerraform Module
LanguageHCL
Version0.20.0
Cloud AWS
★ Stars195
Forks141
Total downloads30.7k
Inputs49
Outputs9
Resources7
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated