|
12345678910111213141516171819202122232425262728293031323334353637 |
- {
- "builders": [
- {
- "type": "amazon-ebs",
- "region": "eu-central-1",
- "source_ami_filter": {
- "filters": {
- "virtualization-type": "hvm",
- "name": "*Windows_Server-2019-English-Core-EKS_Optimized*",
- "root-device-type": "ebs"
- },
- "most_recent": true,
- "owners": "amazon"
- },
- "instance_type": "t2.medium",
- "ami_name": "sonar-scanner-cli-qa",
- "communicator": "winrm",
- "winrm_username": "packer_user",
- "winrm_insecure": true,
- "winrm_use_ssl": true,
- "user_data": "winrm quickconfig -quiet & net user /add packer_user & net localgroup administrators packer_user /add & winrm set winrm/config/service/auth @{Basic=\"true\"}",
- "tags": {
- "Base_AMI": "{{ .SourceAMI }}",
- "Base_AMI_Name": "{{ .SourceAMIName }}",
- "Extra": "{{ .SourceAMITags.TagName }}"
- }
- }
- ],
- "provisioners": [
- {
- "type": "powershell",
- "scripts": [
- "{{template_dir}}/setup.ps1"
- ]
- }
- ]
- }
|