Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
    • Helm Chart
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Spinnaker
    • Jenkins
  • Coding
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
    • Golang
    • Laravel
    • Jquery & JavaScript
    • Git
    • Selenium
  • Log & Monitor
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
  • Toggle search form

[Terraform] – Terraform Beginner – Lesson 7: Terraform Modules

Posted on May 5, 2022May 11, 2022 By nim No Comments on [Terraform] – Terraform Beginner – Lesson 7: Terraform Modules

Contents

  • 1) What are modules?
  • 2) Creating and Using a Module
  • 3) Using Modules from the Registry
  • 4) Module from Github
  • 5) Use the output from the module

1) What are modules?

Rủi ro tiềm ẩn qua nhiều file config.

2) Creating and Using a Module

bạn có thể thấy variable “app_region” và “ami” thì chúng ta chỉ khai báo type của variable
Điều trên nghĩ là ở chidren models chúng ta sẽ cần cung cấp các giá trị trên.
ở file main.tf thì chúng ta khai báo module
Giờ bạn init bên folder có file module

3) Using Modules from the Registry

Ngoài việc tự viết các module private thì chúng ra cũng có registry và ở đó thì chứa các module public.

4) Module from Github

Mình mới thấy lấy module từ github nữa -> để khi nào thử
tham khảo link này:
https://github.com/wardviaene/terraform-course/blob/master/demo-6/modules.tf

5) Use the output from the module

AWS - Amazon Web Service, Terraform

Post navigation

Previous Post: [Terraform] – Terraform Beginner – Lesson 6: Terraform Import, Tainting Resources, and Debugging
Next Post: [Bootstrap] Using toasts stead of alerts in Javascript

More Related Articles

[Terraform] Lesson 3: GCP Networking with Terraform GCP - Google Cloud
[AWS] – Terraform Beginner – Lesson 1: Create a Free Account of AWS AWS - Amazon Web Service
[Terraform] Online Lab Terraform (FREE). Terraform
[Terraform/Init] Starting to learn Terraform easily. Terraform
[Terraform] Error: Error acquiring the state lock AWS - Amazon Web Service
[Terraform] Lesson 6: Google Cloud Function with Terraform GCP - Google Cloud

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • Protected: My Assignment  June 24, 2022
  • [Spinnaker] Spinnaker writes too many logs – Reduce spinnaker log level June 22, 2022
  • [Jenkins] Jobs will be created automatically by Jenkins Job Builder June 20, 2022
  • [Postgresql] Install postgresql client and trying a few command postgresql. June 20, 2022
  • [Mount/Nextcloud] How do you mount a hard disk that was used windows into Linux. June 19, 2022

Archives

  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Jenkins
    • Spinnaker
  • Coding
    • Git
    • Golang
    • Jquery & JavaScript
    • Laravel
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kubernetes
      • Ingress
    • Longhorn – Storage
    • Vault
    • VictoriaMetrics
  • Log & Monitor
    • ELK
      • Kibana
      • Logstash
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2022 NimTechnology.