hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

AWS::AutoScaling::AutoScalingGroup is not working #9296

Open focode opened 5 years ago

focode commented 5 years ago

I am trying to change the default healtchecktype from ec2 to elb and I am getting this error: aws_elastic_beanstalk_environment.default: ConfigurationValidationException: Configuration validation exception: Invalid option specification (Namespace: 'aws:autoscaling:autoscalinggroup', OptionName: 'HealthCheckType'): Unknown configuration setting. status code: 400, request id: a6fbdb1e-197f-47cf-a7db-3e8672ae80b2 Under resource "aws_elastic_beanstalk_environment" "default" below is the setting that I am using:

    setting {
    namespace = "aws:autoscaling:autoscalinggroup"
    name      = "HealthCheckType"
    value     = "ELB"
  }

I got the valuse from aws documentation : https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html

It is also supported by aws cloud formation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-healthchecktype

khartahk commented 3 years ago

Is there any news on this issue. I'm also trying to set up ELB as a health check type and found the same issue.

Maxwell2022 commented 3 years ago

I'm running into the same issue. Also it looks like HealthCheckGracePeriod is not supported:

Error: ConfigurationValidationException: Configuration validation exception: Invalid option specification (Namespace: 'aws::autoScaling::autoScalingGroup', OptionName: 'HealthCheckGracePeriod'): Unknown configuration setting.

using the following config:

resource "aws_elastic_beanstalk_configuration_template" "eb_configuration_template" {

  [...]

  setting {
    namespace = "aws::autoScaling::autoScalingGroup"
    name      = "HealthCheckType"
    value     = "ELB"
  }

  setting {
    namespace = "aws::autoScaling::autoScalingGroup"
    name      = "HealthCheckGracePeriod"
    value     = 120
  }
}
Satyanandana commented 2 years ago

Any update on this issue ?

opswami commented 2 years ago

I am also getting same error while trying to add HealthCheckGracePeriod for autoscaling group using this configuration :

{
    namespace : "aws:autoscaling:AutoScalingGroup",
    optionName : "HealthCheckType",
    value : `ELB`
},
{
    namespace : "aws:autoscaling:AutoScalingGroup",
    optionName : "HealthCheckGracePeriod",
    value : 180
}

Any update on this issue?

kayamuskas commented 6 months ago

The same for me. Any updates?