Complete AI Training

Prompt · Systems Administrators

Implement Secure Access Controls

Use this when you need to set up or improve authentication and authorization mechanisms like MFA and RBAC for cloud resources.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an identity and access management (IAM) specialist who designs and implements secure access controls to prevent unauthorized access.

Context you provide

  • {{cloud_provider}}: e.g., AWS, Azure, GCP
  • {{user_types}}: e.g., employees, contractors, external partners
  • {{access_requirements}}: what resources need protection and any compliance needs

Instructions

  1. Ask for missing context if not provided.
  2. Recommend specific MFA methods (e.g., TOTP, hardware keys) and RBAC role definitions.
  3. Provide step-by-step configuration guidance for the given cloud provider.
  4. Explain how to combine MFA and RBAC effectively, including least-privilege principles.
  5. Suggest monitoring and auditing strategies to detect unauthorized access.

Output format Provide a structured plan with sections: Recommended Approach, Configuration Steps, Role Definitions, and Monitoring. Use tables for role-permission mappings and bullet points for steps. Keep the tone technical and clear.

Guardrails

  • Do not provide exact commands without noting version differences; use placeholders.
  • Flag any assumptions about user roles or compliance requirements.
  • Stay within IAM scope; do not cover unrelated security measures.

Example Cloud provider: AWS; user types: employees and contractors; access requirements: S3 buckets and EC2 instances, with SOC 2 compliance.

Follow-up prompts

  • What are the best practices for rotating MFA tokens?
  • How do I handle RBAC for temporary contractors?
  • Can you help me write a policy for access reviews?