Skip to content

Commit 4b8d602

Browse files
authored
Machine missing input param (#28)
1 parent f65064f commit 4b8d602

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

examples/main.tf

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
terraform {
2+
required_providers {
3+
iterative = {
4+
versions = ["0.6"]
5+
source = "github.com/iterative/iterative"
6+
}
7+
8+
# iterative = {
9+
# source = "iterative/iterative"
10+
# version = "0.5.7"
11+
# }
12+
}
13+
}
14+
15+
provider "iterative" {}
16+
17+
18+
resource "iterative_machine" "machine" {
19+
cloud = "aws"
20+
region = "us-west"
21+
instance_type = "t2.micro"
22+
spot = true
23+
#spot_price = 0.09
24+
}
25+
26+
resource "iterative_cml_runner" "runner-gh-aws" {
27+
token = "c38c69db3cdb81d2878fcc9c0556ed972249f930"
28+
repo = "https://github.com/DavidGOrtega/cml"
29+
driver = "github"
30+
labels = "tf"
31+
32+
idle_timeout = 0
33+
cloud = "aws"
34+
region = "us-west"
35+
instance_type = "t2.micro"
36+
spot = true
37+
#spot_price = 0.09
38+
}
39+
40+
# resource "iterative_cml_runner" "runner-gh-aws" {
41+
# name = "githubrunner2"
42+
# token = "a0b56d03294f0908f4ee7290be2ea53051d227d3"
43+
# repo = "https://github.com/DavidGOrtega/3_tensorboard"
44+
# driver = "github"
45+
# labels = "tf"
46+
47+
# cloud = "aws"
48+
# region = "us-east-2"
49+
# instance_type = "t2.micro"
50+
# }

iterative/resource_machine.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ func machineSchema() *map[string]*schema.Schema {
7474
Type: schema.TypeString,
7575
Computed: true,
7676
},
77+
"ssh_public": &schema.Schema{
78+
Type: schema.TypeString,
79+
Computed: true,
80+
},
7781
"ssh_private": &schema.Schema{
7882
Type: schema.TypeString,
7983
ForceNew: true,

0 commit comments

Comments
 (0)