View cidr_refactor.diff
diff --git a/c7n/resources/vpc.py b/c7n/resources/vpc.py
index bfc3793..4139f42 100644
--- a/c7n/resources/vpc.py
+++ b/c7n/resources/vpc.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+
from botocore.exceptions import ClientError
View network-eni.yml
policies:
- resource: eni
name: all-nics
- resource: eni
description: Amazon ELB
name: elb-nics
filters:
- RequesterManaged: true
View docker-volume-plugins.md

Docker Volumes

Examining opensource docker volumes for aws ebs support.

Key requirements in this case are simplicity, support for aws ebs volumes, with kms, snapshots, and use of instance roles for credentails.

Aka secure, encrypted, and with backups.

Ideally with some notion of zone awareness and distinguishing that on container move.

View gist:c386867f209ac1b55d33b8817c9b3f91
(custodian)60f81dc15d88:c7n ylv522$ git diff tags.py
diff --git a/c7n/tags.py b/c7n/tags.py
index a24e1d6..e83fa32 100644
--- a/c7n/tags.py
+++ b/c7n/tags.py
@@ -289,11 +289,15 @@ class Tag(Action, ResourceTag):
batch_size = self.data.get('batch_size', self.batch_size)
+ id_key = self.manager.get_model().id
View metrics.rst
Metrics Filters
---------------
Supports cloud watch metrics filters on resources.
Docs on cloud watch metrics
View drone.md

Hosted Drone with commercial subscription

Automatic Discovery.. I don't have organization access to accept the integration, ie. No organization access granted, access requested.

Using the manual add with capitalone/cloud-custodian

Status Code:500 Internal Server Error
Not Found
View gist:47f3083716bfa690ce3a
# Query values over instance population for a given tag key.
jp -f "ec2-instances.json" "[].Tags[?Key == 'downtime'].Value[]"
View stsassume.py
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session
from boto3 import Session
def assumed_session(role_arn, session_name, session=None):
"""STS Role assume a boto3.Session
With automatic credential renewal.
View lambda-bug.sh
#!/bin/bash
set -e
FNAME="maid-dev-test-11"
echo "Create Project Directory"
mkdir -p project-dir/
echo "Create Lambda Function"