Automating Cloud Security with Policy as Code: A Case Study on AWS S3 Buckets
As cloud adoption grows and threats evolve, enforcing consistent and scalable security policies is increasingly challenging. Policy as Code (PaC) ad dresses this by enabling the definition, management, and automation of security policies through code. This paper explores PaC’s role in automating cloud security, with a focus on AWS environments. It high lights how integrating PaC into DevSecOps pipelines reduces misconfigurations, enhances transparency, and supports real-time compliance. Using a case study of AWS S3 buckets—often mis configured in public and government sectors—this research demonstrates how tools like AWS Cloud Formation Guard, Open Policy Agent (OPA), and CI/CD pipelines can enforce policies for secure and compliant configurations. These include checks for public access, encryption, and role-based access. The paper proposes a practical framework for scalable, testable, and auditable cloud governance using Policy as Code.
Authors
- Katlyn Cox
- Farzad Moazzam
Publication Details
- Journal
- UA Campus Repository (The University of Arizona)
- Published
- 2025-10-01
- Primary Topic
- Cloud Data Security Solutions
- Type
- article
- Field-Weighted Citation Impact
- 0.00