This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}", | |
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}", | |
"atlas_username": "{{env `ATLAS_USERNAME`}}", | |
"atlas_token": "AGatG6zR7NjPRg.atlasv1.JrueNghrDyMItxjyzeotL87l26ymHb9MLzTlkyaf5joZH5cMg0kpViaR3qCr9iDOE9Y", | |
"name": "aws-windows-base", | |
"region": "us-west-2", | |
"vpc_id": "", | |
"subnet_id": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stevens-MacBook-Pro:core-cookbook stevenwade$ packer build windows.json | |
amazon-ebs output will be in this color. | |
==> amazon-ebs: Prevalidating AMI Name... | |
==> amazon-ebs: Inspecting the source AMI... | |
==> amazon-ebs: Creating temporary keypair: packer 56ca3d45-ead0-1272-2150-a7fce10b2f62 | |
==> amazon-ebs: Creating temporary security group for this instance... | |
==> amazon-ebs: Authorizing access to port 5985 the temporary security group... | |
==> amazon-ebs: Launching a source AWS instance... | |
amazon-ebs: Instance ID: i-af039168 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<powershell> | |
write-output "Starting instance userdata script" | |
write-output "Running User Data Script" | |
write-host "(host) Running User Data Script" | |
cmd.exe /c net user /add vagrant FooBar@123 | |
cmd.exe /c net localgroup administrators vagrant /add | |
Set-ExecutionPolicy -ExecutionPolicy bypass -Force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test-WSMan -ComputerName 52.36.159.226 | |
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd | |
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd | |
ProductVendor : Microsoft Corporation | |
ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "chef-solo", | |
"skip_install": true, | |
"cookbook_paths": ["cookbooks/core"], | |
"run_list": ["core::default"] | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}", | |
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}", | |
"atlas_username": "", | |
"atlas_token": "", | |
"name": "aws-windows-base", | |
"region": "us-west-2", | |
"vpc_id": "vpc-6aa9440e", | |
"subnet_id": "subnet-3c042265", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> amazon-ebs: Prevalidating AMI Name... | |
==> amazon-ebs: Inspecting the source AMI... | |
==> amazon-ebs: Creating temporary keypair: packer 56cb68d7-162c-45d5-ff59-690ba1b35760 | |
==> amazon-ebs: Creating temporary security group for this instance... | |
==> amazon-ebs: Authorizing access to port 5985 the temporary security group... | |
==> amazon-ebs: Launching a source AWS instance... | |
amazon-ebs: Instance ID: i-ad2d6e77 | |
==> amazon-ebs: Waiting for instance (i-ad2d6e77) to become ready... | |
==> amazon-ebs: Skipping waiting for password since WinRM password set... | |
==> amazon-ebs: Waiting for WinRM to become available... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stevens-MBP:core-cookbook stevenwade$ packer build -debug windows.json | |
Debug mode enabled. Builds will not be parallelized. | |
amazon-ebs output will be in this color. | |
==> amazon-ebs: Prevalidating AMI Name... | |
==> amazon-ebs: Pausing after run of step 'StepPreValidate'. Press enter to continue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stevens-MacBook-Pro:bamboo-agent-cookbook stevenwade$ vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Box 'swade1987/aws-windows-base' could not be found. Attempting to find and install... | |
default: Box Provider: virtualbox | |
default: Box Version: >= 0 | |
==> default: Loading metadata for box 'swade1987/aws-windows-base' | |
default: URL: https://atlas.hashicorp.com/swade1987/aws-windows-base | |
==> default: Adding box 'swade1987/aws-windows-base' (v0.0.3) for provider: virtualbox | |
default: Downloading: https://atlas.hashicorp.com/swade1987/boxes/aws-windows-base/versions/0.0.3/providers/virtualbox.box | |
An error occurred while downloading the remote file. The error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "swade1987/aws-windows-base" |