mirror of
https://github.com/google/nomulus
synced 2026-01-11 08:20:27 +00: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:
@@ -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
|
||||
gcloud compute instance-groups set-named-ports \
|
||||
--named-ports whois:30001,epp:30002 $line
|
||||
done
|
||||
}
|
||||
while read line
|
||||
do
|
||||
gcloud compute instance-groups set-named-ports \
|
||||
--named-ports whois:30001,epp:30002 $line
|
||||
done < <(terraform output proxy_instance_groups | awk '{print $3}' | \
|
||||
awk -F '/' '{print "--project", $7, "--zone", $9, $11}')
|
||||
|
||||
Reference in New Issue
Block a user