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

aws_elastic_beanstalk_configuration_template.options changes not updated #6301

Closed
atward opened this issue Apr 22, 2016 · 4 comments · Fixed by #6307
Closed

aws_elastic_beanstalk_configuration_template.options changes not updated #6301

atward opened this issue Apr 22, 2016 · 4 comments · Fixed by #6307

Comments

@atward
Copy link
Contributor

atward commented Apr 22, 2016

Updates/changes to aws_elastic_beanstalk_configuration_template.options are not reflected in AWS. Testing has shows that changes to options delete them from the configuration template.
There appears to be a clear typo bug on https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/resource_aws_elastic_beanstalk_configuration_template.go#L174 - but patching that line does not fix the issue.

This is probably related to related: #6035 @catsby

@atward
Copy link
Contributor Author

atward commented Apr 22, 2016

Relevant lines from debug logs.
Running against patch suggested above: https://github.com/atward/terraform/commit/9e335bc4f8de1ab43d7570d91265d5e74bc02a97
Setting change from

    setting {
        namespace = "aws:elb:loadbalancer"
        name = "CrossZone"
        value = "true"
    }

to

    setting {
        namespace = "aws:elb:loadbalancer"
        name = "CrossZone"
        value = "false"
    }
2016/04/22 17:13:56 [DEBUG] terraform-provider-aws: 2016/04/22 17:13:56 [DEBUG] [aws-sdk-go] DEBUG: Request elasticbeanstalk/UpdateConfigurationTemplate Details:
2016/04/22 17:13:56 [DEBUG] terraform-provider-aws:
2016/04/22 17:13:56 [DEBUG] terraform-provider-aws: ---[ REQUEST POST-SIGN ]-----------------------------
2016/04/22 17:13:56 [DEBUG] terraform-provider-aws: POST / HTTP/1.1
2016/04/22 17:13:56 [DEBUG] terraform-provider-aws: Host: elasticbeanstalk.ap-southeast-2.amazonaws.com
2016/04/22 17:13:56 [DEBUG] terraform-provider-aws:
2016/04/22 17:13:56 [DEBUG] terraform-provider-aws: Action=UpdateConfigurationTemplate&ApplicationName=myapp&OptionSettings.member.1.Namespace=aws%3Aelb%3Aloadbalancer&OptionSettings.member.1.OptionName=CrossZone&OptionSettings.member.1.Value=false&OptionsToRemove.member.1.Namespace=aws%3Aelb%3Aloadbalancer&OptionsToRemove.member.1.OptionName=CrossZone&TemplateName=apptmpl&Version=2010-12-01


2016/04/22 17:13:57 [DEBUG] terraform-provider-aws: 2016/04/22 17:13:57 [DEBUG] [aws-sdk-go] DEBUG: Response elasticbeanstalk/UpdateConfigurationTemplate Details:
2016/04/22 17:13:57 [DEBUG] terraform-provider-aws: ---[ RESPONSE ]--------------------------------------
2016/04/22 17:13:57 [DEBUG] terraform-provider-aws: HTTP/1.1 200 OK

Parsed post data:

>>> pprint(urlparse.parse_qs(s))
{'Action': ['UpdateConfigurationTemplate'],
 'ApplicationName': ['myapp'],
 'OptionSettings.member.1.Namespace': ['aws:elb:loadbalancer'],
 'OptionSettings.member.1.OptionName': ['CrossZone'],
 'OptionSettings.member.1.Value': ['false'],
 'OptionsToRemove.member.1.Namespace': ['aws:elb:loadbalancer'],
 'OptionsToRemove.member.1.OptionName': ['CrossZone'],
 'TemplateName': ['apptmpl'],
 'Version': ['2010-12-01']}

@atward
Copy link
Contributor Author

atward commented Apr 22, 2016

Appears the code needs to exclude the intersection of os/ns OptionSettings from the remove set - these should an update set, and included in the add set.

@catsby
Copy link
Contributor

catsby commented Apr 22, 2016

Thanks! Fixed in #6307

@ghost
Copy link

ghost commented Apr 26, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants