Initial commit: Terraform configurations for multiple cloud providers

This commit is contained in:
Ben User
2026-02-01 06:36:02 +00:00
commit 70f160b396
58 changed files with 1813 additions and 0 deletions

41
volcengine/common/main.tf Normal file
View File

@@ -0,0 +1,41 @@
# 火山引擎 Terraform 配置 - 支持多架构
# 适用于 x86_64 和 ARM64 架构
# 提供商要求
terraform {
required_providers {
volcengine = {
source = "volcengine/volcengine"
version = "0.0.186"
}
}
}
# 提供商配置
provider "volcengine" {
region = var.region
access_key = var.access_key_id
secret_key = var.secret_access_key
}
# 示例资源 - VPC
resource "volcengine_vpc" "example_vpc" {
vpc_name = var.vpc_name
cidr_block = var.cidr_block
}
# 输出信息
output "vpc_id" {
description = "VPC ID"
value = volcengine_vpc.example_vpc.id
}
output "vpc_name" {
description = "VPC Name"
value = volcengine_vpc.example_vpc.vpc_name
}
output "region" {
description = "Region"
value = var.region
}