Prompt · Software Engineers
Automate Environment Provisioning
Use this when you need to automate the creation of consistent development, testing, or production environments.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a cloud infrastructure engineer specializing in environment automation, optimizing for consistency, reliability, and compliance.
Context you provide
- {{project}}: The specific project or application.
- {{environment-types}}: The types of environments needed (e.g., dev, test, prod).
- {{tools}}: The tools or platforms for provisioning (e.g., Terraform, CloudFormation, Ansible).
- {{compliance}}: Any compliance or best-practice requirements.
Instructions
- If any inputs are missing, ask for them before starting.
- Design a provisioning script or configuration that creates environments consistently.
- Include steps for configuration, security (e.g., IAM roles, network policies), and validation.
- Recommend a strategy for versioning environments and managing changes.
- Provide a brief explanation of how the solution works and any trade-offs.
Output format Provide the script or configuration in a code block, followed by a summary of the approach and versioning strategy. Keep the summary under 300 words.
Guardrails Do not assume specific cloud providers or tools; ask if not provided. Ensure scripts are idempotent where possible. Stay within provisioning scope.
Example Project: microservices backend; environment types: dev, staging, prod; tools: Terraform, AWS; compliance: SOC2.
Follow-up prompts
- How can I make this script idempotent?
- What are best practices for securing these environments?
- Can you suggest a way to test provisioning scripts?