I am not able to figure out how to replace "mac address value" with first mac address, appreciate your help.
$aws_account = $::facts['ec2_metadata']['network']['interfaces']['macs'] ['02:df:8d:XXXXXX'][owner-id]'] ? {
/123456789/ => 'account1',
/123456789/ => 'account2',
/123456789/ => 'account3',
/123456789/ => 'account4',
/123456789/ => 'account5',
}
notify { " ${aws_account} " : }