Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A simple Cloud Custodian policy to stop unused EC2 instances in AWS.
# cloud_custodian/demo/stop_unused_ec2.yaml
policies:
- name: stop-unused-ec2
resource: aws.ec2
filters:
- State: running
- type: value
key: "tag:Environment"
value: absent
actions:
- stopCloud Custodian is an open-source cloud governance and policy-as-code tool that enables organizations to define, enforce, and automate cloud resource policies across AWS, Azure, GCP, and other cloud providers.
Origin & Creator
Developed by Capital One in 2016, now maintained by a community under the Cloud Custodian GitHub organization.
Industrial Note
Cloud Custodian is widely adopted in highly regulated industries for automated enforcement of security, compliance, and cost management policies at scale.