Groovy web console

subscribe to the feed Subscribe
to this
site
sdf (via #groovywebconsole)
tweet this snippet Tweet
this
script

sdf

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def getEnvFromUrl() { return 'PROD' }
def getAZs(env="") { 
  if (env == "") {
    env = getEnvFromUrl()
  }
  def envMap = [ 
    'PROD': [ 'ap-southeast-2a', 'ap-southeast-2b', 'ap-southeast-2c' ]
  ]
  return envMap[env]
}
getAZs()