首用terraform

type
status
date
slug
summary
tags
category
icon
password
网址
😀
第一次用tf会觉得别扭,但是语法理解后会发现是有趣的
 

📝 内容:

1.terraform init ---- 初始化加载模块,需要至少一个xxx.tf文件
2.terraform apply ---- 在init所在目录执行;去掉tf文件apply的时候会destory掉tf中不存在的资源,需要注意
3.terraform state pull ----查看当前资源
4.terraform destroy -target=alicloud_vswitch.main-1 删除资源并指定具体删除的资源类型和名字
tf文件解读:
var是变量
data是现有的资源或数据以供其他资源块在配置中使用
resource是实际需要创建的实例资源
notion image
notion image
notion image

🔗引用文章:

💡
你会用了吗😕
使用cloudflare自建docker加速器使用wordpress搭建个人博客
Loading...
目录