Terraform: cloudstack_instance should not require name parameter

Created on 11 Mar 2016  ยท  3Comments  ยท  Source: hashicorp/terraform

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
bug providecloudstack

Most helpful comment

Fixed and merged :+1:

Thanks @larstobi and @jen20!

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjinski picture rjinski  ยท  3Comments

franklinwise picture franklinwise  ยท  3Comments

thebenwaters picture thebenwaters  ยท  3Comments

zeninfinity picture zeninfinity  ยท  3Comments

shanmugakarna picture shanmugakarna  ยท  3Comments