<ul data-eligibleForWebStory="false">Delving into implementing guardrails using Spacelift's policy engine for Terraform automation in AWS.Initial struggles with writing Rego policies from scratch, enforcing restrictions on EC2 instance types.Challenges faced included syntax errors, logical mismatches, and the importance of clear policy messages.Successful implementation of policies led to controlled infrastructure scaling and valuable learning experiences.Lessons learned: Rego's power, importance of clear policy messaging, and practicality of Spacelift policies.