File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 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+ # }
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments