Skip to content
/ getamis Public

generate Cloudformation YAML Mapping RegionMap section for all regions when given AMI name

Notifications You must be signed in to change notification settings

geseib/getamis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

getamis

Overview

Script that will return YAML formated components to include in your Cloudformation Template. By knowing the name of the AMI from one region lookup, you can get the AMI id for all regions.

Syntax

./getamis.sh NAME OF AMI VARIABLE:AMI FILTER to SEARCH

Example

./getamis.sh CSRAMI:cisco-CSR-.16.09.01-BYOL-HVM* SRXAMI:junos-vsrx3-x86-64-19.1R2.8*

Returns

'eu-north-1':
     'CSRAMI': "ami-3872fe46"
     'SRXAMI': "ami-070c22dc10f3fe11c"
'ap-south-1':
     'CSRAMI': "ami-07054756cd49ef795"
     'SRXAMI': "ami-0d8cde425328270f6"
'eu-west-3':
     'CSRAMI': "ami-030690944026827fc"
     'SRXAMI': "ami-09a7010143753ffab"
'eu-west-2':
     'CSRAMI': "ami-0404164f209e90e2c"
     'SRXAMI': "ami-06da0d44a148bf6c4"
'eu-west-1':
     'CSRAMI': "ami-051a56492e87e433c
     'SRXAMI': "ami-0c56da2afd28b9eeb"
'ap-northeast-3':
     'CSRAMI': "ami-007b3e21799dc11b5"
     'SRXAMI': null
'ap-northeast-2':
     'CSRAMI': "ami-0287d2dfaea2653e8"
     'SRXAMI': "ami-0b18a6631c4336cc5"

About

generate Cloudformation YAML Mapping RegionMap section for all regions when given AMI name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages