Groovy web console

subscribe to the feed Subscribe
to this
site

yeeeeey

Published 2 months ago by yeeee with tags devops
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
amis = [  
eacs_dev = [  "ami" : "ami-0a02ee601d742e89f",  "account" : "arn:aws:iam::757400821530:role/ADFS-VT-DevOps",  "aws_account" : "aws_jenkins_dev"  ],  
eacs_qa = [  "ami" : "ami-0a02ee601d742e89f",  "account" : "arn:aws:iam::898910762856:role/ADFS-VT-DevOps",  "aws_account" : "aws_jenkins_dev"  ],  
eacs_prod = [  "ami" : "ami-0a02ee601d742e89f",  "account" : "arn:aws:iam::292662896915:role/ADFS-VT-DevOps",  "aws_account" : "aws_jenkins_prod"  ] 
] 
for ( ac in amis ) {  
println ac  
println ac.getClass()  
println ac['account']  
println ac.get('account')  
}