-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
megaport_aws_vxc, megaport_gcp_vxc: fix imports
When importing a resource, we have no access to the config and cannot properly setup the state with regard to the `product_uid` and `connected_product_uid` attributes. This change leaves the `product_uid` attribute empty if the value is unknown (which will happen when importing any of these two resources). Additionally, it introduces a DiffSuppressFunc which will force terraform to ignore changes to the attribute if its value in the state is empty. The result is that we have a clean plan after import, working around the load balancing behaviour for cloud partner ports. However, it also means that to modify the `product_uid` value of the B-End of a cloud VXC, the resource will have to be tainted. Signed-off-by: Dimitrios Karagiannis <[email protected]>
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters