1
votes

I used terraform to create my elastic beanstalk application and get it all setup. But the version of the solution stack shows as 0.1.0. Specifically "IIS 8.5 running on 64bit Windows Server Core 2012 R2/0.1.0" and in the AWS console it suggests I change it. The latest is 2.5.8.

This old version doesn't handle ebextensions very well and deploys fail. If I manually change it in the aws console then deploys work. But if I run terraform again it changes it back to 0.1.0.

I can't find any way to control that version in terraform. But really I just want it to be the latest available at the time of creation, which would make sense as a default.

1

1 Answers

1
votes

You haven't provide any terraform code, but normally you would specify version in your aws_elastic_beanstalk_environment.

For example:

resource "aws_elastic_beanstalk_environment" "tfenvtest" {

  solution_stack_name = "64bit Windows Server 2019 v2.5.8 running IIS 10.0 "

  # other settings

}

The older version you mention is no longer supported for new environments. It was valid until 27 June 2020.