Say I have an app comprised of a web server and a database. If I ec2 deploy a chef client with the DB role, how can I automatically insert the IP of this new ec2 machine into my web server's config?
More generalized, how can I acquire EC2 metadata at launch time for use in attributes of other cookbooks?
I know a roundabout way to do this might be to update a dns server with shell scripts, but I'm interested to here of a solution using only chef.