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

Fixes #6076 - Adjusts check to allow for instance-id reset on aws_route #6682

Closed
wants to merge 2 commits into from

Conversation

jrnt30
Copy link
Contributor

@jrnt30 jrnt30 commented May 16, 2016

fixes #6076

As @atward described, when using the instance_id attribute for the association, in the background AWS is also assigning the network_interface_id. The current way of checking would essentially eliminate any possibility of reallocating the route to a new instance id due to the numTargets check always returning 2 in that case and fast failing.

  • Update order of precedence to ensure that allowedTargets is evaluated so that instance_id comes after network_interface_id to allow for check
  • If there are multiple but they are instance_id and network_interface_id is the other let AWS handle the network_interface_id

NOTE: One thing I would have liked to add a test for but had a family emergency come up is tainting the original instance and reapplying. I did not see any direct example of doing this and was considering simply standing up 2 instances in the test and running a re-apply to associate the 2nd instance. If I get a chance before this is merged I will try and do so however I do not have cycles immediately.

@atward
Copy link
Contributor

atward commented May 17, 2016

👍 Tested in #6076

…s_route-changes

 Conflicts:
	builtin/providers/aws/resource_aws_route.go
@atward
Copy link
Contributor

atward commented Jul 19, 2016

@jrnt30 close #6076 if this is fixed.

@ghost
Copy link

ghost commented Apr 24, 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 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_route Error: more than 1 target specified.
3 participants