A kitchen-terraform based example of building and validating AWS security settings
You will need to ensure the needed ruby gems are installed:
bundle install
to installed the needed gems
You will need to set the following env_vars for this to work.
- AWS_SUBNET_ID
- AWS_SSH_KEY_ID
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- TF_VAR_aws_secret_key
- AWS_DEFAULT_INSTANCE_TYPE
- AWS_SUBNET_ID
- AWS_KEY_NAME
- AWS_DEFAULT_REGION
- AWS_AMI_ID
- AWS_SG_ID
bundle exec kitchen create aws-demo-baseline-ubuntu
bundle exec kitchen converge aws-demo-baseline-ubuntu
bundle exec kitchen verify aws-demo-baseline-ubuntu
bundle exec kitchen destroy aws-demo-baseline-ubuntu
or
bundle exec kitchen test aws-demo-baseline-ubuntu --destroy=always
- see: https://newcontext-oss.github.io/kitchen-terraform/tutorials/amazon_provider_ec2.html
- see: https://github.com/chef/inspec-aws
This repo contains a sub-module(s) so remember to use a :
Initial
git clone https://github.com/aaronlippold/aws-demo-hardening.git
Alternatively, to include submodules
git clone https://github.com/aaronlippold/aws-demo-hardening.git --recursive
Updates
git pull
Update all submodulesgit submodule foreach git pull origin master
© 2018 The MITRE Corporation.
Approved for Public Release; Distribution Unlimited. Case Number 18-3678.
MITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.
This software was produced for the U. S. Government under Contract Number HHSM-500-2012-00008I, and is subject to Federal Acquisition Regulation Clause 52.227-14, Rights in Data-General.
No other use other than that granted to the U. S. Government, or to those acting on behalf of the U. S. Government under that Clause is authorized without the express written permission of The MITRE Corporation.
For further information, please contact The MITRE Corporation, Contracts Management Office, 7515 Colshire Drive, McLean, VA 22102-7539, (703) 983-6000.