terraform-aws-codedeploy-for-ecs icon indicating copy to clipboard operation
terraform-aws-codedeploy-for-ecs copied to clipboard

Error: Incorrect attribute value type

Open rahulrkr08 opened this issue 5 years ago • 0 comments

Can anyone able to help me out for below error ?

Error: Incorrect attribute value type

  on .terraform/modules/codedeploy/main.tf line 26, in resource "aws_codedeploy_deployment_group" "default":
  26:     events = ["${var.auto_rollback_events}"]

Inappropriate value for attribute "events": element 0: string required.

tf file:

  auto_rollback_enabled            = true
  auto_rollback_events             = ["DEPLOYMENT_FAILURE"]
  action_on_timeout                = "STOP_DEPLOYMENT"
  wait_time_in_minutes             = 20
  termination_wait_time_in_minutes = 20
  test_traffic_route_listener_arns = []
  iam_path                         = "/service-role/"
  description                      = "This is example"

rahulrkr08 avatar Mar 09 '20 09:03 rahulrkr08