aws_elastic_beanstalk_environment:Unknown configuration setting "ebs_optimized"

523 views
Skip to first unread message

Joseph Melendrez

unread,
Oct 7, 2016, 2:10:45 AM10/7/16
to Terraform
Hi,

Currently configuring the beanstalk environment and have the launchconfiguration launched EbsOptimized instance

resource "aws_elastic_beanstalk_environment" "bs_env" {
  name = "${var.BUSINESS_UNIT}-${var.PLATFORM}-${var.ENVIRONMENT}-${var.SERVICE}-${var.BS_EnvName}"
  cname_prefix = "${lower(var.BUSINESS_UNIT)}-${lower(var.PLATFORM)}-${lower(var.SERVICE)}-${lower(var.ENVIRONMENT)}"
 
  setting {
    namespace = "aws:autoscaling:launchconfiguration"
    name = "ebs_optimized"
    value = "${var.EBS_OPTIMIZED}"
  }

But getting this error:

Error applying plan:

1 error(s) occurred:

* aws_elastic_beanstalk_environment.bs_env: ConfigurationValidationException: Configuration validation exception: Invalid option specification (Namespace: 'aws:autoscaling:launchconfiguration', OptionName: 'ebs_optimized'): Unknown configuration setting.
status code: 400, request id: 71df912b-8c53-11e6-89c6-510f29d6f172

I also tried using name = "EbsOptimized" but also returning option OptionName: 'EbsOptimized' error.

Any idea?

Thanks

dha...@dharris.io

unread,
Oct 9, 2016, 4:32:42 PM10/9/16
to Terraform
Valid option specifications can be found here: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html

Are you sure that the instances are not already ebs optimized? I don't see any options for enabling ebs optimization in Elastic Beanstalk, so it may do this by default for instances that support ebs optimization. 

Joseph Melendrez

unread,
Oct 9, 2016, 7:17:18 PM10/9/16
to Terraform
Hi,

Thanks for checking. I launched a c4.2xlarge using beanstalk, which is supported by ebs-optimized, but by default EBS-optimized is set to False. Looks like additional scripts must be done to enable the ebs optimization.

Thanks
Reply all
Reply to author
Forward
0 new messages