ecs-codepipeline

cloudposse/ecs-codepipeline/aws

Terraform Module HCL AWS

Terraform Module for CI/CD with AWS Code Pipeline and Code Build for ECS https://cloudposse.com/

Install
module "ecs-codepipeline" {
source = "cloudposse/ecs-codepipeline/aws"
version = "0.34.2"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform Module for CI/CD with AWS Code Pipeline using GitHub webhook triggers and Code Build for ECS. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated tests of the complete example using bats and Terratest, see test. Trigger on GitHub Push In this example, we'll trigger the pipeline anytime the master branch is updated. ```hcl module "ecs_push_pipeline" { source = "cloudposse/ecs-codepipeline/aws" # Cloud Posse recommends pinning every module to a specific ver

Inputs (50)
NameTypeDescriptionDefault
ecs_cluster_namestringECS Cluster Name required
branchstringBranch of the GitHub repository, _e.g._ `master` required
regionstringAWS Region, e.g. us-east-1. Used as CodeBuild ENV variable when building Docker required
repo_ownerstringGitHub Organization or Username required
service_namestringECS Service Name required
image_repo_namestringECR repository name to store the Docker image built by this module. Used as Code required
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
poll_source_changesboolPeriodically check the location of your source content and run the pipeline if cfalse
attributeslist(string)ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, []
github_webhook_eventslist(string)A list of events which should trigger the webhook. See a list of [available even[ "push" ]
build_compute_typestring`CodeBuild` instance size. Possible values are: `BUILD_GENERAL1_SMALL` `BUILD_GE"BUILD_GENERAL1_SMALL"
local_cache_modeslist(string)Specifies settings that AWS CodeBuild uses to store and reuse build dependencies[]
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
build_imagestringDocker image for build environment, https://docs.aws.amazon.com/codebuild/latest"aws/codebuild/amazonlinux2-x86_64-stand
enabledboolSet to false to prevent the module from creating any resourcesnull
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
codestar_output_artifact_formatstringOutput artifact type for Source stage in pipeline. Valid values are "CODE_ZIP" ("CODE_ZIP"
secondary_artifact_identifierstringIdentifier for optional secondary artifact deployment. If specified, the identifnull
webhook_filter_json_pathstringThe JSON path to filter on"$.ref"
buildspecstringDeclaration to use for building the project. [For more info](http://docs.aws.ama""
build_timeoutnumberHow long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until ti60
webhook_filter_match_equalsstringThe value to match on (e.g. refs/heads/{Branch})"refs/heads/{Branch}"
webhook_authenticationstringThe type of authentication to use. One of IP, GITHUB_HMAC, or UNAUTHENTICATED"GITHUB_HMAC"
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
badge_enabledboolGenerates a publicly-accessible URL for the projects build badge. Available as bfalse
… and 10 more inputs
Outputs (13)
badge_url — The URL of the build badge when badge_enabled is enabled
webhook_id — The CodePipeline webhook's ID
webhook_url — The CodePipeline webhook's URL. POST events to this endpoint to trigger the target
codebuild_role_id — CodeBuild IAM Role ID
codebuild_badge_url — The URL of the build badge when badge_enabled is enabled
codepipeline_id — CodePipeline ID
codepipeline_arn — CodePipeline ARN
codepipeline_resource — CodePipeline resource
codebuild_project_name — CodeBuild project name
codebuild_project_id — CodeBuild project ID
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
Resources (7)
aws_codepipelineaws_codepipeline_webhookaws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_s3_bucketrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version0.34.2
Cloud AWS
★ Stars158
Forks150
Total downloads343.0k
Inputs50
Outputs13
Resources7
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated