Thanks to visit codestin.com
Credit goes to github.com

Skip to content

roybhaskar9/terraform

 
 

Repository files navigation

terraform

terraform plan

terraform apply

terraform output ip

#If Chef needs to be called within terraform

resource "aws_instance" "web" {

...

provisioner "chef"  {

    environment = "_default"
    
    run_list = ["cookbook::recipe"]
    
    node_name = "webserver1"
    
    server_url = "https://chef.company.com/organizations/org1"
    
    validation_client_name = "chef-validator"
    
    validation_key = "${file("../chef-validator.pem")}"
    
    version = "12.4.1"
    
}

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 85.9%
  • Shell 14.1%