This project outlines the Windows Server Builds using Packer and Terraform
Use the Packer Packer or run via Jenkins build.
# For Linux
curl -O https://releases.hashicorp.com/packer/1.3.3/packer_1.3.3_linux_amd64.zip
sudo mkdir /bin/packer
sudo unzip packer_1.3.3_linux_amd64.zip -d /usr/local/bin/
sudo rm packer_1.3.3_linux_amd64.zip
# For Windows
https://releases.hashicorp.com/packer/1.3.3/packer_1.3.3_windows_amd64.zip
Set your AWS CLI profile prior to running scripts
aws configure --profile <NAME OF YOUR PROFILE>
# Validate Packer file before run
packer validate #add json file name
# Validate Packer file before run
packer build #add json file name
Private_Key_Filename = XXXX.pem
Public_DNS = ec2-XXX-XXX-XXX-XXX.ap-southeast-2.compute.amazonaws.com
Public_IP = XXX.XXX.XX.XX
Public_Key_Filename = XXXX.pub
SSH_Key_Name = XXXXXXXXXXXXXXXX
administrator_password = <ADMIN PASSWORD>
instance_id = i-XXXXXXXXX
RDP to the Public_DNS address or Public_IP
- Bruce Dominguez - Initial work - [GitHub][first-contributor]