Skip to content

DEMO: A kitchen-terraform based example of building and validating AWS security settings

License

Notifications You must be signed in to change notification settings

mitre/demo-aws-hardening

Repository files navigation

aws-demo-hardening

A kitchen-terraform based example of building and validating AWS security settings

Setup Notes:

Install your gems

You will need to ensure the needed ruby gems are installed:

  • bundle install to installed the needed gems

Setup your Environment

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

Usage:

  1. bundle exec kitchen create aws-demo-baseline-ubuntu
  2. bundle exec kitchen converge aws-demo-baseline-ubuntu
  3. bundle exec kitchen verify aws-demo-baseline-ubuntu
  4. bundle exec kitchen destroy aws-demo-baseline-ubuntu

or

  1. bundle exec kitchen test aws-demo-baseline-ubuntu --destroy=always

Quetions:

Updates:

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 submodules
  • git submodule foreach git pull origin master

Useful Examples:

NOTICE

© 2018 The MITRE Corporation.

Approved for Public Release; Distribution Unlimited. Case Number 18-3678.

NOTICE

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.

NOTICE

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.

Releases

No releases published

Packages

No packages published