I was creating AWS EC2 instances to install Oracle Fusion Middleware products, and I found an issue: How to download Oracle’s installers if I want to use installers on several instances? This could consume a lot of network bandwith and I want to make this process repeatable, so I don’t want to wait 1 hour each installation only downloading files.
So, I found this solution: How to setup an Amazon AWS EC2 NFS Share. But to make it more reusable, I create a Vagrant & Chef configuration to replicate and share this method here: Git repository
What are the steps?
- You need to install Vagrant (vagrant-aws and vagrant-omnibus) and Chef SDK
- You have to create Chef Server account and upload the cookbooks
- You need to create AWS account to create instances remotly.
- You have to create a Vagrant configuration and customize it to create an AWS EC2 instance
- Test it.
Well, I’ve created a configuration on GitHub and I’ll show you how to use it:
I hope you find it useful. Feel free to share your comments!