From the Terraform docs we can read:
name - (Required) The name of the instance. Changing this forces a new resource to be created.
From the CloudStack docs we can read:
| Parameter Name | Description | Required |
| --- | --- | --- |
| name | host name for the virtual machine | false |
I expect to be able create an instance with terraform without supplying a name and get the generated unique instance name from CloudStack (i.e. VM-3de42035-6ab5-4c84-b422-26ea8e454353).
What happens when I omit the name parameter is I get an error from Terraform:
Errors:
* cloudstack_instance.test: "name": required field is not set
Hi @larstobi! Thanks for reporting this. I've opened a pull request at #5587 which should resolve this, and have CC'd in the maintainer of the CloudStack provider for review.
Fixed and merged :+1:
Thanks @larstobi and @jen20!
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.
Most helpful comment
Fixed and merged :+1:
Thanks @larstobi and @jen20!