|  | 
| 1 | 1 | { | 
| 2 |  | -    "builders" : [ | 
| 3 |  | -        { | 
| 4 |  | -            "type" : "amazon-ebs",  | 
| 5 |  | -            "assume_role": { | 
| 6 |  | -                "role_arn": "arn:aws:iam::260760892802:role/dvc-cml-packer", | 
| 7 |  | -                "session_name": "cml-packer-session" | 
| 8 |  | -            }, | 
| 9 |  | -            "region" : "us-west-1", | 
| 10 |  | -            "ami_name" : "iterative-cml", | 
| 11 |  | -            "ami_description" : "CML (Continous Machine Learning). Ubuntu 18.04", | 
| 12 |  | -            "ami_groups": ["all"], | 
| 13 |  | -            "force_deregister": "true", | 
| 14 |  | -            "force_delete_snapshot": "true", | 
| 15 |  | -            "ssh_username" : "ubuntu", | 
| 16 |  | -            "instance_type" : "g2.2xlarge", | 
| 17 |  | -            "source_ami_filter": { | 
| 18 |  | -                "filters": { | 
| 19 |  | -                  "virtualization-type": "hvm", | 
| 20 |  | -                  "name": "ubuntu/images/*ubuntu-*-18.04-amd64-server-*", | 
| 21 |  | -                  "root-device-type": "ebs" | 
| 22 |  | -                }, | 
| 23 |  | -                "owners": ["099720109477"], | 
| 24 |  | -                "most_recent": true | 
| 25 |  | -            }, | 
| 26 |  | -            "run_tags" : { | 
| 27 |  | -                "Author" : "iterative" | 
| 28 |  | -            } | 
| 29 |  | -        } | 
| 30 |  | -    ], | 
| 31 |  | -    "provisioners" : [ | 
| 32 |  | -        { | 
| 33 |  | -            "type" : "shell", | 
| 34 |  | -            "environment_vars": ["DEBIAN_FRONTEND=noninteractive"], | 
| 35 |  | -            "script" : "./setup.sh" | 
|  | 2 | +  "builders": [ | 
|  | 3 | +    { | 
|  | 4 | +      "type": "amazon-ebs", | 
|  | 5 | +      "assume_role": { | 
|  | 6 | +        "role_arn": "arn:aws:iam::260760892802:role/dvc-cml-packer", | 
|  | 7 | +        "session_name": "cml-packer-session" | 
|  | 8 | +      }, | 
|  | 9 | +      "region": "us-west-1", | 
|  | 10 | +      "ami_name": "iterative-cml", | 
|  | 11 | +      "ami_description": "CML (Continous Machine Learning). Ubuntu 18.04", | 
|  | 12 | +      "ami_groups": ["all"], | 
|  | 13 | +      "force_deregister": "true", | 
|  | 14 | +      "force_delete_snapshot": "true", | 
|  | 15 | +      "ssh_username": "ubuntu", | 
|  | 16 | +      "instance_type": "g2.2xlarge", | 
|  | 17 | +      "source_ami_filter": { | 
|  | 18 | +        "filters": { | 
|  | 19 | +          "virtualization-type": "hvm", | 
|  | 20 | +          "name": "ubuntu/images/*ubuntu-*-18.04-amd64-server-*", | 
|  | 21 | +          "root-device-type": "ebs" | 
| 36 | 22 |         }, | 
| 37 |  | -        { | 
| 38 |  | -            "type": "shell", | 
| 39 |  | -            "inline": [ | 
| 40 |  | -              "sudo shutdown -r now", | 
| 41 |  | -              "sleep 60" | 
| 42 |  | -            ], | 
| 43 |  | -            "start_retry_timeout": "10m", | 
| 44 |  | -            "expect_disconnect": true | 
| 45 |  | -        } | 
| 46 |  | -    ] | 
|  | 23 | +        "owners": ["099720109477"], | 
|  | 24 | +        "most_recent": true | 
|  | 25 | +      }, | 
|  | 26 | +      "run_tags": { | 
|  | 27 | +        "Author": "iterative" | 
|  | 28 | +      } | 
|  | 29 | +    } | 
|  | 30 | +  ], | 
|  | 31 | +  "provisioners": [ | 
|  | 32 | +    { | 
|  | 33 | +      "type": "shell", | 
|  | 34 | +      "environment_vars": ["DEBIAN_FRONTEND=noninteractive"], | 
|  | 35 | +      "script": "./setup.sh" | 
|  | 36 | +    }, | 
|  | 37 | +    { | 
|  | 38 | +      "type": "shell", | 
|  | 39 | +      "inline": ["sudo shutdown -r now", "sleep 60"], | 
|  | 40 | +      "start_retry_timeout": "10m", | 
|  | 41 | +      "expect_disconnect": true | 
|  | 42 | +    } | 
|  | 43 | +  ] | 
| 47 | 44 | } | 
0 commit comments