davidclin / cloudcustodian-policies Goto Github PK
View Code? Open in Web Editor NEWCloud Custodian policy that logs unused security groups
License: MIT License
Cloud Custodian policy that logs unused security groups
License: MIT License
Hi. I like your diagram a lot and would love to use it in a presentation. The current image is exported on a white background. I tried using Gimp to make it transparent which worked on the background and didn't work on the text.
I had some questions too
Thank you!
Hi,
Thanks for your efforts here!
Would you be able to confirm the license for your work?
Eamonn
@davidclin, could you please share how you deal with slack webhooks. I've tried the last custodian release, but got an error when executed a mailer:
Traceback (most recent call last):
File "/root/cloud-custodian/c7n_mailer/bin/c7n-mailer", line 11, in
load_entry_point('c7n-mailer', 'console_scripts', 'c7n-mailer')()
File "/root/cloud-custodian/tools/c7n_mailer/c7n_mailer/cli.py", line 146, in main
MailerSqsQueueProcessor(mailer_config, aws_session, logger).run()
File "/root/cloud-custodian/tools/c7n_mailer/c7n_mailer/sqs_queue_processor.py", line 126, in run
self.process_sqs_message(sqs_message)
File "/root/cloud-custodian/tools/c7n_mailer/c7n_mailer/sqs_queue_processor.py", line 145, in process_sqs_message
sqs_message = json.loads(zlib.decompress(base64.b64decode(body)))
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
Not sure whether my settings are correct. Could you please share how you specify webhook in the configuration
I'm trying to pass the region name variable into the policy
- type: value
key: "Logging"
value: empty
- type: value
key: "Location.LocationConstraint"
value_from:
url: file:///.development/polices/env.json
format: json
expr: '{region}'
value: '{region}'
op: eq
value_type: swap
The variable file JSON looks like :
{
"us-east-1" : null ,
"us-west-1" : "us-west-1"
}
means for server access logging of s3 works fine with all regions bypassing the "Location.LocationConstraint" key as region name except for the region us-east-1 it should be null as shown in the above example
Any workaround this would be helpfull
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.