-
Notifications
You must be signed in to change notification settings - Fork 18
/
packer.aws.json
50 lines (50 loc) · 1.31 KB
/
packer.aws.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"variables": {
"vpc_id": "",
"subnet_id": "",
"source_ami": "",
"major_version": "1.0.",
"region": "ap-southeast-2",
"build_number": "{{env `BUILD_NUMBER`}}"
},
"builders": [
{
"type": "amazon-ebs",
"winrm_username": "Administrator",
"winrm_port": 5985,
"user_data_file": "amz.userdata",
"communicator": "winrm",
"associate_public_ip_address": "true",
"ssh_private_ip": "false",
"region": "{{user `region`}}",
"source_ami": "{{user `source_ami`}}",
"vpc_id": "{{user `vpc_id`}}",
"subnet_id": "{{user `subnet_id`}}",
"instance_type": "t2.medium",
"ami_name": "beanstalk-iis-{{user `major_version`}}.{{user `build_number`}}",
"ami_description": "Beanstalk IIS"
}
],
"provisioners": [
{
"type": "dsc",
"configuration_name": "Beanstalk",
"configuration_file": "manifests/BeanstalkConfig.psd1",
"manifest_file": "manifests/Beanstalk.ps1",
"module_paths": [
"modules"
],
"install_package_management": true,
"install_modules": {
"xWebAdministration": "1.10.0.0"
},
"module_paths": [
"modules"
],
"configuration_params": {
"-WebAppPath": "c:\\tmp",
"-MachineName": "localhost"
}
}
]
}