Open janario opened 1 month ago
Sites should be created with at least one deploy key, in most/all flows. You can query that key using data.netlify_site: https://registry.terraform.io/providers/netlify/netlify/latest/docs/data-sources/site#git_deploy_key
Would that be sufficient for your use case?
That would work also, but in our case we have a monorepo with around 30 sites, so I guess it would result in 30 deploy keys right?
So far we used other unofficial providers to do the 1 deploy_key all 30 sites with the same key and our gitlab repo with this 1 key.
I see. So the key part of this is the ability to set the deploy key of a site to an existing one, and not the creation itself of keys. Makes sense!
For our scenario create a deploy key and reuse in other resources Gitlab repo and all the 30 sites creation with the same deploy key.
As in the rest resources https://open-api.netlify.com/#tag/deployKey
It would be great to have this with terraform, so it would simplify a lot our infra provisioning.
e.g.