Move constant variables to their own modules.
parent
0c87d694af
commit
9701408bec
@ -0,0 +1,58 @@
|
||||
################################################################################
|
||||
# AWS AMI vars
|
||||
# These outputs are really more like constants. Using outputs improves
|
||||
# readability. The values are manually updated. Use the aws-amis module to get
|
||||
# the latest for each distro. Keep in mind that AMIs are region specific this is
|
||||
# why you may see values and other regions commented out.
|
||||
################################################################################
|
||||
|
||||
output "amzn2-ami" {
|
||||
# us-east-2
|
||||
# default = "ami-0dd0ccab7e2801812"
|
||||
# us-gov-west-1
|
||||
value = "ami-02ab588324a95cf31"
|
||||
description = "The AMI to use for Amazon Linux 2."
|
||||
}
|
||||
output "ubuntu-ami" {
|
||||
# us-east-2
|
||||
# value = "ami-06c7d6c0987eaa46c"
|
||||
# us-gov-west-1
|
||||
value = "ami-066189aeb91baa0ab"
|
||||
description = "The AMI to use for Ubuntu."
|
||||
}
|
||||
output "centos7-ami" {
|
||||
# us-east-2
|
||||
value = "ami-00f8e2c955f7ffa9b"
|
||||
description = "The AMI to use for CentOS 7."
|
||||
}
|
||||
output "centos8-ami" {
|
||||
# us-east-2
|
||||
value = "ami-057cacbfbbb471bb3"
|
||||
description = "The AMI to use for CentOS 8."
|
||||
}
|
||||
output "arch-ami" {
|
||||
# us-east-2
|
||||
value = "ami-02653f06de985e3ba"
|
||||
description = "The AMI to use for Arch Linux."
|
||||
}
|
||||
output "rhel7-ami" {
|
||||
# us-east-2
|
||||
# value = "ami-0a509b3c2a4d05b3f"
|
||||
# us-gov-west-1
|
||||
value = "ami-04ccdf5793086ea95"
|
||||
description = "The AMI to use for RHEL 7."
|
||||
}
|
||||
output "rhel8-ami" {
|
||||
# us-east-2
|
||||
# value = "ami-0d871ca8a77af2948"
|
||||
# us-gov-west-1
|
||||
value = "ami-0b1f10cd1cd107dd2"
|
||||
description = "The AMI to use for RHEL 8."
|
||||
}
|
||||
output "win-srv-2019-ami" {
|
||||
# us-east-2
|
||||
# value = ???
|
||||
# us-gov-west-1
|
||||
value = "ami-0f838c3c35ab60fc4"
|
||||
description = "The AMI to use for Windows Server 2019."
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
# AWS EC2 types.
|
||||
# Thesee are only here to help readability. Using these outputs allows the user
|
||||
# to be able to see the resources of each type without having to look them up.
|
||||
################################################################################
|
||||
|
||||
output "t2-micro-1gib-1vcpu" {
|
||||
description = "t2.micro EC2 instance with 1 GiB mem and 1 vCPU."
|
||||
value = "t2.micro"
|
||||
}
|
||||
|
||||
output "t2-small-2gib-1vcpu" {
|
||||
description = "t2.small EC2 instance with 2 GiB mem and 1 vCPUs."
|
||||
value = "t2.small"
|
||||
}
|
||||
|
||||
output "t2-medium-4gib-2vcpu" {
|
||||
description = "t2.medium EC2 instance with 4 GiB mem and 2 vCPUs."
|
||||
value = "t2.medium"
|
||||
}
|
||||
|
||||
output "t2-large-8gib-2vcpu" {
|
||||
description = "t2.large EC2 instance with 8 GiB mem and 2 vCPUs."
|
||||
value = "t2.large"
|
||||
}
|
||||
|
||||
output "t2-xlarge-16gib-4vcpu" {
|
||||
description = "t2.xlarge EC2 instance with 16 GiB mem and 4 vCPUs."
|
||||
value = "t2.xlarge"
|
||||
}
|
||||
|
||||
output "t3a-medium-amd-4gib-2vcpu" {
|
||||
description = "t3a.medium EC2 instance on AMD with GiB mem and 2 vCPUs."
|
||||
value = "t3a.medium"
|
||||
}
|
||||
|
||||
output "t3a-large-amd-8gib-2vcpu" {
|
||||
description = "t3a.large EC2 instance on AMD with 8 GiB mem and 2 vCPUs."
|
||||
value = "t3a.large"
|
||||
}
|
||||
|
||||
output "c5a-xlarge-amd-8gib-4vcpu" {
|
||||
description = "c5a.xlarge EC2 instance on AMD with 8 GiB mem and 4 vCPUs."
|
||||
value = "c5a.xlarge"
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
# Libvirt Images
|
||||
# These outputs are really more like constants. Using outputs improves
|
||||
# readability. The values are manually updated.
|
||||
################################################################################
|
||||
|
||||
output "ubuntu-img" {
|
||||
value = "https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64-disk-kvm.img"
|
||||
description = "The libvirt image to use for Ubuntu."
|
||||
}
|
||||
|
||||
output "centos7-img" {
|
||||
# Latest as of 2021-12-06.
|
||||
value = "https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2111.qcow2"
|
||||
description = "The libvirt image to use for CentOS 7."
|
||||
}
|
||||
|
||||
output "centos8-img" {
|
||||
value = "https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.4.2105-20210603.0.x86_64.qcow2"
|
||||
description = "The libvirt image to use for CentOS 8."
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue