Sha256: b001415b7fd200ca68dc9a3f90a0be665a7bc59928e82585c8b6839b1889eb62

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

{
  "variables": {
    "aws_access_key": "",
    "aws_secret_key": "",
    "source_ami": "",
    "ami_tag": "",
    "cookbook_name": ""
  },

  "builders": [
    {
      "type": "amazon-ebs",
      "access_key": "{{user `aws_access_key`}}",
      "secret_key": "{{user `aws_secret_key`}}",
      "region": "us-east-1",
      "source_ami": "{{user `source_ami`}}",
      "instance_type": "c4.large",
      "ssh_username": "ubuntu",
      "ami_name": "{{user `ami_tag`}} {{timestamp}}",
      "tags": {
        "Name": "{{user `ami_tag`}}",
        "created_at": "{{isotime}}",
        "parent_ami": "{{user `source_ami`}}"
      },
      "run_tags": {
        "kind": "packer",
        "role": "AMI builder"
      },
      "launch_block_device_mappings": [{
        "device_name": "/dev/sda1",
        "volume_size": 8,
        "volume_type": "gp2",
        "delete_on_termination": true
      }]
    }
  ],
  "provisioners": [
    {
      "type": "chef-solo",
      "cookbook_paths": ["cookbooks", "site-cookbooks"],
      "run_list": ["{{user `cookbook_name`}}"],
      "skip_install": true,
      "data_bags_path": "data_bags",
      "encrypted_data_bag_secret_path": "/etc/chef/encrypted_data_bag_secret"
    }
  ]
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hashicorptools-0.1.2 lib/hashicorptools/ami_configs/standard-ami.json