Answer the question
In order to leave comments, you need to log in
Chef GCP firewall how to set multiple ports?
gcompute_firewall 'test-fw-allow-ssh' do
action :create
allowed [
{
ip_protocol: 'tcp',
ports: ['8081']
}
]
target_tags [
'instance-test'
]
project ENV['GCP_PROJECT'] # ex: 'my-test-project'
credential 'mycred'
end
allowed [
{
ip_protocol string,
ports [
string,
...
],
},
...
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question