Code Monkey home page Code Monkey logo

config-excess-access-exorcism's People

Contributors

mbarneyjr avatar modmac avatar ryansb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

config-excess-access-exorcism's Issues

Error deploying when bucket does not exist

Hello,

First of all Strong Work on this. It really fits my needs.

When attempting to deploy with

rdk -r us-east-1 deploy IAM_ALLOWS_UNUSED_SERVICES

I got this:

Running deploy!
Found Custom Rule.
Zipping IAM_ALLOWS_UNUSED_SERVICES
Uploading IAM_ALLOWS_UNUSED_SERVICES
Traceback (most recent call last):
File "/usr/local/bin/rdk", line 20, in
return_val = my_rdk.process_command()
File "/usr/local/lib/python2.7/dist-packages/rdk/rdk.py", line 227, in process_command
exit_code = method_to_call()
File "/usr/local/lib/python2.7/dist-packages/rdk/rdk.py", line 904, in deploy
s3_dst = self.__upload_function_code(rule_name, rule_params, account_id, my_session, code_bucket_name)
File "/usr/local/lib/python2.7/dist-packages/rdk/rdk.py", line 2029, in __upload_function_code
my_s3.meta.client.upload_file(s3_src, code_bucket_name, s3_dst)
File "/usr/local/lib/python2.7/dist-packages/boto3/s3/inject.py", line 131, in upload_file
extra_args=ExtraArgs, callback=Callback)
File "/usr/local/lib/python2.7/dist-packages/boto3/s3/transfer.py", line 287, in upload_file
filename, '/'.join([bucket, key]), e))

boto3.exceptions.S3UploadFailedError: Failed to upload /home/me/Gits/config-excess-access-exorcism/IAM_ALLOWS_UNUSED_SERVICES/IAM_ALLOWS_UNUSED_SERVICES.zip to config-rule-code-bucket-xxxxxxxxxxxx-us-east-2/IAM_ALLOWS_UNUSED_SERVICES/IAM_ALLOWS_UNUSED_SERVICES.zip: An error occurred (NoSuchBucket) when calling the CreateMultipartUpload operation: The specified bucket does not exist

After manually creating the bucket the deploy works. The role I assumed to run the command has permissions to create a bucket in the account

Missing 'redo' module

After deploying, the Lambda generated errors. I'm sorry I did not save any of the errors but they all refereed to the module 'redo' not being present.

I reran the following command appending it with redo:

pip install -t IAM_ALLOWS_UNUSED_SERVICES/ boto3 pytz redo

When I redeployed it worked.

IAM tags to allow a role, user or group to be ignored

This is really strong work. I have a suggestion to make the results cleaner. I'd like to have the ability to tag an IAM resource so that it is not evaluated for compliance. There are resources that we KNOW will be non-compliant and that we don't want to see in the list.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.