# \[solved\] Create cluster and provision node with terraform

**URL:** <https://forums.suse.com/t/solved-create-cluster-and-provision-node-with-terraform/19331>\
**Category:** SUSE Rancher Prime\
**Created:** [January 20, 2021, 10:54am UTC](https://forums.suse.com/t/solved-create-cluster-and-provision-node-with-terraform/19331 "2021-01-20T10:54:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jehutyy](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jehutyy](https://forums.suse.com/u/jehutyy)\
**Post date:** [January 20, 2021, 10:54am UTC](https://forums.suse.com/t/solved-create-cluster-and-provision-node-with-terraform/19331/1 "2021-01-20T10:54:23Z")

</div>

Hi everyone,

I’m trying to create a new rke (?) rancher cluster with terraform.  
Everything seems to work well, in the sense that terraform exit successfully, creating cluster but not provisionning nodes as describe in my manifest file.

here the snippet corresponding to said cluster :

```auto
resource "rancher2_cluster" "ad" {
  provider = rancher2.admin
  name = "ad"
  description = "admin cluster"
  rke_config {
    nodes {
        role = ["controlplane", "worker", "etcd"]
        address = "50.0.0.120"
        user = "root"
    }
    private_registries {
      url = "50.0.0.1:5000"
      is_default = true
    }
  }
}

```

As I understand I expect that as terraform ends its run, it should display a new cluster named “ad” with one node configured.

I confirm that from the host running terraform I’m able to ssh into 50.0.0.120 with ssh keypair added to ssh agent.

---

<div class="post-metadata">

**Author:** ![jehutyy](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jehutyy](https://forums.suse.com/u/jehutyy)\
**Post date:** [January 20, 2021, 1:48pm UTC](https://forums.suse.com/t/solved-create-cluster-and-provision-node-with-terraform/19331/2 "2021-01-20T13:48:10Z")

</div>

I got an answer, it seems that rancher2 provider do not ssh into node but expose `node_command` attribute which contain ssh command to execute on remote node.
