TritonDataCenter / terraform-provider-triton

Terraform Joyent Triton provider
https://www.terraform.io/docs/providers/triton/
Mozilla Public License 2.0
15 stars 24 forks source link

Add a triton_package resource #16

Closed benjamin-bergia closed 7 years ago

benjamin-bergia commented 7 years ago

I am running Triton on-premises and a new resource to manage packages via terraform would be a great addition. Having to manage packages manually on the AdminUI when most of our Zones are managed via Terraform is pretty annoying.

I noticed that, for some reasons, the CloudAPI doesn't seem to allow package creation. So I don't know if a triton_package resource is doable or not.

jwreagor commented 7 years ago

This is a feature request for joyent/sdc-cloudapi and not a feature that the Terraform provider can take advantage of.

The private backend service that facilitates packages, joyent/sdc-papi, does not contain the proper API guarantees to be made available through the public API. The behavior of creating packages simply isn't geared toward public use cases or the security model that administers CloudAPI.

You can certainly create non-Terraform automation around the private API yourself, and there is documentation to do so. Warning though, there are no authentication mechanisms for that API and you'll have to handle that yourself accordingly.

benjamin-bergia commented 7 years ago

@cheapRoc understood, thank you for the explanation.

Looks like there is nothing to be done here. I will close this issue