Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
261 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _contribute: | ||
|
||
Contributing to Cloud Custodian | ||
=============================== | ||
|
||
If you're interested in contributing to Cloud Custodian development, welcome! Please take a few minutes to familiarize yourself with the project and our expectations. | ||
|
||
Developer install | ||
----------------- | ||
|
||
First, you'll want to perform a :ref:`developer install <developer>` and familiarize yourself with the tests. |
6 changes: 4 additions & 2 deletions
6
docs/source/quickstart/developer.rst → docs/source/developer.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
.. _glossary: | ||
|
||
Basic concepts and terms | ||
======================== | ||
|
||
Cloud Custodian works with the following basic concepts, terms, and relationships between them. | ||
|
||
Policy - :py:class:`c7n.policy` | ||
Defined in yaml, specifies a set of filters and actions to take | ||
on a given AWS resource type. | ||
|
||
Resource - :py:class:`c7n.manager.ResourceManager` | ||
Provides for retrieval of a resources of a given type (typically via AWS API) | ||
and defines the vocabulary of filters and actions that can be used on those | ||
resource (e.g., ASG, S3, EC2, ELBs, etc). | ||
|
||
Mode | ||
Provides for retrieval of a resources of a given type (typically via AWS API) and defines the vocabulary of filters and actions that can be used on those resource. Example resource types are Auto Scaling Groups, S3 buckets, EC2 instances, Elastic Load Balancers, etc). | ||
|
||
.. code-block:: yaml | ||
mode: | ||
type: cloudtrail | ||
events: | ||
- RunInstances | ||
Filters - :py:class:`c7n.filters` | ||
Given a set of resources, how we filter to the subset that we're | ||
interested in operating on. The :ref:`filtering language<filters>` has some | ||
default behaviors across resource types like value filtering with JMESPath | ||
expressions against the JSON representation of a resource, as well as | ||
specific filters for particular resources types (instance age, | ||
tag count, etc). | ||
|
||
.. code-block:: yaml | ||
filters: | ||
- "tag:aws:autoscaling:groupName": absent | ||
- type: ebs | ||
key: Encrypted | ||
value: false | ||
skip-devices: | ||
- "/dev/sda1" | ||
- "/dev/xvda" | ||
- type: event | ||
key: "detail.userIdentity.sessionContext.sessionIssuer.userName" | ||
value: "SuperUser" | ||
op: ne | ||
Actions - :py:class:`c7n.actions` | ||
A verb to use on a given resource, i.e. stop, start, suspend, | ||
delete, encrypt, etc. | ||
|
||
.. code-block:: yaml | ||
actions: | ||
- type: tag | ||
key: c7n_status | ||
value: "Unencrypted EBS! Please recreate with Encryption)" | ||
- type: terminate | ||
force: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,7 @@ Overview | |
.. toctree:: | ||
|
||
capabilities | ||
glossary | ||
roadmap | ||
comparisons | ||
deployment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.