Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not downgrade solution stack if managed actions are enabled #97

Open
aj-jaswanth-ee opened this issue Oct 25, 2019 · 3 comments
Open

Comments

@aj-jaswanth-ee
Copy link
Contributor

Currently we do not have solution stack attribute ignored. Beanstalk automatically updates environment due to managed actions being allowed, when we run terraform again, it downgrades it back to the version specified in the solution stack attribute.

I tried dynamic block approach, apparently lifecycle block isn't allowed to be dynamic.

@roock
Copy link

roock commented Dec 12, 2019

You can get the latest solution stack with a data object e.g.:

data "aws_elastic_beanstalk_solution_stack" "multi_docker" {
  most_recent = true

  name_regex = "^64bit Amazon Linux (.*)(v2\\.)(.*) Multi-container Docker (.*)$"
}

and use that. The only downside is that you will trigger the managed updates if you run terraform between release of the new solution stack and the time your application is updated

@razorsedge
Copy link
Contributor

I would prefer to see solution_stack left alone until I decide to change it.

@razorsedge
Copy link
Contributor

The input update_level should not be set if minor or patch are not passed in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants