Skip to content

Commit 1f5ab66

Browse files
acmiyaguchirileykarson
authored andcommitted
Replace access_config argument with block (#3745)
* Replace access_config argument with block ``` Error: Unsupported argument on main.tf line 21, in resource "google_compute_instance" "vm_instance": 21: access_config = { An argument named "access_config" is not expected here. Did you mean to define a block of type "access_config"? ``` * Edit other instances of access_config
1 parent afff5fa commit 1f5ab66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/docs/getting_started.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ resource "google_compute_instance" "vm_instance" {
8181
network_interface {
8282
# A default network is created for all GCP projects
8383
network = "default"
84-
access_config = {
84+
access_config {
8585
}
8686
}
8787
}
@@ -135,7 +135,7 @@ network_interface {
135135
- # A default network is created for all GCP projects
136136
- network = "default"
137137
+ network = "${google_compute_network.vpc_network.self_link}"
138-
access_config = {
138+
access_config {
139139
```
140140

141141
This means that when we create the VM instance, it will use
@@ -190,7 +190,7 @@ resource "google_compute_instance" "vm_instance" {
190190
network_interface {
191191
# A default network is created for all GCP projects
192192
network = "${google_compute_network.vpc_network.self_link}"
193-
access_config = {
193+
access_config {
194194
}
195195
}
196196
}

0 commit comments

Comments
 (0)