Code Monkey home page Code Monkey logo

learn-terraform-udemy's Introduction

REPOSITORY BELAJAR TERRAFORM DI UDEMY

Course Link: https://www.udemy.com/share/1020rO3@noLhYsny0TyFeWElnJ3HYOjyvapKr9U4Z8innm2oRKVrJMHDrCpMW5csN8F0gJdp/

Installation

8. Understanding Terraform HCL

Variables

  • bikin folder khusus utk terraform, kasih 1 script misal "main.tf"

  • contoh konten untuk terraform v1.x:

    variable "myvar" {
      type = string
      default = "hello terraform"
    }
    

    note: di sini type nya gak dikasih string kayak di udemy, karena di terrafrom versi baru ada notif:

    ╷
    │ Error: Invalid quoted type constraints
    │
    │   on main.tf line 2, in variable "myvar":
    │    2:   type = "string"
    │
    │ Terraform 0.11 and earlier required type constraints to be given in quotes, but
    │ that form is now deprecated and will be removed in a future version of
    │ Terraform. Remove the quotes around "string".
    
  • variabel yg kita bikin di main.tf ini bisa diakses dari command terraform console -> RPL nya terraform

    • cara nyebut var dari terraform console: var.myvar atau "${var.myvar}"
  • tipe variabel yang bisa dipakai:

    • string
    • map of something..
    • list
    • boolean
  • terraform console gak autodetect perubahan file2 .tf . harus di restart manual

  • variabel list bisa detect manual tipe data isi list nya

  • ada fungsi2 kayak slice(), dll

resource

  • need to specify provider

learn-terraform-udemy's People

Contributors

azophy 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.