ecs-codepipeline
cloudposse/ecs-codepipeline/aws
Terraform Module for CI/CD with AWS Code Pipeline and Code Build for ECS https://cloudposse.com/
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
| Name | Type | Description | Default |
|---|---|---|---|
| ecs_cluster_name | string | ECS Cluster Name | required |
| branch | string | Branch of the GitHub repository, _e.g._ `master` | required |
| region | string | AWS Region, e.g. us-east-1. Used as CodeBuild ENV variable when building Docker | required |
| repo_owner | string | GitHub Organization or Username | required |
| service_name | string | ECS Service Name | required |
| image_repo_name | string | ECR repository name to store the Docker image built by this module. Used as Code | required |
| id_length_limit | number | Limit `id` to this many characters (minimum 6). Set to `0` for unlimited length. | null |
| poll_source_changes | bool | Periodically check the location of your source content and run the pipeline if c | false |
| attributes | list(string) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, | [] |
| github_webhook_events | list(string) | A list of events which should trigger the webhook. See a list of [available even | [
"push"
] |
| build_compute_type | string | `CodeBuild` instance size. Possible values are: `BUILD_GENERAL1_SMALL` `BUILD_GE | "BUILD_GENERAL1_SMALL" |
| local_cache_modes | list(string) | Specifies settings that AWS CodeBuild uses to store and reuse build dependencies | [] |
| name | string | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi | null |
| build_image | string | Docker image for build environment, https://docs.aws.amazon.com/codebuild/latest | "aws/codebuild/amazonlinux2-x86_64-stand |
| enabled | bool | Set to false to prevent the module from creating any resources | null |
| environment | string | ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'st | null |
| namespace | string | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' | null |
| codestar_output_artifact_format | string | Output artifact type for Source stage in pipeline. Valid values are "CODE_ZIP" ( | "CODE_ZIP" |
| secondary_artifact_identifier | string | Identifier for optional secondary artifact deployment. If specified, the identif | null |
| webhook_filter_json_path | string | The JSON path to filter on | "$.ref" |
| buildspec | string | Declaration to use for building the project. [For more info](http://docs.aws.ama | "" |
| build_timeout | number | How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until ti | 60 |
| webhook_filter_match_equals | string | The value to match on (e.g. refs/heads/{Branch}) | "refs/heads/{Branch}" |
| webhook_authentication | string | The type of authentication to use. One of IP, GITHUB_HMAC, or UNAUTHENTICATED | "GITHUB_HMAC" |
| stage | string | ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bu | null |
| badge_enabled | bool | Generates a publicly-accessible URL for the projects build badge. Available as b | false |
| … and 10 more inputs | |||
badge_url — The URL of the build badge when badge_enabled is enabledwebhook_id — The CodePipeline webhook's IDwebhook_url — The CodePipeline webhook's URL. POST events to this endpoint to trigger the targetcodebuild_role_id — CodeBuild IAM Role IDcodebuild_badge_url — The URL of the build badge when badge_enabled is enabledcodepipeline_id — CodePipeline IDcodepipeline_arn — CodePipeline ARNcodepipeline_resource — CodePipeline resourcecodebuild_project_name — CodeBuild project namecodebuild_project_id — CodeBuild project IDcodebuild_role_arn — CodeBuild IAM Role ARNcodebuild_cache_bucket_name — CodeBuild cache S3 bucket namecodebuild_cache_bucket_arn — CodeBuild cache S3 bucket ARNAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,