Code Monkey home page Code Monkey logo

terraform-chefconf-2020's Introduction

ChefConf 2020 Chef Tools & Terraform: Demo

I've taken the Basic Two-Tier AWS Architecture example from https://github.com/terraform-providers/terraform-provider-aws/tree/master/examples/two-tier and added Chef Provisioners to it for demonstration purposes. It's fairly trivial, you probably wouldn't really need to use Chef for an example like this.

Changes

removed all the deprecated syntax warnings from the example code replace t2.micro with t3.medium because it was unsupported in my AZ

Chef

cd chef
chef install chefconf-2020.rb
chef push demo chefconf-2020.lock.json
cd ..
ssh-add ~/.ssh/id_rsa
okta_aws

Scripts

Chef Provisioner Demo

terraform --version
terraform init
terraform apply -auto-approve

Visit the ELB webpage

Chef Provider Demo

cd chef
terraform init
knife environment list
knife role list
terraform apply -auto-approve -parallelism=1
knife environment list
knife role show ccrole
knife data bag show example-data-bag example-item
terraform destroy -auto-approve
knife environment list
knife role list

Inspec-Iggy Demo

okta_aws
inspec version
inspec iggy version
inspec terraform generate --tfstate terraform.tfstate --name chefconf-profile --title 'ChefConf Demo' --platform aws --resourcepath ../inspec-aws

look at the profile metadata.rb inspec.yml controls/*.rb

inspec exec chefconf-profile -t aws://ap-southeast-2
cat inspec.json
inspec exec chefconf-profile -t aws://ap-southeast-2 --config inspec.json

look at Automate

terraform destroy -auto-approve &
inspec exec chefconf-profile -t aws://ap-southeast-2 --config inspec.json

terraform-chefconf-2020's People

Contributors

mattray avatar

Watchers

James Cloos avatar  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.