terraform 初始化
根据provider选择相应的插件进行下载
https://releases.hashicorp.com/
AWS 初始化
➜ aws pwd
/opt/terraform/plugins/aws
➜ aws ls
terraform-provider-aws_2.70.0_darwin_amd64.zip terraform-provider-aws_v2.70.0_x4
# 初始化
➜ aws terraform init -plugin-dir=/opt/terraform/plugins/aws
阿里云初始化
➜ ali pwd
/opt/terraform/plugins/ali
➜ ali ls
terraform-provider-alicloud_1.115.1_darwin_amd64.zip terraform-provider-alicloud_v1.115.1
# 初始化
ali terraform init -plugin-dir=/opt/terraform/plugins/ali
无插件报错信息
通过此链接下载相关插件
https://releases.hashicorp.com/terraform-provider-aws/2.70.0/
根据相应的系统选择插件
解压下载的插件