main.tf 主要配置module block module"users"{ source ="github.com/rongfengliang/terraform-module-demo/modules/users"username ="dddddemo"consul_host ="http://127.0.0.1:8500"} resource"local_file""foo"{ content ="${module.users.exec_shell}"filename ="${path.module}/init.sh"} init.tpl 模板...
main.tf 主要配置module block module "users" { source = "github.com/rongfengliang/terraform-module-demo/modules/users" username = "dddddemo" consul_host ="http://127.0.0.1:8500" } resource "local_file" "foo" { content = "${module.users.exec_shell}" filename = "${path.module}/init.s...
Open source Terraform module registry with UI, optional Git integration and deep analysis pythonterraformterraform-modulesterraform-registry UpdatedSep 5, 2024 Python Terraform module to build Docker image with Jenkins, save it to an ECR repo, and deploy to Elastic Beanstalk running Docker stack ...
Terraform 提供了Module 的注册地址,将自己的module上传到Github,并注册为一个Terraform Module后,即可将远端的Module应用到我们自己的模板中。 利用开源 module,我们可对上文中的模板进行完善: // VPC module module "vpc" { source = "alibaba/vpc/alicloud" ... } // Web Tier module module "web" { sou...
source = "hashicorp/consul/aws" version = "0.1.0" } GitHub地址: module "pkslow" { source = "github.com/larrydpk/pkslow" } 如果是用SSH,如下: module "pkslow" { source = "git@github.com:larrydpk/pkslow.git" } 压缩包: module "vpc" { ...
Learn about open source at Oracle Join Oracle's developer community on Slack All Oracle GitHub organizations Oracle– our primary GitHub organization Fn Project– the container native, cloud agnostic serverless platform GraalVM- projects related to GraalVM, a high-performance JDK with native compilation...
source 是 module 中的必选参数,用于指向包含模块配置文件的源路径。Terraform 支持使用以下源路径: 本地路径 本地路径必须以 "./" 或 "../" 开头,如 "./child","../parent"等。 GitHub Terraform将以下路径解析为GitHub仓库: # 使用Https协议克隆module "myvpc" { ...
module"vpc"{ source ="git::github.com/kubevela-contrib/terraform-modules.git//alibaba/vswitch"zone_id = var.zone_id } # 应用配置 resource"alicloud_sae_application""manual"{ app_name = var.app_name app_description = var.app_description ...
client_certificate = base64decode(module.tencentcloud_tke.client_certificate) } main.tf 文件示例代码如下: # 引用module module "tencentcloud_tke" { source = "github.com/terraform-tencentcloud-modules/terraform-tencentcloud-tke" #available_zone = "ap-guangzhou-3" # Available zone must belongs to the...
# main.tf module "example_module" { source = "./modules/example_module" instance_type = "t2.micro" ami = "ami-0c55b159cbfafe1f0" } # modules/example_module/variables.tf variable "instance_type" {} variable "ami" {} # modules/example_module/main.tf resource "aws_instance" "example...