puppetlabs-aws
puppetlabs-aws copied to clipboard
Accessing public IP address attribute of ec2_instance
I'm having issues discovering remote attributes once the resource is created. Example, my manifest creates an Instance but i then want to get the public IP for that instance and create a route53 A record within the same manifest. I cant find a way of getting that public IP attribute and setting it as a varibable to be used further down the manifest in the A record creation section - Any help appreciated
Without being able to discover attributes that are set once the resource has been created makes this module fairly narrow in its use case. For example i wouldn't be able to use RDS or ELB's as i wouldn't be able to retrieve the endpoints set for these by AWS at creation time. If for example i create an ELB, i wouldn't be able to update route53 CNAME for my top level host record to point to the ELB endpoint. Likewise, if i create an RDS instance, i wouldnt be able to use a Puppet template referencing that endpoint in the connection string for my app being deployed. Hopefully there's a way to discover these facts that i've not considered.
Same issue here: https://github.com/puppetlabs/puppetlabs-aws/issues/301