tencent cloud

Tencent Infrastructure Automation for Terraform

Product Introduction
Overview
Strengths
Scenarios
Purchase Guide
Getting Started
Use Terraform in Local PC
User Guide
Configuration Guide
Syntax Guide
Resource List
Combination with DevOps
Code Management
Continuous Integration and Deployment
Use Cases
Deploying Cloud Native Service
Cross-Region Replication of Resources
Case Studies
Convertlab's IaC Practices Based on Tencent Cloud for Terraform
Provider Contributor Guide
Welcome
Contribute
Developer Reference
FAQs
Signature Error
Init Acceleration
Enabling Log Tracking
Managing Existing Resource
State Lock

Resource

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2024-12-02 16:01:33
Resources are the most important element in the Terraform language. A resource is defined using a resource block, which describes one or more infrastructure objects, such as VPC and VM.

Resource syntax

A resource is defined using a resource block, which contains the resource keyword, resource type, resource name, and resource block body as shown below:
resource "tencentcloud_vpc" "foo" {
name = "ci-temp-test-updated"
cidr_block = "10.0.0.0/16"
dns_servers = ["119.29.29.29", "8.8.8.8"]
is_multicast = false

tags = {
"test" = "test"
}
}

Resource reference

A resource attribute is referenced in the syntax format of <Resource type>.<Name>.<Attribute> as shown below:
tencentcloud_vpc.foo.resource # ci-temp-test-updated


Ajuda e Suporte

Esta página foi útil?

comentários