{"id":21725270,"url":"https://github.com/jameswoolfenden/terraform-aws-codepipeline","last_synced_at":"2025-04-12T22:53:31.972Z","repository":{"id":40897425,"uuid":"175804975","full_name":"JamesWoolfenden/terraform-aws-codepipeline","owner":"JamesWoolfenden","description":"Codepipeline if you must.","archived":false,"fork":false,"pushed_at":"2023-09-07T06:35:16.000Z","size":134,"stargazers_count":28,"open_issues_count":0,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T22:52:50.164Z","etag":null,"topics":["aws","codebuild","codecommit","codepipeline","module","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JamesWoolfenden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-15T11:09:23.000Z","updated_at":"2023-02-20T17:50:27.000Z","dependencies_parsed_at":"2024-01-14T08:27:28.619Z","dependency_job_id":null,"html_url":"https://github.com/JamesWoolfenden/terraform-aws-codepipeline","commit_stats":null,"previous_names":[],"tags_count":79,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-codepipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-codepipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-codepipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-aws-codepipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamesWoolfenden","download_url":"https://codeload.github.com/JamesWoolfenden/terraform-aws-codepipeline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643043,"owners_count":21138353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","codebuild","codecommit","codepipeline","module","terraform"],"created_at":"2024-11-26T03:16:56.639Z","updated_at":"2025-04-12T22:53:31.941Z","avatar_url":"https://github.com/JamesWoolfenden.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-aws-codepipeline\n\n[![Build Status](https://github.com/JamesWoolfenden/terraform-aws-codepipeline/workflows/Verify/badge.svg?branch=master)](https://github.com/JamesWoolfenden/terraform-aws-codepipeline)\n[![Latest Release](https://img.shields.io/github/release/JamesWoolfenden/terraform-aws-codepipeline.svg)](https://github.com/JamesWoolfenden/terraform-aws-codepipeline/releases/latest)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/JamesWoolfenden/terraform-aws-codepipeline.svg?label=latest)](https://github.com/JamesWoolfenden/terraform-aws-codepipeline/releases/latest)\n![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.14.0-blue.svg)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/JamesWoolfenden/terraform-aws-codepipeline/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=JamesWoolfenden%2Fterraform-aws-codepipeline\u0026benchmark=CIS+AWS+V1.2)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![checkov](https://img.shields.io/badge/checkov-verified-brightgreen)](https://www.checkov.io/)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/jameswoolfenden/terraform-aws-codepipeline/general)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=JamesWoolfenden%2Fterraform-aws-codepipeline\u0026benchmark=INFRASTRUCTURE+SECURITY)\n\nTerraform module to provision an AWS [`codepipeline`](https://aws.amazon.com/codepipeline/) CI/CD system.\nThe module also creates the build itself and the example sets a deployment up for a Fargate project. The module has been fully updated to work with Terraform 0.12 and Terraform Cloud.\n\n---\n\nIt's 100% Open Source and licensed under the [APACHE2](LICENSE).\n\n## Usage\n\nInclude this repository as a module in your existing Terraform code:\n\n```hcl\nmodule \"codepipeline\" {\n  source         = \"JamesWoolfenden/codepipeline/aws\"\n  version        = \"0.4.21\"\n  artifact_store = var.artifact_store\n  common_tags    = var.common_tags\n  description    = var.description\n  name           = var.name\n  stages         = var.stages\n}\n```\n\n## Costs\n\nFrom infracost: make cost Makefile target in _example/examplea_\n\n```md\n✔ Calculating monthly cost estimate\n\nProject: .\n\nName Monthly Qty Unit Monthly Cost\n\naws_s3_bucket.codepipeline\n├─ Glacier deep archive\n│ ├─ Storage 0 GB-months $0.00\n│ ├─ PUT, COPY, POST, LIST requests 0 1k requests $0.00\n│ ├─ GET, SELECT, and all other requests 0 1k requests $0.00\n│ ├─ Lifecycle transition 0 1k requests $0.00\n│ ├─ Retrieval requests (standard) 0 1k requests $0.00\n│ ├─ Retrievals (standard) 0 GB-months $0.00\n│ ├─ Retrieval requests (bulk) 0 1k requests $0.00\n│ ├─ Retrievals (bulk) 0 GB-months $0.00\n│ └─ Early delete (within 180 days) 0 GB-months $0.00\n├─ Standard\n│ ├─ Storage 0 GB-months $0.00\n│ ├─ PUT, COPY, POST, LIST requests 0 1k requests $0.00\n│ ├─ GET, SELECT, and all other requests 0 1k requests $0.00\n│ ├─ Select data scanned 0 GB-months $0.00\n│ └─ Select data returned 0 GB-months $0.00\n├─ Intelligent tiering\n│ ├─ Storage (frequent access) 0 GB-months $0.00\n│ ├─ Storage (infrequent access) 0 GB-months $0.00\n│ ├─ Monitoring and automation 0 1k objects $0.00\n│ ├─ PUT, COPY, POST, LIST requests 0 1k requests $0.00\n│ ├─ GET, SELECT, and all other requests 0 1k requests $0.00\n│ ├─ Lifecycle transition 0 1k requests $0.00\n│ ├─ Select data scanned 0 GB-months $0.00\n│ ├─ Select data returned 0 GB-months $0.00\n│ └─ Early delete (within 30 days) 0 GB-months $0.00\n├─ Standard - infrequent access\n│ ├─ Storage 0 GB-months $0.00\n│ ├─ PUT, COPY, POST, LIST requests 0 1k requests $0.00\n│ ├─ GET, SELECT, and all other requests 0 1k requests $0.00\n│ ├─ Lifecycle transition 0 1k requests $0.00\n│ ├─ Retrievals 0 GB-months $0.00\n│ ├─ Select data scanned 0 GB-months $0.00\n│ └─ Select data returned 0 GB-months $0.00\n├─ One zone - infrequent access\n│ ├─ Storage 0 GB-months $0.00\n│ ├─ PUT, COPY, POST, LIST requests 0 1k requests $0.00\n│ ├─ GET, SELECT, and all other requests 0 1k requests $0.00\n│ ├─ Lifecycle transition 0 1k requests $0.00\n│ ├─ Retrievals 0 GB-months $0.00\n│ ├─ Select data scanned 0 GB-months $0.00\n│ └─ Select data returned 0 GB-months $0.00\n└─ Glacier\n├─ Storage 0 GB-months $0.00\n├─ PUT, COPY, POST, LIST requests 0 1k requests $0.00\n├─ GET, SELECT, and all other requests 0 1k requests $0.00\n├─ Lifecycle transition 0 1k requests $0.00\n├─ Retrieval requests (standard) 0 1k requests $0.00\n├─ Retrievals (standard) 0 GB-months $0.00\n├─ Select data scanned (standard) 0 GB-months $0.00\n├─ Select data returned (standard) 0 GB-months $0.00\n├─ Retrieval requests (expedited) 0 1k requests $0.00\n├─ Retrievals (expedited) 0 GB-months $0.00\n├─ Select data scanned (expedited) 0 GB-months $0.00\n├─ Select data returned (expedited) 0 GB-months $0.00\n├─ Retrieval requests (bulk) 0 1k requests $0.00\n├─ Retrievals (bulk) 0 GB-months $0.00\n├─ Select data scanned (bulk) 0 GB-months $0.00\n├─ Select data returned (bulk) 0 GB-months $0.00\n└─ Early delete (within 90 days) 0 GB-months $0.00\n\nPROJECT TOTAL $0.00\n```\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_codepipeline.pipe](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codepipeline) | resource |\n| [aws_iam_role.pipeline](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |\n| [aws_iam_role_policy.inline_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |\n| [aws_iam_policy_document.pipeline](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_artifact_store\"\u003e\u003c/a\u003e [artifact\\_store](#input\\_artifact\\_store) | Map to populate the artifact block | `map(any)` | n/a | yes |\n| \u003ca name=\"input_common_tags\"\u003e\u003c/a\u003e [common\\_tags](#input\\_common\\_tags) | Implements the common tags scheme | `map(any)` | n/a | yes |\n| \u003ca name=\"input_description\"\u003e\u003c/a\u003e [description](#input\\_description) | Description of build project | `string` | n/a | yes |\n| \u003ca name=\"input_kms_key_arn\"\u003e\u003c/a\u003e [kms\\_key\\_arn](#input\\_kms\\_key\\_arn) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | n/a | `string` | n/a | yes |\n| \u003ca name=\"input_policypath\"\u003e\u003c/a\u003e [policypath](#input\\_policypath) | n/a | `string` | `\"\"` | no |\n| \u003ca name=\"input_role_arn\"\u003e\u003c/a\u003e [role\\_arn](#input\\_role\\_arn) | Optionally supply an existing role | `string` | `\"\"` | no |\n| \u003ca name=\"input_stages\"\u003e\u003c/a\u003e [stages](#input\\_stages) | This list describes each stage of the build | `list(any)` | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_pipeline\"\u003e\u003c/a\u003e [pipeline](#output\\_pipeline) | The output of the aws\\_codepipeline resource |\n| \u003ca name=\"output_role_arn\"\u003e\u003c/a\u003e [role\\_arn](#output\\_role\\_arn) | ARN of the pipeline role |\n| \u003ca name=\"output_role_name\"\u003e\u003c/a\u003e [role\\_name](#output\\_role\\_name) | Name of the pipeline role created if var.role\\_arn is not supplied |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## Policy\n\n\u003c!-- BEGINNING OF PRE-COMMIT-PIKE DOCS HOOK --\u003e\nThe Terraform resource required is:\n\n```golang\nresource \"aws_iam_policy\" \"terraform_pike\" {\n  name_prefix = \"terraform_pike\"\n  path        = \"/\"\n  description = \"Pike Autogenerated policy from IAC\"\n\n  policy = jsonencode({\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [\n        {\n            \"Sid\": \"VisualEditor0\",\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"codepipeline:CreatePipeline\",\n                \"codepipeline:DeletePipeline\",\n                \"codepipeline:GetPipeline\",\n                \"codepipeline:ListTagsForResource\",\n                \"codepipeline:TagResource\",\n                \"codepipeline:UntagResource\"\n            ],\n            \"Resource\": [\n                \"*\"\n            ]\n        },\n        {\n            \"Sid\": \"VisualEditor1\",\n            \"Effect\": \"Allow\",\n            \"Action\": [\n                \"iam:CreateRole\",\n                \"iam:DeleteRole\",\n                \"iam:DeleteRolePolicy\",\n                \"iam:GetRole\",\n                \"iam:GetRolePolicy\",\n                \"iam:ListAttachedRolePolicies\",\n                \"iam:ListInstanceProfilesForRole\",\n                \"iam:ListRolePolicies\",\n                \"iam:PassRole\",\n                \"iam:PutRolePolicy\"\n            ],\n            \"Resource\": [\n                \"*\"\n            ]\n        }\n    ]\n})\n}\n\n\n```\n\u003c!-- END OF PRE-COMMIT-PIKE DOCS HOOK --\u003e\n'stages' is a list of maps, whose format is :\n\n| Name    | Description                          | Type     | Default | Required |\n| ------- | ------------------------------------ | -------- | ------- | :------: |\n| name    | Stage name                           | `string` | n/a     |   yes    |\n| enabled | If false, this stage will be ignored | `bool`   | true    |    no    |\n| action  | A map described below                | `map`    | n/a     |   yes    |\n\n'action' is a map whose format is described below. For more information on\npossible values, please refer to the [AWS documentation](https://docs.aws.amazon.com/codepipeline/latest/userguide/actions.html):\n\n| Name             | Description                                                       | Type           | Default        | Required |\n| ---------------- | ----------------------------------------------------------------- | -------------- | -------------- | :------: |\n| name             | Name                                                              | `string`       | n/a            |   yes    |\n| owner            | Owner                                                             | `string`       | n/a            |   yes    |\n| version          | Version                                                           | `string`       | n/a            |   yes    |\n| category         | Category                                                          | `string`       | n/a            |   yes    |\n| provider         | Provider                                                          | `string`       | n/a            |   yes    |\n| input_artifacts  | A list of artifacts declared as output artifacts by other actions | `list(string)` | `[]`           |    no    |\n| output_artifacts | A list of artifacts to be declared as inputs in other actions     | `list(string)` | `[]`           |    no    |\n| configuration    | A map whose content depends on the 5 first fields                 | `map`          | `{}`           |    no    |\n| role_arn         | If set, ovverrides the global role ARN for this action only       | `string`       | global value   |    no    |\n| run_order        | Run order                                                         | `number`       | null           |    no    |\n| region           | If set, overrides the default region for this action only         | `string`       | current region |    no    |\n\n## Related Projects\n\nCheck out these related projects.\n\n- [terraform-aws-codebuild](https://github.com/jameswoolfenden/terraform-aws-codebuild) - Making a Build pipeline\n\n## Help\n\n**Got a question?**\n\nFile a GitHub [issue](https://github.com/jameswoolfenden/terraform-aws-codepipeline/issues).\n\n## Contributing\n\n### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/jameswoolfenden/terraform-aws-codepipeline/issues) to report any bugs or file feature requests.\n\n## Copyrights\n\nCopyright © 2019-2023 James Woolfenden\n\n## License\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nSee [LICENSE](LICENSE) for full details.\n\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n\u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied. See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\n### Contributors\n\n[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]\u003cbr/\u003e[James Woolfenden][jameswoolfenden_homepage]\n\n[jameswoolfenden_homepage]: https://github.com/jameswoolfenden\n[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fterraform-aws-codepipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjameswoolfenden%2Fterraform-aws-codepipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fterraform-aws-codepipeline/lists"}