-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Elastic Beanstalk removes all settings when config template is applied #6636
Comments
Hey @tecnobrat – this is odd. I believe what we're seeing is that, upon switching to a Template, AWS is clearing out the settings for this env and only using the settings found in the Template. I'm not sure where specifically this is happening, but I'll continue to investigate! |
Hey @tecnobrat – So, what I've found is that this behavior is an artifact of both declaring settings in-line and moving your environment to a template. When you move your environment to use a template, we effectively clear our the existing settings. Thus the removal of Unfortunately there isn't a lot I can do here at this time. It still seems reasonable to allow in-line settings, so that you can override any template ones if necessary. It's just this scenario of switching over from a stack name with no template, to a template with a mix of settings, where things get lost. I believe this is a property of the AWS API, and you'd see the same results if you were to use the API directly (or with the |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Running terraform 0.6.16.
If you have configuration that looks like:
But then you change it to use a config template, like:
You will see a plan correctly saying it is going to remove
ELBScheme
from the environment and leave theNEW_RELIC_NO_CONFIG_FILE
untouched, but when it applies, theNEW_RELIC_NO_CONFIG_FILE
will be missing if you check beanstalk on AWS. If you run another plan / apply, thenNEW_RELIC_NO_CONFIG_FILE
will be added back to the environment successfully.The text was updated successfully, but these errors were encountered: