cloudscale-ch / terraform-provider-cloudscale

Terraform Cloudscale provider
https://registry.terraform.io/providers/cloudscale-ch/cloudscale/latest
MIT License
9 stars 10 forks source link

[Feature Request] Support for Tags #35

Closed tobru closed 2 years ago

tobru commented 4 years ago

It would be cool if this Terraform provider would support specifying tags on resources.

davidhalter commented 4 years ago

Thanks for the request @tobru. We already have a ticket open internally for this. I will try to bring it up in the next sprint planning.

I personally doubt that this is going to happen in Q4 this year.

plandolt commented 2 years ago

I'd love to see tag support in terraform. It would be ideal to make groups open on the ansible inverntory plugin.

davidhalter commented 2 years ago

It would be ideal to make groups open on the ansible inventory plugin.

What do you mean by that?

plandolt commented 2 years ago

@davidhalter I created the services with terraform and want to provision the services with ansible. Using the inventory plugin for ansible I wanted to make dynamic groups (e.g. all web-workers, all db-servers, etc.). The easiest way would be to make those groups as you illustrated in the examples here (https://docs.ansible.com/ansible/latest/collections/cloudscale_ch/cloud/inventory_inventory.html) using tags. But with the terraform provider, there is no support for setting tags to resources (or at least it's not documented).

davidhalter commented 2 years ago

Hey Patrick

Sorry for not answering sooner here. I should have told you that I wanted to bring it up for our next sprint discussions. In general feel free to ping us again if we do not answer.

We decided that this is important enough and I have started working on it. It will probably take a few weeks, since it is not the only thing I'm working on, but I'm confident that this will be in the next release in May.

plandolt commented 2 years ago

Hi @davidhalter

No worries. Nice to see that there will be progress. Until then I managed to get it working with a naming schema.

davidhalter commented 2 years ago

@scuben @tobru We have just released our terraform 4.0.0 provider. Tags should be included.