Использовал эту кукбуку:
https://supermarket.chef.io/cookbooks/google-gcompute
Прописал так как описано в доке:
gcompute_instance 'instance-test' do
action :create
machine_type 'n1-standard-1'
disks [
{
boot: true,
auto_delete: true,
source: 'instance-test-os-1'
}
]
network_interfaces [
{
network: 'mynetwork-test',
access_configs: [
{
name: 'External NAT',
nat_ip: 'instance-test-ip',
type: 'ONE_TO_ONE_NAT'
}
]
}
]
tags {
items
[
'instance-test'
]
}
zone 'us-central1-a'
project ENV['GCP_PROJECT']
credential 'mycred'
end
Ошибка:
[2020-07-01T19:26:56+03:00] FATAL: RuntimeError: Property `tags` of `gcompute_instance[instance-test]` was incorrectly passed a block. Possible property-resource collision. To call a resource named `tags` either rename the property or else use `declare_resource(:tags, ...)`