-
Notifications
You must be signed in to change notification settings - Fork 7
Example Terraform Prompts
Matthew Casperson edited this page Dec 6, 2024
·
9 revisions
These are example prompts used to generate Terraform modules.
Create a terraform module with 10 tenants that have fictional company names linked to a project called "Acme web app". Include 3 environments called "Development", "Test", and "Production". Include the provider configuration. Include a lifecycle with the three environments. Include a project group called "Acme". Create a tenant tagset called "Release Ring". Create three tenant tags called "Fast", "Slow", "Beta", and assign them to the tenant tag group. Assign one of the tenant tags "Release Ring/Fast", "Release Ring/Slow", or "Release Ring/Beta" to each tenant using a modulo of the tenant count. Ensure the tenants depend on the tenant tags.