You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to provision instances in Triton with a locality far away from each other.
For instance in the example below, each machine created through a module called affinity-test should land far away from each other (spread across different compute nodes): locality = { far_from = ["${triton_machine.affinity-test.id}"] }
(I believe this is a common use case, same machine types (services) spread out far away from each other.)
Trying to do this, results in the following error: * module.affinity-test.triton_machine.affinity-test[0]: module.affinity-test.triton_machine.affinity-test[0]: self reference not allowed: "triton_machine.affinity-test.id"
In this instance it would be quite beneficial to allow self referencing. The locality flag expects machine UUID's which are only generated after the machine itself is provisioned anyway.
In other words the UUID of the current machine will not be in the list as that is only generated after the machine is provisioned.
Not sure if there is some other ways to achieve this kind of provisioning through the Triton provider - if yes I would be interested to hear some suggestions.
Thanks
P
The text was updated successfully, but these errors were encountered:
This issue has been automatically migrated to terraform-providers/terraform-provider-triton#32 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to this issue and let us know.
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
locked and limited conversation to collaborators
Apr 7, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I am trying to provision instances in Triton with a locality far away from each other.
For instance in the example below, each machine created through a module called
affinity-test
should land far away from each other (spread across different compute nodes):locality = { far_from = ["${triton_machine.affinity-test.id}"] }
(I believe this is a common use case, same machine types (services) spread out far away from each other.)
Trying to do this, results in the following error:
* module.affinity-test.triton_machine.affinity-test[0]: module.affinity-test.triton_machine.affinity-test[0]: self reference not allowed: "triton_machine.affinity-test.id"
In this instance it would be quite beneficial to allow self referencing. The locality flag expects machine UUID's which are only generated after the machine itself is provisioned anyway.
In other words the UUID of the current machine will not be in the list as that is only generated after the machine is provisioned.
Not sure if there is some other ways to achieve this kind of provisioning through the Triton provider - if yes I would be interested to hear some suggestions.
Thanks
P
The text was updated successfully, but these errors were encountered: