diff --git a/README.md b/README.md
index 2d75b57..fced2c5 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,7 @@ preconfigured solution for seamless scalability and high availability."
| [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 |
| [codedeploy\_deployment\_config\_name](#input\_codedeploy\_deployment\_config\_name) | The name of the group's deployment config. | `string` | `"CodeDeployDefault.ECSAllAtOnce"` | no |
| [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 |
+| [codedeploy\_ignore\_poll\_alarm\_failure](#input\_codedeploy\_ignore\_poll\_alarm\_failure) | Whether to ignore failures when polling for alarms. | `bool` | `false` | no |
| [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 |
| [codedeploy\_role\_name\_prefix](#input\_codedeploy\_role\_name\_prefix) | Whether to prefix the CodeDeploy role name. | `bool` | `false` | no |
| [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."
## Resources
-- resource.aws_cloudwatch_log_group.main (main.tf#309)
+- resource.aws_cloudwatch_log_group.main (main.tf#310)
- resource.aws_codedeploy_app.main (main.tf#231)
- resource.aws_codedeploy_deployment_group.main (main.tf#238)
- resource.aws_ecs_service.main (main.tf#56)
diff --git a/main.tf b/main.tf
index db95d95..656accb 100644
--- a/main.tf
+++ b/main.tf
@@ -269,8 +269,9 @@ resource "aws_codedeploy_deployment_group" "main" {
}
alarm_configuration {
- enabled = length(var.codedeploy_cloudwatch_alarm_names) > 0 ? true : false
- alarms = var.codedeploy_cloudwatch_alarm_names
+ enabled = length(var.codedeploy_cloudwatch_alarm_names) > 0 ? true : false
+ alarms = var.codedeploy_cloudwatch_alarm_names
+ ignore_poll_alarm_failure = var.codedeploy_ignore_poll_alarm_failure
}
load_balancer_info {
diff --git a/variables.tf b/variables.tf
index fca6b68..cc05f17 100644
--- a/variables.tf
+++ b/variables.tf
@@ -278,6 +278,12 @@ variable "codedeploy_role_name_prefix" {
type = bool
}
+variable "codedeploy_ignore_poll_alarm_failure" {
+ description = "Whether to ignore failures when polling for alarms."
+ default = false
+ type = bool
+}
+
# CLOUDWATCH
variable "codedeploy_cloudwatch_alarm_names" {
description = "Cloudwatch alarm NAMES (not ARNs) to add to the deployment group. Allows automated rollback on errors."