Skip to content

Commit 57c9e80

Browse files
authored
Merge pull request #14 from geekcell/missing-var
fix: Add missing alarm_configuration variable
2 parents 7cc72a1 + 14a600a commit 57c9e80

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ preconfigured solution for seamless scalability and high availability."
5858
| <a name="input_codedeploy_cloudwatch_alarm_names"></a> [codedeploy\_cloudwatch\_alarm\_names](#input\_codedeploy\_cloudwatch\_alarm\_names) | Cloudwatch alarm NAMES (not ARNs) to add to the deployment group. Allows automated rollback on errors. | `list(string)` | `[]` | no |
5959
| <a name="input_codedeploy_deployment_config_name"></a> [codedeploy\_deployment\_config\_name](#input\_codedeploy\_deployment\_config\_name) | The name of the group's deployment config. | `string` | `"CodeDeployDefault.ECSAllAtOnce"` | no |
6060
| <a name="input_codedeploy_deployment_ready_wait_time_in_minutes"></a> [codedeploy\_deployment\_ready\_wait\_time\_in\_minutes](#input\_codedeploy\_deployment\_ready\_wait\_time\_in\_minutes) | The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. If set to 0 the deployment will continue without waiting for approval. | `number` | `0` | no |
61+
| <a name="input_codedeploy_ignore_poll_alarm_failure"></a> [codedeploy\_ignore\_poll\_alarm\_failure](#input\_codedeploy\_ignore\_poll\_alarm\_failure) | Whether to ignore failures when polling for alarms. | `bool` | `false` | no |
6162
| <a name="input_codedeploy_role_name"></a> [codedeploy\_role\_name](#input\_codedeploy\_role\_name) | The name of the role that allows CodeDeploy to make calls to ECS, Auto Scaling, and CloudWatch on your behalf. | `string` | `null` | no |
6263
| <a name="input_codedeploy_role_name_prefix"></a> [codedeploy\_role\_name\_prefix](#input\_codedeploy\_role\_name\_prefix) | Whether to prefix the CodeDeploy role name. | `bool` | `false` | no |
6364
| <a name="input_codedeploy_termination_action"></a> [codedeploy\_termination\_action](#input\_codedeploy\_termination\_action) | The action to take on instances in the original environment after a successful blue/green deployment. | `string` | `"TERMINATE"` | no |
@@ -148,7 +149,7 @@ preconfigured solution for seamless scalability and high availability."
148149

149150
## Resources
150151

151-
- resource.aws_cloudwatch_log_group.main (main.tf#309)
152+
- resource.aws_cloudwatch_log_group.main (main.tf#310)
152153
- resource.aws_codedeploy_app.main (main.tf#231)
153154
- resource.aws_codedeploy_deployment_group.main (main.tf#238)
154155
- resource.aws_ecs_service.main (main.tf#56)

main.tf

+3-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,9 @@ resource "aws_codedeploy_deployment_group" "main" {
269269
}
270270

271271
alarm_configuration {
272-
enabled = length(var.codedeploy_cloudwatch_alarm_names) > 0 ? true : false
273-
alarms = var.codedeploy_cloudwatch_alarm_names
272+
enabled = length(var.codedeploy_cloudwatch_alarm_names) > 0 ? true : false
273+
alarms = var.codedeploy_cloudwatch_alarm_names
274+
ignore_poll_alarm_failure = var.codedeploy_ignore_poll_alarm_failure
274275
}
275276

276277
load_balancer_info {

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,12 @@ variable "codedeploy_role_name_prefix" {
278278
type = bool
279279
}
280280

281+
variable "codedeploy_ignore_poll_alarm_failure" {
282+
description = "Whether to ignore failures when polling for alarms."
283+
default = false
284+
type = bool
285+
}
286+
281287
# CLOUDWATCH
282288
variable "codedeploy_cloudwatch_alarm_names" {
283289
description = "Cloudwatch alarm NAMES (not ARNs) to add to the deployment group. Allows automated rollback on errors."

0 commit comments

Comments
 (0)