小编svb*_*ask的帖子

Terraform cloud : Import existing resource

I am using terraform cloud to manage the state of the infrastructure provisioned in AWS.

I am trying to use terraform import to import an existing resource that is currently not managed by terraform.

I understand terraform import is a local only command. I have set up a workspace reference as follows:

terraform {
  required_version = "~> 0.12.0"

  backend "remote" {
    hostname = "app.terraform.io"
    organization = "foo"

    workspaces {
      name = "bar"
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

The AWS credentials are configured …

terraform terraform-provider-aws terraform-cloud

5
推荐指数
1
解决办法
2932
查看次数