-
Hi, We are trying to use the import function in tofu 1.7.6. However we run into an issue where we want to migrate a local-exec into proper provider while at the same time new servers could be built using same code. This code will work on an existing server:
But this will fail on a new host which doesn't have a pre existing net_id. Is there anyway to make this import conditional if say net_id is undefined? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @janorn the |
Beta Was this translation helpful? Give feedback.
-
Github issue |
Beta Was this translation helpful? Give feedback.
Sure but this workaround worked:
With this as input: