From 1dffa04a164f6afa97d8fabaa0655bd1af4696a2 Mon Sep 17 00:00:00 2001 From: Paula Cartas Date: Thu, 15 Dec 2022 18:21:00 -0300 Subject: [PATCH 1/5] Add extra policies for codebuild --- examples/complete/main.tf | 37 +++++++++++++++++----------------- examples/complete/variables.tf | 6 ++++++ main.tf | 12 +++++++++-- variables.tf | 6 ++++++ 4 files changed, 41 insertions(+), 20 deletions(-) diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 1fbbb16..ab37526 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -68,24 +68,25 @@ module "ecs_alb_service_task" { } module "ecs_codepipeline" { - source = "../../" - region = var.region - github_oauth_token = var.github_oauth_token - repo_owner = var.repo_owner - repo_name = var.repo_name - branch = var.branch - build_image = var.build_image - build_compute_type = var.build_compute_type - build_timeout = var.build_timeout - poll_source_changes = var.poll_source_changes - privileged_mode = var.privileged_mode - image_repo_name = var.image_repo_name - image_tag = var.image_tag - webhook_enabled = var.webhook_enabled - s3_bucket_force_destroy = var.s3_bucket_force_destroy - environment_variables = var.environment_variables - ecs_cluster_name = aws_ecs_cluster.default.name - service_name = module.ecs_alb_service_task.service_name + source = "../../" + region = var.region + github_oauth_token = var.github_oauth_token + repo_owner = var.repo_owner + repo_name = var.repo_name + branch = var.branch + build_image = var.build_image + build_compute_type = var.build_compute_type + build_timeout = var.build_timeout + poll_source_changes = var.poll_source_changes + privileged_mode = var.privileged_mode + image_repo_name = var.image_repo_name + image_tag = var.image_tag + webhook_enabled = var.webhook_enabled + s3_bucket_force_destroy = var.s3_bucket_force_destroy + environment_variables = var.environment_variables + ecs_cluster_name = aws_ecs_cluster.default.name + service_name = module.ecs_alb_service_task.service_name + codebuild_extra_policy_arns = var.codebuild_extra_policy_arns context = module.this.context } diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 0dbe4f3..6f48af7 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -198,3 +198,9 @@ variable "s3_bucket_force_destroy" { type = bool description = "A boolean that indicates all objects should be deleted from the CodePipeline artifact store S3 bucket so that the bucket can be destroyed without error" } + +variable "codebuild_extra_policy_arns" { + type = list(string) + default = [] + description = "List of ARNs of extra policies to attach to the CodeBuild role" +} \ No newline at end of file diff --git a/main.tf b/main.tf index 6761270..c936226 100644 --- a/main.tf +++ b/main.tf @@ -251,6 +251,12 @@ resource "aws_iam_role_policy_attachment" "codebuild_codestar" { policy_arn = join("", aws_iam_policy.codestar.*.arn) } +resource "aws_iam_role_policy_attachment" "codebuild_extras" { + for_each = module.this.enabled ? toset(var.codebuild_extra_policy_arns) : [] + role = module.codebuild.role_id + policy_arn = each.value +} + resource "aws_codepipeline" "default" { count = module.this.enabled && var.github_oauth_token != "" ? 1 : 0 name = module.codepipeline_label.id @@ -265,7 +271,8 @@ resource "aws_codepipeline" "default" { aws_iam_role_policy_attachment.default, aws_iam_role_policy_attachment.s3, aws_iam_role_policy_attachment.codebuild, - aws_iam_role_policy_attachment.codebuild_s3 + aws_iam_role_policy_attachment.codebuild_s3, + aws_iam_role_policy_attachment.codebuild_extras ] stage { @@ -348,7 +355,8 @@ resource "aws_codepipeline" "bitbucket" { aws_iam_role_policy_attachment.s3, aws_iam_role_policy_attachment.codebuild, aws_iam_role_policy_attachment.codebuild_s3, - aws_iam_role_policy_attachment.codestar + aws_iam_role_policy_attachment.codestar, + aws_iam_role_policy_attachment.codebuild_extras ] stage { diff --git a/variables.tf b/variables.tf index fe2e59a..ae6777c 100644 --- a/variables.tf +++ b/variables.tf @@ -210,3 +210,9 @@ variable "codebuild_vpc_config" { default = {} description = "Configuration for the builds to run inside a VPC." } + +variable "codebuild_extra_policy_arns" { + type = list(string) + default = [] + description = "List of ARNs of extra policies to attach to the CodeBuild role" +} \ No newline at end of file From fb4499aa2630be00fe4e9f7dedf931f431968a7f Mon Sep 17 00:00:00 2001 From: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> Date: Thu, 15 Dec 2022 21:28:04 +0000 Subject: [PATCH 2/5] Auto Format --- README.md | 2 ++ docs/terraform.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 5aee3e8..b2922a9 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,7 @@ Available targets: | [aws_iam_role.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | | [aws_iam_role_policy_attachment.codebuild](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.codebuild_codestar](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_role_policy_attachment.codebuild_extras](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.codebuild_s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.codestar](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | @@ -274,6 +275,7 @@ Available targets: | [buildspec](#input\_buildspec) | Declaration to use for building the project. [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) | `string` | `""` | no | | [cache\_bucket\_suffix\_enabled](#input\_cache\_bucket\_suffix\_enabled) | The cache bucket generates a random 13 character string to generate a unique bucket name. If set to false it uses terraform-null-label's id value. It only works when cache\_type is 'S3' | `bool` | `true` | no | | [cache\_type](#input\_cache\_type) | The type of storage that will be used for the AWS CodeBuild project cache. Valid values: NO\_CACHE, LOCAL, and S3. Defaults to S3. If cache\_type is S3, it will create an S3 bucket for storing codebuild cache inside | `string` | `"S3"` | no | +| [codebuild\_extra\_policy\_arns](#input\_codebuild\_extra\_policy\_arns) | List of ARNs of extra policies to attach to the CodeBuild role | `list(string)` | `[]` | no | | [codebuild\_vpc\_config](#input\_codebuild\_vpc\_config) | Configuration for the builds to run inside a VPC. | `any` | `{}` | no | | [codestar\_connection\_arn](#input\_codestar\_connection\_arn) | CodeStar connection ARN required for Bitbucket integration with CodePipeline | `string` | `""` | no | | [codestar\_output\_artifact\_format](#input\_codestar\_output\_artifact\_format) | Output artifact type for Source stage in pipeline. Valid values are "CODE\_ZIP" (default) and "CODEBUILD\_CLONE\_REF". See https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html | `string` | `"CODE_ZIP"` | no | diff --git a/docs/terraform.md b/docs/terraform.md index 978a360..dbfb821 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -41,6 +41,7 @@ | [aws_iam_role.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | | [aws_iam_role_policy_attachment.codebuild](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.codebuild_codestar](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | +| [aws_iam_role_policy_attachment.codebuild_extras](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.codebuild_s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.codestar](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_iam_role_policy_attachment.default](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | @@ -70,6 +71,7 @@ | [buildspec](#input\_buildspec) | Declaration to use for building the project. [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) | `string` | `""` | no | | [cache\_bucket\_suffix\_enabled](#input\_cache\_bucket\_suffix\_enabled) | The cache bucket generates a random 13 character string to generate a unique bucket name. If set to false it uses terraform-null-label's id value. It only works when cache\_type is 'S3' | `bool` | `true` | no | | [cache\_type](#input\_cache\_type) | The type of storage that will be used for the AWS CodeBuild project cache. Valid values: NO\_CACHE, LOCAL, and S3. Defaults to S3. If cache\_type is S3, it will create an S3 bucket for storing codebuild cache inside | `string` | `"S3"` | no | +| [codebuild\_extra\_policy\_arns](#input\_codebuild\_extra\_policy\_arns) | List of ARNs of extra policies to attach to the CodeBuild role | `list(string)` | `[]` | no | | [codebuild\_vpc\_config](#input\_codebuild\_vpc\_config) | Configuration for the builds to run inside a VPC. | `any` | `{}` | no | | [codestar\_connection\_arn](#input\_codestar\_connection\_arn) | CodeStar connection ARN required for Bitbucket integration with CodePipeline | `string` | `""` | no | | [codestar\_output\_artifact\_format](#input\_codestar\_output\_artifact\_format) | Output artifact type for Source stage in pipeline. Valid values are "CODE\_ZIP" (default) and "CODEBUILD\_CLONE\_REF". See https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html | `string` | `"CODE_ZIP"` | no | From dd63afcbf6d8cc474582b6c072444e3d6bfa29ca Mon Sep 17 00:00:00 2001 From: Paula Cartas Date: Thu, 13 Jul 2023 17:07:50 -0300 Subject: [PATCH 3/5] Add deploy_stage_enabled --- main.tf | 60 +++++++++++++++++++++++++++++----------------------- variables.tf | 12 +++++++++-- 2 files changed, 44 insertions(+), 28 deletions(-) diff --git a/main.tf b/main.tf index 2feda47..a665c7b 100644 --- a/main.tf +++ b/main.tf @@ -315,20 +315,24 @@ resource "aws_codepipeline" "default" { } } - stage { - name = "Deploy" - - action { - name = "Deploy" - category = "Deploy" - owner = "AWS" - provider = "ECS" - input_artifacts = ["task"] - version = "1" - - configuration = { - ClusterName = var.ecs_cluster_name - ServiceName = var.service_name + dynamic "stage" { + for_each = var.deploy_stage_enabled ? [1] : [] + + content { + name = "Deploy" + + action { + name = "Deploy" + category = "Deploy" + owner = "AWS" + provider = "ECS" + input_artifacts = ["task"] + version = "1" + + configuration = { + ClusterName = var.ecs_cluster_name + ServiceName = var.service_name + } } } } @@ -398,20 +402,24 @@ resource "aws_codepipeline" "bitbucket" { } } - stage { - name = "Deploy" + dynamic "stage" { + for_each = var.deploy_stage_enabled ? [1] : [] - action { - name = "Deploy" - category = "Deploy" - owner = "AWS" - provider = "ECS" - input_artifacts = ["task"] - version = "1" + content { + name = "Deploy" - configuration = { - ClusterName = var.ecs_cluster_name - ServiceName = var.service_name + action { + name = "Deploy" + category = "Deploy" + owner = "AWS" + provider = "ECS" + input_artifacts = ["task"] + version = "1" + + configuration = { + ClusterName = var.ecs_cluster_name + ServiceName = var.service_name + } } } } diff --git a/variables.tf b/variables.tf index 9b5ff3f..526de48 100644 --- a/variables.tf +++ b/variables.tf @@ -1,11 +1,13 @@ variable "ecs_cluster_name" { type = string - description = "ECS Cluster Name" + description = "ECS Cluster Name, not required if you have deploy stage disabled" + default = "" } variable "service_name" { type = string - description = "ECS Service Name" + description = "ECS Service Name, not required if you have deploy stage disabled" + default = "" } variable "github_oauth_token" { @@ -209,4 +211,10 @@ variable "codebuild_extra_policy_arns" { type = list(string) default = [] description = "List of ARNs of extra policies to attach to the CodeBuild role" +} + +variable "deploy_stage_enabled" { + type = bool + default = true + description = "Set to false to disable the deploy stage" } \ No newline at end of file From ff58bca330ba81a3042dde16a691ca9c4cbe815d Mon Sep 17 00:00:00 2001 From: Paula Cartas Date: Wed, 26 Jul 2023 11:20:42 -0300 Subject: [PATCH 4/5] update examples/complete --- examples/complete/variables.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 6f48af7..e783d92 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -203,4 +203,10 @@ variable "codebuild_extra_policy_arns" { type = list(string) default = [] description = "List of ARNs of extra policies to attach to the CodeBuild role" +} + +variable "deploy_stage_enabled" { + type = bool + default = true + description = "Set to false to disable the deploy stage" } \ No newline at end of file From 695fe97a9af7eee6d7cc2fb1dd7183f2f1f2a9c3 Mon Sep 17 00:00:00 2001 From: Paula Cartas Date: Wed, 2 Aug 2023 10:35:09 -0300 Subject: [PATCH 5/5] make init, make readme, fix in examples --- README.md | 5 +++-- docs/terraform.md | 5 +++-- examples/complete/main.tf | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5ebcf3a..cc9ddf7 100644 --- a/README.md +++ b/README.md @@ -281,8 +281,9 @@ Available targets: | [codestar\_output\_artifact\_format](#input\_codestar\_output\_artifact\_format) | Output artifact type for Source stage in pipeline. Valid values are "CODE\_ZIP" (default) and "CODEBUILD\_CLONE\_REF". See https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html | `string` | `"CODE_ZIP"` | no | | [context](#input\_context) | Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as `null` to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional\_tag\_map, which are merged. | `any` |
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"descriptor_formats": {},
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_key_case": null,
"label_order": [],
"label_value_case": null,
"labels_as_tags": [
"unset"
],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {},
"tenant": null
}
| no | | [delimiter](#input\_delimiter) | Delimiter to be used between ID elements.
Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. | `string` | `null` | no | +| [deploy\_stage\_enabled](#input\_deploy\_stage\_enabled) | Set to false to disable the deploy stage | `bool` | `true` | no | | [descriptor\_formats](#input\_descriptor\_formats) | Describe additional descriptors to be output in the `descriptors` output map.
Map of maps. Keys are names of descriptors. Values are maps of the form
`{
format = string
labels = list(string)
}`
(Type is `any` so the map values can later be enhanced to provide additional options.)
`format` is a Terraform format string to be passed to the `format()` function.
`labels` is a list of labels, in order, to pass to `format()` function.
Label values will be normalized before being passed to `format()` so they will be
identical to how they appear in `id`.
Default is `{}` (`descriptors` output will be empty). | `any` | `{}` | no | -| [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | ECS Cluster Name | `string` | n/a | yes | +| [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | ECS Cluster Name, not required if you have deploy stage disabled | `string` | `""` | no | | [enabled](#input\_enabled) | Set to false to prevent the module from creating any resources | `bool` | `null` | no | | [environment](#input\_environment) | ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT' | `string` | `null` | no | | [environment\_variables](#input\_environment\_variables) | A list of maps, that contain the keys 'name', 'value', and 'type' to be used as additional environment variables for the build. Valid types are 'PLAINTEXT', 'PARAMETER\_STORE', or 'SECRETS\_MANAGER' |
list(object(
{
name = string
value = string
type = string
}))
| `[]` | no | @@ -308,7 +309,7 @@ Available targets: | [secondary\_artifact\_bucket\_id](#input\_secondary\_artifact\_bucket\_id) | Optional bucket for secondary artifact deployment. If specified, the buildspec must include a secondary artifacts section which controls the artifacts deployed to the bucket [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) | `string` | `null` | no | | [secondary\_artifact\_encryption\_enabled](#input\_secondary\_artifact\_encryption\_enabled) | If set to true, enable encryption on the secondary artifact bucket | `bool` | `false` | no | | [secondary\_artifact\_identifier](#input\_secondary\_artifact\_identifier) | Identifier for optional secondary artifact deployment. If specified, the identifier must appear in the buildspec as the name of the section which controls the artifacts deployed to the secondary artifact bucket [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) | `string` | `null` | no | -| [service\_name](#input\_service\_name) | ECS Service Name | `string` | n/a | yes | +| [service\_name](#input\_service\_name) | ECS Service Name, not required if you have deploy stage disabled | `string` | `""` | no | | [stage](#input\_stage) | ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no | | [tags](#input\_tags) | Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`).
Neither the tag keys nor the tag values will be modified by this module. | `map(string)` | `{}` | no | | [tenant](#input\_tenant) | ID element \_(Rarely used, not included by default)\_. A customer identifier, indicating who this instance of a resource is for | `string` | `null` | no | diff --git a/docs/terraform.md b/docs/terraform.md index 7c51802..f6055c5 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -77,8 +77,9 @@ | [codestar\_output\_artifact\_format](#input\_codestar\_output\_artifact\_format) | Output artifact type for Source stage in pipeline. Valid values are "CODE\_ZIP" (default) and "CODEBUILD\_CLONE\_REF". See https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html | `string` | `"CODE_ZIP"` | no | | [context](#input\_context) | Single object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as `null` to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional\_tag\_map, which are merged. | `any` |
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"descriptor_formats": {},
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_key_case": null,
"label_order": [],
"label_value_case": null,
"labels_as_tags": [
"unset"
],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {},
"tenant": null
}
| no | | [delimiter](#input\_delimiter) | Delimiter to be used between ID elements.
Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. | `string` | `null` | no | +| [deploy\_stage\_enabled](#input\_deploy\_stage\_enabled) | Set to false to disable the deploy stage | `bool` | `true` | no | | [descriptor\_formats](#input\_descriptor\_formats) | Describe additional descriptors to be output in the `descriptors` output map.
Map of maps. Keys are names of descriptors. Values are maps of the form
`{
format = string
labels = list(string)
}`
(Type is `any` so the map values can later be enhanced to provide additional options.)
`format` is a Terraform format string to be passed to the `format()` function.
`labels` is a list of labels, in order, to pass to `format()` function.
Label values will be normalized before being passed to `format()` so they will be
identical to how they appear in `id`.
Default is `{}` (`descriptors` output will be empty). | `any` | `{}` | no | -| [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | ECS Cluster Name | `string` | n/a | yes | +| [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | ECS Cluster Name, not required if you have deploy stage disabled | `string` | `""` | no | | [enabled](#input\_enabled) | Set to false to prevent the module from creating any resources | `bool` | `null` | no | | [environment](#input\_environment) | ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT' | `string` | `null` | no | | [environment\_variables](#input\_environment\_variables) | A list of maps, that contain the keys 'name', 'value', and 'type' to be used as additional environment variables for the build. Valid types are 'PLAINTEXT', 'PARAMETER\_STORE', or 'SECRETS\_MANAGER' |
list(object(
{
name = string
value = string
type = string
}))
| `[]` | no | @@ -104,7 +105,7 @@ | [secondary\_artifact\_bucket\_id](#input\_secondary\_artifact\_bucket\_id) | Optional bucket for secondary artifact deployment. If specified, the buildspec must include a secondary artifacts section which controls the artifacts deployed to the bucket [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) | `string` | `null` | no | | [secondary\_artifact\_encryption\_enabled](#input\_secondary\_artifact\_encryption\_enabled) | If set to true, enable encryption on the secondary artifact bucket | `bool` | `false` | no | | [secondary\_artifact\_identifier](#input\_secondary\_artifact\_identifier) | Identifier for optional secondary artifact deployment. If specified, the identifier must appear in the buildspec as the name of the section which controls the artifacts deployed to the secondary artifact bucket [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html) | `string` | `null` | no | -| [service\_name](#input\_service\_name) | ECS Service Name | `string` | n/a | yes | +| [service\_name](#input\_service\_name) | ECS Service Name, not required if you have deploy stage disabled | `string` | `""` | no | | [stage](#input\_stage) | ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no | | [tags](#input\_tags) | Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`).
Neither the tag keys nor the tag values will be modified by this module. | `map(string)` | `{}` | no | | [tenant](#input\_tenant) | ID element \_(Rarely used, not included by default)\_. A customer identifier, indicating who this instance of a resource is for | `string` | `null` | no | diff --git a/examples/complete/main.tf b/examples/complete/main.tf index ab37526..c1841c9 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -87,6 +87,7 @@ module "ecs_codepipeline" { ecs_cluster_name = aws_ecs_cluster.default.name service_name = module.ecs_alb_service_task.service_name codebuild_extra_policy_arns = var.codebuild_extra_policy_arns + deploy_stage_enabled = var.deploy_stage_enabled context = module.this.context }