mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Use process substitution in terraform config script
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191584425
This commit is contained in:
parent
07d38340f3
commit
e7f033201b
1 changed files with 6 additions and 9 deletions
|
@ -18,12 +18,9 @@
|
|||
# the project, zone and instance group names, and then call gcloud to add the
|
||||
# named ports.
|
||||
|
||||
terraform output proxy_instance_groups | awk '{print $3}' | \
|
||||
awk -F '/' '{print "--project", $7, "--zone", $9, $11}' |
|
||||
{
|
||||
while read line
|
||||
do
|
||||
while read line
|
||||
do
|
||||
gcloud compute instance-groups set-named-ports \
|
||||
--named-ports whois:30001,epp:30002 $line
|
||||
done
|
||||
}
|
||||
done < <(terraform output proxy_instance_groups | awk '{print $3}' | \
|
||||
awk -F '/' '{print "--project", $7, "--zone", $9, $11}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue