Link Search Menu Expand Document

modules

local_file/hello_consumer/

destroy.sh

            #!/bin/bash
../../../bin/destroy.sh
 

main.tf

            # Summary: A module consumer

# Documentation: https://www.terraform.io/docs/language/settings/index.html
terraform {
  required_version = ">= 1.0.0"
}

# Documentation: https://www.terraform.io/docs/language/modules/syntax.html
module "changeme_hello_consumer" {
  source = "../hello_module"
}
 

run.sh

            #!/bin/bash
../../../bin/apply.sh
 

local_file/hello_module/

destroy.sh

            #!/bin/bash
../../../bin/destroy.sh
 

main.tf

            # Summary: A local_file example to be used as a module

# Documentation: https://www.terraform.io/docs/language/modules/index.html
terraform {
  required_version = ">= 1.0.0"
}

# Documentation: https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file
resource "local_file" "changeme_hello_local_file" {
  content  = "Hello terraform local module!"
  filename = "hello_local.txt"
}
 

run.sh

            #!/bin/bash
../../../bin/apply.sh