Member-only story

Took help from ChatGPT to write Cloud Custodian Policies

--

ChatGPT is an artificial intelligence system that can understand and respond to you in human-like language, often referred to as Large Language Model. In this story, we are going to explore how ChatGPT can help us write Cloud Custodian Policy. We are using the free version of ChatGPT. For the purpose of this story, we are assuming that the user has a basic knowledge of the cloud custodian concepts. We are going to test ChatGPT using the below three scenarios-

  1. Can it write the Cloud Custodian Policy code in YAML?
  2. Can it explain its own code?
  3. Can it provide direction on how the user can deploy this policy in his own environment?

Does ChatGPT know the Cloud Custodian?

Before we even dive into writing the cloud custodian policy, I first asked ChatGPT if he knows the cloud custodian and how would he rate himself on the knowledge of the cloud custodian.

Yes, Cloud Custodian is an open-source tool that is used for managing and 
enforcing compliance policies across public cloud platforms such as
Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP).
It provides a unified approach to policy definition, monitoring, and
remediation, allowing organizations to maintain compliance with various
regulations and standards.

Cloud Custodian is designed to automate the process of managing cloud
resources, including virtual machines, storage accounts…

--

--

Aakif Shaikh, CISSP, CEH, CHFI, CISA, GWAPT
Aakif Shaikh, CISSP, CEH, CHFI, CISA, GWAPT

Written by Aakif Shaikh, CISSP, CEH, CHFI, CISA, GWAPT

Over 18 years of experience in a wide variety of technical domains within information security including information assurance, compliance, and risk management.

Responses (1)