LoginSignup
3
1

More than 5 years have passed since last update.

terraform で BYOL の OpenVPN の AMI をさがす

Last updated at Posted at 2016-09-06
data "aws_ami" "openvpn" {
  most_recent = true
  owners      = ["aws-marketplace"]

  filter {
    name   = "architecture"
    values = ["x86_64"]
  }

  filter {
    name   = "root-device-type"
    values = ["ebs"]
  }

  filter {
    name   = "name"
    values = ["OpenVPN Access Server*"]
  }

  filter {
    name = "product-code"
    values = ["f2ew2wrz425a1jagnifd02u5t"]
  }

  filter {
    name   = "virtualization-type"
    values = ["hvm"]
  }

}

output "ami_id" {
  value = [
    "${data.aws_ami.openvpn.id}"
  ]
}

product-code を指定しないと有料ライセンスの方になってしまいます

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1