|
160 | 160 | "associate_public_ip_address" : true,
|
161 | 161 | "ena_support" : true,
|
162 | 162 | "iam_instance_profile" : "{{user `iam_role`}}"
|
| 163 | + },{ |
| 164 | + "type": "amazon-ebs", |
| 165 | + "name" : "Ubuntu22.04-x86", |
| 166 | + "ami_name": "Jenkins Ubuntu 22.04 x86_64 {{user `build_date`}}", |
| 167 | + "region": "us-west-2", |
| 168 | + "source_ami_filter": { |
| 169 | + "filters": { |
| 170 | + "architecture": "x86_64", |
| 171 | + "virtualization-type": "hvm", |
| 172 | + "root-device-type": "ebs", |
| 173 | + "name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*" |
| 174 | + }, |
| 175 | + "owners": ["099720109477"], |
| 176 | + "most_recent": true |
| 177 | + }, |
| 178 | + "ami_block_device_mappings": [ { |
| 179 | + "device_name": "/dev/sda1", |
| 180 | + "volume_size": 16, |
| 181 | + "delete_on_termination": true |
| 182 | + } ], |
| 183 | + "launch_block_device_mappings": [ { |
| 184 | + "device_name": "/dev/sda1", |
| 185 | + "volume_size": 16, |
| 186 | + "delete_on_termination": true |
| 187 | + } ], |
| 188 | + "instance_type": "t3.micro", |
| 189 | + "ssh_username": "ubuntu", |
| 190 | + "ssh_pty" : true, |
| 191 | + "associate_public_ip_address" : true, |
| 192 | + "ena_support" : true, |
| 193 | + "iam_instance_profile" : "{{user `iam_role`}}" |
| 194 | + },{ |
| 195 | + "type": "amazon-ebs", |
| 196 | + "name" : "Ubuntu22.04-arm64", |
| 197 | + "ami_name": "Jenkins Ubuntu 22.04 arm64 {{user `build_date`}}", |
| 198 | + "region": "us-west-2", |
| 199 | + "source_ami_filter": { |
| 200 | + "filters": { |
| 201 | + "architecture": "arm64", |
| 202 | + "virtualization-type": "hvm", |
| 203 | + "root-device-type": "ebs", |
| 204 | + "name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-*" |
| 205 | + }, |
| 206 | + "owners": ["099720109477"], |
| 207 | + "most_recent": true |
| 208 | + }, |
| 209 | + "ami_block_device_mappings": [ { |
| 210 | + "device_name": "/dev/sda1", |
| 211 | + "volume_size": 16, |
| 212 | + "delete_on_termination": true |
| 213 | + } ], |
| 214 | + "launch_block_device_mappings": [ { |
| 215 | + "device_name": "/dev/sda1", |
| 216 | + "volume_size": 16, |
| 217 | + "delete_on_termination": true |
| 218 | + } ], |
| 219 | + "instance_type": "t4g.micro", |
| 220 | + "ssh_username": "ubuntu", |
| 221 | + "ssh_pty" : true, |
| 222 | + "associate_public_ip_address" : true, |
| 223 | + "ena_support" : true, |
| 224 | + "iam_instance_profile" : "{{user `iam_role`}}" |
163 | 225 | },{
|
164 | 226 | "type": "amazon-ebs",
|
165 | 227 | "name" : "RHEL7-x86",
|
|
319 | 381 | }],
|
320 | 382 | "provisioners": [{
|
321 | 383 | "type": "shell",
|
| 384 | + "pause_before": "5m", |
322 | 385 | "script" : "customize-ami.sh"
|
323 | 386 | }]
|
324 | 387 | }
|
0 commit comments