Terraforge
  • Welcome to Terraforge!
  • Features
  • How it works
  • HashiCorp Meetup Slides
  • Demos & Tutorials
    • First Steps
      • 1 - Tutorial Environment
      • 2 - Terraform Stack (local_file)
        • 2.1 - Source Code Editor
        • 2.2 - Terraform validate & plan
        • 2.3 - README
      • 3 - Pipeline Apply
    • AWS Stack (simple)
      • 1 - Terraform user
      • 2 - Sandbox Environment
      • 3 - Terraform Stack (ECR registry)
        • 3.1 - Terraform Code
        • 3.2 Terraform validate & plan
      • 4 - Pipeline Apply
      • 5 - Pipeline Destroy
Powered by GitBook
On this page

Was this helpful?

  1. Demos & Tutorials
  2. First Steps
  3. 2 - Terraform Stack (local_file)

2.1 - Source Code Editor

Goal: Create a Terraform resource

Previous2 - Terraform Stack (local_file)Next2.2 - Terraform validate & plan

Last updated 5 years ago

Was this helpful?

Steps

  1. Select main.tf in the file tree and add the following Terraform code: resource "local_file" "txt" { filename = "tutorial.txt" content = "Hello world!" }

  2. Click SAVE

Your Terraform (HCL) source code is validated as you type!

On the right side you can switch between the CODE view, FORM builder or official Terraform DOCS