Hello,
Is there a way to manage environments within a project programmatically? In the web console it seems that new projects by default get a prod and test environment. I noticed that using the terraform provider I am unable to control which environment resources land in. For example I can create a JWTTemplate, but that puppy is only ever going to land in my prod environment. I searched through the API docs and have so far been unable to find a way to manage environments within a project. Am I missing something?
Hey Aaron – thanks for posting!
We generate different project_ids per environment, so for example, you’ll have both project-test-12345-… and project-live-12345-…within the same larger “Project”. I realize the duplicate terminology is confusing in this case
sorry about that.
When making Workspace Management API calls/ using the Terraform provider, you’ll specify which project_id you’d like the change to apply to. So, if you’d like the change to apply to your Test environment, you’ll use project-test-12345-…(and project-live-12345-… for Live).
Happy to help with any other questions you have about this!
Thanks! I’ll revisit my use case with this in mind.