Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit fa00d8c

Browse files
author
[Partner] Alexander Sokolov
committed
docs updated
1 parent 36a940b commit fa00d8c

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

docs/resources/gcore_instance.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,14 @@ resource "gcore_instance" "instance" {
7878
type = "subnet"
7979
network_id = gcore_network.network.id
8080
subnet_id = gcore_subnet.subnet.id
81+
security_groups = ["d75db0b2-58f1-4a11-88c6-a932bb897310"]
82+
}
8183
//port_id = null
8284
//ip_address = null
8385
//fip_source = null
8486
//existing_fip_id = null
8587
}
8688
87-
88-
security_group {
89-
id = "d75db0b2-58f1-4a11-88c6-a932bb897310"
90-
name = "default"
91-
}
92-
9389
//deprecated, use metadata_map instead
9490
//metadata {
9591
// key = "some_key"
@@ -150,16 +146,13 @@ resource "gcore_instance" "v" {
150146
volume_id = gcore_volume.first_volume.id
151147
boot_index = 0
152148
}
153-
security_group {
154-
id = "ada84751-fcca-4491-9249-2dfceb321616"
155-
name = "default"
156-
}
157149
158150
interface {
159151
type = "reserved_fixed_ip"
160152
port_id = gcore_reservedfixedip.fixed_ip.port_id
161153
fip_source = "existing"
162154
existing_fip_id = gcore_floatingip.fip.id
155+
security_groups = ["ada84751-fcca-4491-9249-2dfceb321616"]
163156
}
164157
}
165158
```

examples/resources/gcore_instance/resource.tf

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,14 @@ resource "gcore_instance" "instance" {
6363
type = "subnet"
6464
network_id = gcore_network.network.id
6565
subnet_id = gcore_subnet.subnet.id
66+
security_groups = ["d75db0b2-58f1-4a11-88c6-a932bb897310"]
67+
}
6668
//port_id = null
6769
//ip_address = null
6870
//fip_source = null
6971
//existing_fip_id = null
7072
}
7173

72-
73-
security_group {
74-
id = "d75db0b2-58f1-4a11-88c6-a932bb897310"
75-
name = "default"
76-
}
77-
7874
//deprecated, use metadata_map instead
7975
//metadata {
8076
// key = "some_key"
@@ -135,16 +131,13 @@ resource "gcore_instance" "v" {
135131
volume_id = gcore_volume.first_volume.id
136132
boot_index = 0
137133
}
138-
security_group {
139-
id = "ada84751-fcca-4491-9249-2dfceb321616"
140-
name = "default"
141-
}
142134

143135
interface {
144136
type = "reserved_fixed_ip"
145137
port_id = gcore_reservedfixedip.fixed_ip.port_id
146138
fip_source = "existing"
147139
existing_fip_id = gcore_floatingip.fip.id
140+
security_groups = ["ada84751-fcca-4491-9249-2dfceb321616"]
148141
}
149142
}
150143

0 commit comments

Comments
 (0)