资源资源
提供者
命令:
terraform init
terraform plan
terraform apply
terraform destroy
terraform refresh # fetches current state and updates state file
地形状态
Terraform尝试确保已部署的基础结构基于所需状态(我们在tf文件中添加的内容)而不是当前状态
提供者版本
>=1.0 greater then equal to version
~>2.0 any version in 2.x range
>=2.0,<=2.30 between
依赖锁文件
允许我们锁定提供程序的特定版本
协会
我们如何将两个资源(例如Elastic Ip)与EC2实例相关联
resource "aws_eip_associ