Giter VIP home page Giter VIP logo

chef-aws-inspector's Introduction

aws-inspector

Install and manage AWS Inspector agent.

Usage

Add the recipe to the node or the role files where you want AWS inspector installed. If you want to remove AWS-inspector from a particular node, set inspector.enabled attribute to false in the node file and it will be removed.

```
{
    "name": "aws-inspector.test",
    "chef_environment": "testing",
    "run_list": [
        "recipe[aws-inspector]"
    ],
    "normal": {
        "inspector": {
            "enabled": true
        }
    }
    ...
}
```

Supported Operating Systems

  • Debian Jessie
  • Ubuntu
  • CentOS 7
  • Amazon Linux
  • Microsoft Windows

Depends

  • apt
  • yum

Contributions

Quality Checks

Foodcritic:

  • All foodcritic recommendations followed except that I use symbols rather than strings to access node attributes (FC001)

    $ sudo gem install foodcritic
    $ foodcritic <path_to_recipe>
    

Kitchen:

  • Use Kitchen to test the cookbook against a real system. Preferably an instance machine with Ubuntu or CentOS. Note that in kitchen.yml, it is necessary to edit aws_ssh_key_id and ssh_key to point to an SSH key pair in your account.

    $ bundle install
    $ kitchen test
    # =======
    $ sudo gem install test-kitchen kitchen-vagrant
    $ kitchen init
    $ kitchen diagnose --all
    
  • Running converge

    $ kitchen converge default-ubuntu-1404
    
  • I use zsh inplace of bash. I had to do this to make kitchen work:

    $ eval "$(chef shell-init zsh)"
    

TODO: Unit tests using RSpec and ChefSpec

License

Licensed under MIT license. License text available in LICENSE.txt

While the cookbook itself is licensed under MIT, the AWS installer script, the AWS inspector agent binary and files are licensed under other licenses which may be more restrictive than MIT including GPLv2, Apache, PCRE2 and BSD licenses. Please see the following file post installation for the license text pertaining to AWS artefacts.

/opt/aws/awsagent/LICENSE

chef-aws-inspector's People

Contributors

eternaltyro avatar kasthuricards avatar majormoses avatar

Watchers

 avatar

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.