kislerdm / terraform-provider-neon

Terraform provider to manage Neon SaaS resources
https://registry.terraform.io/providers/kislerdm/neon/latest/docs
Mozilla Public License 2.0
27 stars 10 forks source link

Add org_id support for the neon_project resource #99

Open yurhasko opened 2 months ago

yurhasko commented 2 months ago

When creating a Neon project via Terraform/Terragrunt, it's not supported by the provider to specify an org_id by the neon_project resource. However, it is supported by the API: https://api-docs.neon.tech/reference/createproject. Due to the absence of this field, it is not possible to create projects in the organization using a personal API key - the project will be created in a personal project.

image

suvarnadudam commented 2 months ago

Yes please need the ability to pass org_id in terraform.

abilous-ti commented 1 month ago

@kislerdm I am also facing some issues without org_id Will you be able to included it into next version?

kislerdm commented 1 month ago

@yurhasko @suvarnadudam @abilous-ti Hey folks! Thanks for raising the issue. Being able to create a project within an organization makes absolute sense. I will add organization_id as an optional attribute of the resource neon_project to the provider's release v0.5.1.

@neondatabase could you please share best practices to manage projects within an org, i.e., the use of a personal API token does not appear to be the most secure way. Are there system roles, or IAM/authZ concept which you plan on implementing to manage Neon projects in a more secure way? Thanks!

yurhasko commented 1 month ago

Many thanks @kislerdm!

abilous-ti commented 3 days ago

@kislerdm Do you have any ETA for release 0.5.1?