-
Notifications
You must be signed in to change notification settings - Fork 10
/
aws_ds_aws_ami.tf
34 lines (27 loc) · 990 Bytes
/
aws_ds_aws_ami.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (C) 2018 - 2020 IT Wonder Lab (https://www.itwonderlab.com)
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
#--------------------------------------------------------
# Ubuntu AMI
#--------------------------------------------------------
# Use this data source to get the ID of the latests AMI for selected OS
# Use this data source to get the ID of the latests AMI for selected OS
# data.aws_ami.NAME.id
# Ubuntu 16.04 HVM using EBS SSD
# registered AMI for use in other resources.
#----------------------
# Ubuntu AMI 16.04 LTS
#----------------------
data "aws_ami" "ubuntu1604" {
most_recent = true
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
}
# filter {
# name = "virtualization-type"
# values = ["hvm"]
# }
owners = ["099720109477"] # Canonical
}