How to use Terraform in a cloud agnostic way

前端 未结 3 1104

I have seen many examples on how to use Terraform to launch AWS resources. I have also seen many claims that Terraform is cloud agnostic.

What I have not seen is an

3条回答
  •  不知归路
    2020-12-06 05:58

    You cannot do that.

    Terraform can be used to create resources in multiple cloud providers in a single terraform apply command.

    But you will need separate resources config for different cloud providers.

    For example you can create a terraform config file and declare aws_instance and azurerm_virtual_machine resources to create resources in both aws and azure.

提交回复
热议问题