terraform-community-modules / tf_aws_coreos_ami Goto Github PK
View Code? Open in Web Editor NEWAn easy way to lookup CoreOS AMIs with terraform
License: Apache License 2.0
An easy way to lookup CoreOS AMIs with terraform
License: Apache License 2.0
You can achieve almost equivalent functionality using the new aws_ami
data source:
variable "channel" {
default = "stable"
}
variable "virtualization_type" {
default = "hvm"
}
data "aws_ami" "coreos" {
most_recent = true
owners = ["595879546273"]
filter {
name = "architecture"
values = ["x86_64"]
}
filter {
name = "virtualization-type"
values = ["${var.virtualization_type}"]
}
filter {
name = "name"
values = ["CoreOS-${var.channel}-*"]
}
}
Should there maybe be an entry in the README about alternatives?
Including the 'all_amis' variable breaks multi module configuration where each of my modules reference this module.
Hello,
I've been trying to wrap my head around these modules. When I do terraform get and terraform apply, terraform barks the following at me:
Error creating plan: 1:23: unknown function called: format in:
${lookup(var.all_amis, format("%s-%s-%s", var.channel, var.region, var.virttype))}
Also is it necessary to cd into .terraform/modules/<sha i'm assuming> and run make? If so I think it would be useful to add that to the README. Thanks for the help and good work!
I am using terraform 0.7.4, and when i do make
.
this is the make file i have.
.PHONY: all
all: load_dependencies
load_dependencies:
terraform get
for i in $$(ls .terraform/modules/*/Makefile); do i=$$(dirname $$i); make -C $$i; done
This error happens.
Error loading Terraform: module ami.root: 1 error(s) occurred:
* output 'ami_id': unknown variable referenced: 'all_amis'. define it with 'variable' blocks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.