iterative / terraform-provider-iterative

☁️ Terraform plugin for machine learning workloads: spot instance recovery & auto-termination | AWS, GCP, Azure, Kubernetes
https://registry.terraform.io/providers/iterative/iterative/latest/docs
Apache License 2.0
287 stars 27 forks source link

Allow users to specify custom identifiers with a random suffix #652

Closed 0x2b3bfa0 closed 1 year ago

0x2b3bfa0 commented 1 year ago

Currently, the --name option is fully deterministic[^1] and discouraged as per our documentation, because its behavior is highly confusing.

Some cloud resource names have to be globally unique, and deterministic names chosen by humans are guaranteed to cause creation failures. E.g. if two random users run task create --name example at the same time, one of them will receive an obscure error message.

The --name option should add a random suffix to names so they're always unique. The intoduction of task list rendered fully deterministic names almost pointless.

Related