fly-apps / terraform-provider-fly

Terraform provider for the Fly.io API
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

Fly WireGuard peers #124

Open neilmock opened 1 year ago

neilmock commented 1 year ago

We launch some external machines that would like to participate in the Fly mesh, is it possible to manage WG peers via this Terraform provider? Not sure if this is something currently supported by the undoc'd internal API, but would be awesome.

OJFord commented 1 year ago

It must be possible in the API, since fly wireguard <list|create|remove> is doing it somehow, but this provider has no resource or data source(s) for that.

I'd also like it though 👍🏻.

OJFord commented 1 year ago

Also it doesn't seem possible through the CLI currently to provide a public part of an extant key to use, it insists on generating a keypair?

This would be good to have anyway, but I think especially so in a Terraform context, since the (non-Fly) peer may quite likely already have a WireGuard interface that you want to add the Fly app to.