{
  "variables": {
    "package_version": "{{env `PACKAGE_VERSION`}}"
  },
  "builders": [{
    "type": "amazon-ebs",
    "region": "us-east-1",
    "source_ami": "ami-920b10ed",
    "instance_type": "m3.medium",
    "ssh_username": "ubuntu",
    "ami_name": "graylog-{{user `package_version`}}",
    "ami_description": "Full-stack installation of Graylog - maintained by Graylog, Inc.",
    "ami_groups": ["all"],
    "tags": {
      "OS_Version": "Ubuntu",
      "Release": "Latest"
    }
  }],
  "provisioners": [
    {
      "type": "shell",
      "scripts": ["scripts/install_ami.sh",
                  "scripts/aws_hostname.sh",
                  "scripts/shell_environment.sh",
                  "scripts/aws_cleanup.sh"
      ],
      "environment_vars": ["PACKAGE_VERSION={{user `package_version`}}"],
      "execute_command": "echo 'ubuntu' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
    }
  ]
}

{
  "variables": {
    "package_version": "{{env `PACKAGE_VERSION`}}"
  },
  "builders": [{
    "type": "amazon-ebs",
    "region": "us-east-1",
    "source_ami": "ami-920b10ed",
    "instance_type": "m3.medium",
    "ssh_username": "ubuntu",
    "ami_name": "graylog-{{user `package_version`}}",
    "ami_description": "Full-stack installation of Graylog - maintained by Graylog, Inc.",
    "ami_groups": ["all"],
    "ami_regions": ["us-east-2", "us-west-1", "us-west-2", "eu-west-1", "eu-west-2", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1", "ap-southeast-2", "sa-east-1"],
    "tags": {
      "OS_Version": "Ubuntu",
      "Release": "Latest"
    }
  }],
  "provisioners": [
    {
      "type": "shell",
      "scripts": ["scripts/install_ami.sh",
                  "scripts/aws_hostname.sh",
                  "scripts/shell_environment.sh",
                  "scripts/aws_cleanup.sh"
      ],
      "environment_vars": ["PACKAGE_VERSION={{user `package_version`}}"],
      "execute_command": "echo 'ubuntu' | {{.Vars}} sudo -E -S bash '{{.Path}}'"
    }
  ]
}

Revert "Limit AWS regions for now"
Revert "Limit AWS regions for now"

This reverts commit 6f39501a1f3479aed33533a4228b9a6576a3f3bc.
