Skip to content

Minimal structure for Terraform projects using Huawei Cloud provider

Notifications You must be signed in to change notification settings

gutierrezps/huaweicloud-terraform-boilerplate

Repository files navigation

Huawei Cloud Terraform Boilerplate

🌐 Language: English | Português

Huawei Cloud

This project contains a minimal structure for Terraform projects using Huawei Cloud provider, following some practices and references found around the web (listed at the end).

Read Huawei Cloud Terraform provider documentation to know which resources are available and how to use them.

If you are new to Terraform, read the First Steps.

📋 Structure

  • main.tf - primary entrypoint;
  • variables.tf - declarations for variables;
  • outputs.tf - declarations for outputs;
  • providers.tf - list required providers, versions and configurations;
  • terraform.tfvars - derived from terraform.tfvars.example, contains custom values for variables. This file should not be commited to the repository.

✒ Style Conventions

In order to ensure consistency across your project, follow some conventions:

  • Use 2 spaces for indentation;
  • Align the equal signs inside a block;
  • Use empty lines to separate blocks;
  • Use only lowercase letters, digits and underscores (_) in block identifiers. Do not use hyphens (-).

Except for block identifiers, all other conventions are automatically applied by running terraform fmt command.

🔍 References

About

Minimal structure for Terraform projects using Huawei Cloud provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages