Skip to content

Instantly share code, notes, and snippets.

@dan-petty
Created July 7, 2016 18:26
Show Gist options
  • Save dan-petty/45e1e81bd87c9d420c1143259520f3fc to your computer and use it in GitHub Desktop.
Save dan-petty/45e1e81bd87c9d420c1143259520f3fc to your computer and use it in GitHub Desktop.
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"aws_session_token": "{{env `AWS_SESSION_TOKEN`}}",
"source_ami": ""
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"token": "{{user `aws_session_token`}}",
"region": "us-west-2",
"source_ami": "{{user `source_ami`}}",
"instance_type": "t2.small",
"user_data_file": "{{template_dir}}/../../setup_winrm.txt",
"ami_name": "server-name {{timestamp}}",
"communicator": "winrm",
"winrm_username": "Administrator",
"vpc_id": "vpc-**********",
"subnet_id": "subnet-**********"
}
],
"provisioners": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment