[AWS] Jenkins + Packer + AWS EC2

190 views
Skip to first unread message

Dennis Stahlhut

unread,
Mar 3, 2016, 11:57:06 AM3/3/16
to Packer
Hi,

i am currently fiddling around with a Jenkins + Packer environment in the AWS cloud. So what i'm doing is let jenkins fire up an AMI with Packer. 
What i need to know is all informations about this ami-instance f.e. the private/public ip address so i can ran some tests against it.

Is there a way of doing this or am i moving into the wrong direction here?  I was thinking about the Jenkins EC2 Plugin to fire up Jenkins-Slaves instead of using packer.

I would be glad if someone could point me in the right direction.

Thank u
Dennis

Alvaro Miranda Aguilera

unread,
Mar 3, 2016, 1:12:44 PM3/3/16
to packe...@googlegroups.com
Hello, You could use scripts that grab the information from the metadata, and you can use the file provisioner to move the output (download) from the VM to the host, before running a local-exec.

Or you could check into Terraform, since seems will be easier.

This vid presentation show packer and terraform, so may help to clarify:


Vagrant does have vagrant-aws plugin, so there is also the option to use Vagrant to run this too.

Hope this helps.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/0ede6765-8115-4869-91ed-8f1dd6e19af9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dennis Stahlhut

unread,
Mar 4, 2016, 4:08:13 PM3/4/16
to Packer
Hi,

thank you for your input. I will Take a look at Terraform maybe it could be of use. I did also find this http://aws.amazon.com/code/1825, this could solve my problems if i find a way to fetch the Output.

The Vagrant-Plugin is also looking very promissing. I will take a look into that too!
Reply all
Reply to author
Forward
0 new messages