Skip to content

Commit

Permalink
Create vpc-region.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
prb112 authored Jan 31, 2024
1 parent 3b2da74 commit e2a8df9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/vpc-region.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

VPC_REGION=$(
case "$POWERVS_ZONE" in
("dal10") echo "us-south" ;;
("dal12") echo "us-south" ;;
("us-south") echo "us-south" ;;
("wdc06") echo "us-east" ;;
("us-east") echo "us-east" ;;
("sao01") echo "br-sao" ;;
("tor01") echo "ca-tor" ;;
("mon01") echo "ca-mon" ;;
("mad01") echo "eu-es" ;;
("eu-de-1") echo "eu-de" ;;
("eu-de-2") echo "eu-de" ;;
("lon04") echo "eu-gb" ;;
("lon06") echo "eu-gb" ;;
("syd04") echo "eu-gb" ;;
("syd05") echo "au-syd" ;;
("tok04") echo "jp-tok" ;;
("osa21") echo "jp-osa" ;;
(*) echo "$POWERVS_ZONE" ;;
esac)

0 comments on commit e2a8df9

Please sign in to comment.