Untitled

From Idiotic Bushbaby, 4 Months ago, written in Plain Text, viewed 55 times.
URL https://code.nat.moe/view/698345f9 Embed
Download Paste or View Raw
  1. packer {
  2.   required_plugins {
  3.     amazon = {
  4.       version = ">= 0.0.2"
  5.       source  = "github.com/hashicorp/amazon"
  6.     }
  7.   }
  8. }
  9.  
  10. source "amazon-ebs" "ubuntu" {
  11.   ami_name      = "learn-packer-linux-aws"
  12.   instance_type = "t2.micro"
  13.   region        = "us-west-2"
  14.   source_ami_filter {
  15.     filters = {
  16.       name                = "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*"
  17.       root-device-type    = "ebs"
  18.       virtualization-type = "hvm"
  19.     }
  20.     most_recent = true
  21.     owners      = ["099720109477"]
  22.   }
  23.   ssh_username = "ubuntu"
  24. }
  25.  
  26. build {
  27.   name = "learn-packer"
  28.   sources = [
  29.     "source.amazon-ebs.ubuntu"
  30.   ]
  31. }
  32.  

Reply to "Untitled"

Here you can reply to the paste above

captcha