This repository was archived by the owner on Mar 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed
examples/resources/gcore_instance Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -78,18 +78,14 @@ resource "gcore_instance" "instance" {
78
78
type = "subnet"
79
79
network_id = gcore_network.network.id
80
80
subnet_id = gcore_subnet.subnet.id
81
+ security_groups = ["d75db0b2-58f1-4a11-88c6-a932bb897310"]
82
+ }
81
83
//port_id = null
82
84
//ip_address = null
83
85
//fip_source = null
84
86
//existing_fip_id = null
85
87
}
86
88
87
-
88
- security_group {
89
- id = "d75db0b2-58f1-4a11-88c6-a932bb897310"
90
- name = "default"
91
- }
92
-
93
89
//deprecated, use metadata_map instead
94
90
//metadata {
95
91
// key = "some_key"
@@ -150,16 +146,13 @@ resource "gcore_instance" "v" {
150
146
volume_id = gcore_volume.first_volume.id
151
147
boot_index = 0
152
148
}
153
- security_group {
154
- id = "ada84751-fcca-4491-9249-2dfceb321616"
155
- name = "default"
156
- }
157
149
158
150
interface {
159
151
type = "reserved_fixed_ip"
160
152
port_id = gcore_reservedfixedip.fixed_ip.port_id
161
153
fip_source = "existing"
162
154
existing_fip_id = gcore_floatingip.fip.id
155
+ security_groups = ["ada84751-fcca-4491-9249-2dfceb321616"]
163
156
}
164
157
}
165
158
```
Original file line number Diff line number Diff line change @@ -63,18 +63,14 @@ resource "gcore_instance" "instance" {
63
63
type = " subnet"
64
64
network_id = gcore_network. network . id
65
65
subnet_id = gcore_subnet. subnet . id
66
+ security_groups = [" d75db0b2-58f1-4a11-88c6-a932bb897310" ]
67
+ }
66
68
// port_id = null
67
69
// ip_address = null
68
70
// fip_source = null
69
71
// existing_fip_id = null
70
72
}
71
73
72
-
73
- security_group {
74
- id = " d75db0b2-58f1-4a11-88c6-a932bb897310"
75
- name = " default"
76
- }
77
-
78
74
// deprecated, use metadata_map instead
79
75
// metadata {
80
76
// key = "some_key"
@@ -135,16 +131,13 @@ resource "gcore_instance" "v" {
135
131
volume_id = gcore_volume. first_volume . id
136
132
boot_index = 0
137
133
}
138
- security_group {
139
- id = " ada84751-fcca-4491-9249-2dfceb321616"
140
- name = " default"
141
- }
142
134
143
135
interface {
144
136
type = " reserved_fixed_ip"
145
137
port_id = gcore_reservedfixedip. fixed_ip . port_id
146
138
fip_source = " existing"
147
139
existing_fip_id = gcore_floatingip. fip . id
140
+ security_groups = [" ada84751-fcca-4491-9249-2dfceb321616" ]
148
141
}
149
142
}
150
143
You can’t perform that action at this time.
0 commit comments