forked from compiler-explorer/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer-win.json
51 lines (51 loc) · 1.25 KB
/
packer-win.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
51
{
"builders": [
{
"type": "amazon-ebs",
"region": "us-east-1",
"access_key": "{{user `MY_ACCESS_KEY`}}",
"secret_key": "{{user `MY_SECRET_KEY`}}",
"user_data_file": "./packer/SetUpWinRM.ps1",
"communicator": "winrm",
"winrm_username": "Administrator",
"winrm_use_ssl": true,
"winrm_insecure": true,
"source_ami_filter": {
"filters": {
"name": "Windows_Server-2022-English-Core-Base-*"
},
"owners": [
"801119661308"
],
"most_recent": true
},
"instance_type": "c5.xlarge",
"ami_name": "compiler-explorer windows packer @ {{timestamp}}",
"iam_instance_profile": "XaniaBlog",
"vpc_id": "vpc-17209172",
"security_group_id": "sg-f53f9f80",
"subnet_id": "subnet-1df1e135",
"ami_block_device_mappings": [
{
"device_name": "/dev/sda1",
"volume_size": 30,
"delete_on_termination": true,
"volume_type": "gp2"
}
]
}
],
"variables": {
"MY_ACCESS_KEY": "",
"MY_SECRET_KEY": ""
},
"provisioners": [
{
"type": "powershell",
"scripts": [
"./packer/InstallPwsh.ps1",
"./packer/InstallTools.ps1"
]
}
]
}