Skip to content

Instantly share code, notes, and snippets.

View kapilt's full-sized avatar
🌩️
🌩 📦 🔭 📻 🚀 🛰

Kapil Thangavelu kapilt

🌩️
🌩 📦 🔭 📻 🚀 🛰
View GitHub Profile
regions:
- us-east-1
- us-east-2
- us-west-2
- global
account-blocklist:
- "999999999999" # production
accounts:
diff --git a/tools/c7n_gcp/c7n_gcp/mu.py b/tools/c7n_gcp/c7n_gcp/mu.py
index 8006a6b2a..dcef9fe80 100644
--- a/tools/c7n_gcp/c7n_gcp/mu.py
+++ b/tools/c7n_gcp/c7n_gcp/mu.py
@@ -481,7 +481,7 @@ class PubSubSource(EventSource):
client.execute_command('delete', {'topic': self.get_topic_param()})
-class SCCSubscriber(EventSource):
+class SecurityCenterSubscriber(EventSource):
Project Name: Cloud Native Computing Foundation (CNCF)
Project Entity: Cloud Native Computing Foundation, a Linux Foundation Project If emailing signed PDF, send to: dan@linuxfoundation.org
Software Grant and Corporate Contributor License Agreement (“Agreement”) v2.0
Thank you for your interest in the project specified above (the “Project”). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Project must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Project and its users; it does not change your rights to use your own Contributions for any other purpose.
This version of the Agreement allows an entity (the “Corporation”) to submit Contributions to the Project, to authorize Contributions submitted by its designated employees to the Project, and to grant copyright and paten
Project Name: Cloud Native Computing Foundation (CNCF)
Project Entity: Cloud Native Computing Foundation, a Linux Foundation Project If emailing signed PDF, send to: dan@linuxfoundation.org
Individual Contributor License Agreement (“Agreement”) v2.0
Thank you for your interest in the project specified above (the “Project”). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Project must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Project and its users; it does not change your rights to use your own Contributions for any other purpose.
If you have not already done so, please complete and sign this Agreement using the electronic signature portal made available to you by the Project or its third-party service providers, or email a PDF of the signed agreement to the email
@kapilt
kapilt / out.txt
Created August 25, 2020 09:30
pypy grpc install failures
Collecting grpcio
Using cached grpcio-1.31.0.tar.gz (20.0 MB)
Requirement already satisfied: six>=1.5.2 in /home/kapilt/.pyenv/versions/pypy3.6-7.3.1/envs/c7n-pypy/site-packages (from grpcio) (1.15.0)
Installing collected packages: grpcio
Running setup.py install for grpcio: started
Running setup.py install for grpcio: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/kapilt/.pyenv/versions/pypy3.6-7.3.1/envs/c7n-pypy/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wit5hl4n/grpcio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wit5hl4n/grpcio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-k7m4argx/install-record.txt --single-version-externally-managed --compile --install-headers /home/kapilt/.pyenv/versions/pypy3.6-7.3.1/envs/c7n-pypy/include/site/python3
@kapilt
kapilt / pyproject.toml
Created March 11, 2020 10:45
c7n_org pyproject.toml
[tool.poetry]
name = "c7n_org"
version = "0.5.7"
description = "Cloud Custodian - Parallel Execution"
readme = "README.md"
homepage = "https://cloudcustodian.io"
documentation = "https://cloudcustodian.io/docs/tools/c7n-org.html"
repository = "https://github.com/cloud-custodian/cloud-custodian"
authors = ["Cloud Custodian Project"]
license = "Apache-2.0"
diff --git a/README.md b/README.md
index f4cae92..4f70eef 100644
--- a/README.md
+++ b/README.md
@@ -20,13 +20,13 @@ This package makes it easy to write your AWS Lambda Functions in Dart.
[Dart](https://dart.dev/) is a unsupported [AWS Lambda](https://aws.amazon.com/lambda/) runtime. However, you can leverage a [custom runtime](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html) to use the [Dart](https://dart.dev/) programming language.
-There are two ways in which you could use [Dart](https://dart.dev/). Youd could bundle the Dart Runtime in a [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) and use JIT compilation to run a Dart program. The other is to compile a shipable binary of the Dart program.
+There are two ways in which you could use [Dart](https://dart.dev/). You could bundle the Dart Runtime in a [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) and use JIT compilation within the lambda execution to run a
@kapilt
kapilt / pypoetry.yml
Created February 15, 2020 14:36
poetry build error with develop path
[tool.poetry]
name = "c7n_kube"
version = "0.1.1"
description = "Cloud Custodian - Kubernetes Provider"
authors = ["Your Name <you@example.com>"]
license = "Apache-2.0"
[tool.poetry.dependencies]
python = "^3.6"
custodian = {path = "../..", develop = true}
@kapilt
kapilt / tf-schema-gen.go
Last active January 22, 2020 13:16 — forked from harsh-98/cloudflare-generator.go
Jsonschema generator for cloudflare
package main
import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
tf "github.com/hashicorp/terraform-plugin-sdk/terraform"
aws "github.com/terraform-providers/terraform-provider-aws/aws"
"encoding/json"
"fmt"
"os"
> c7n-org run -c accounts.yml -u ec2.yml -s out -v -r all
2019-11-14 12:41:05,909: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-west-3
2019-11-14 12:41:05,909: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-north-1
2019-11-14 12:41:05,910: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-west-2
2019-11-14 12:41:05,910: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:eu-west-1
2019-11-14 12:41:05,909: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-south-1
2019-11-14 12:41:05,912: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-northeast-1
2019-11-14 12:41:05,910: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-northeast-2
2019-11-14 12:41:05,918: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:sa-east-1
2019-11-14 12:41:05,920: c7n_org:DEBUG Running policy:check-ec2 account:guard-duty region:ap-southeast-2