Closed codeprang closed 1 year ago
Hi, Are you using classic pipeline or YAML pipeline? In the custom field you should only put the command in your case: import . in the commandOptions field you should put your options, in your case: aws_instance.example i-abcd1234
Thanks, that's fixed it now. I'm using the classic pipeline.
I'm trying to use the custom command to import a resource. If I enter a command such as:
import aws_instance.example i-abcd1234
into the Custom Command box in the task on the pipeline, it gets wrapped in quotation marks and the task fails as it isn't recognised as a valid terraform command. This can be seen in the logs as:Some better documentation on how to use the custom command would also be helpful.