terraform-provider-platformsh #8
Replies: 2 comments 3 replies
-
Thanks @OneCricketeer for your feedback, that's greatly appreciated! Could you please elaborate what you'd expect in such an integration? Would you have any snippets in mind? |
Beta Was this translation helpful? Give feedback.
-
Let's say I want to create a project. It needs my SSH key, and some environment variables at build and runtime. I also want to host on some custom domain, and grant access to others working on the same project. With the CLI, this requires several steps.
Instead, that can all be defined in one file, which can very simply be resource "platformsh_ssh_key" "ssh_onecricketeer" {
title = "Key for OneCricketeer"
key = file("~/.ssh/id_rsa.pub")
}
resource "platformsh_project" "first" {
plan = "..."
region = "..."
title = "My First Project"
environments = 3
storage = 5120
}
... and so on And if I want to update any of those values, or delete them, I just change that file. I don't need the cognitive overload of having to remember which |
Beta Was this translation helpful? Give feedback.
-
Thanks for (finally) creating a Go CLI, but can that please be extended to provide a Terraform Provider for Platform.sh? Benefits include being able to construct and fully, and centrally, manage projects and their resources as config rather than a series of shell scripts.
I'd went ahead and created my own, internally, using native Golang HTTP requests rather than embedding PHP, and it is working fine as a POC stage, but would be nice if there was something more official (even if it did embed PHP, although large binaries are an unfortunate side effect).
Reference https://developer.hashicorp.com/terraform/tutorials/providers-plugin-framework
Beta Was this translation helpful? Give feedback.
All reactions