Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Extract the attached zip file (see Files section).
    This will create a terraform-docker-demo-2/ folder.
  2. Go to the working directory for this project

    Code Block
    languagebash
    titleGo to the working directory for this project
    cd terraform-docker-demo-2/


  3. Initialize Terraform

    Code Block
    languagebash
    titleInitialize Terraform
    terraform init


  4. Run a Terraform plan, saving the output file

    Code Block
    languagebash
    titleRun a Terraform plan, saving the output file.
    terraform plan -out wordpress.out


  5. Run terraform-compliance to validate that the Wordpress service has an external port set to 8081

    Code Block
    languagebash
    titleRun terraform-complance to validate Wordpress external port
    terraform-compliance --features features --planfile wordpress.out


...