File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ module "openaustralia" {
9494 security_group_service = aws_security_group. openaustralia
9595 instance_profile = aws_iam_instance_profile. logging
9696 ami = var. ubuntu_16_ami
97+ ubuntu_22_ami = var. ubuntu_22_ami
9798 ubuntu_24_ami = var. ubuntu_24_ami
9899 cloudflare_account_id = var. cloudflare_account_id
99100}
Original file line number Diff line number Diff line change 1- # New OpenAustralia Production Server on Ubuntu 24 .04
1+ # New OpenAustralia Production Server on Ubuntu 22 .04
22# This creates a parallel production environment for OpenAustralia
33
44# After discussion with Brenda, this new server will house both staging and production.
5+ # Note: Using Ubuntu 22.04 due to Ansible 2.10 compatibility issues with Ubuntu 24.04
56
67resource "aws_instance" "production" {
7- ami = var. ubuntu_24_ami
8+ ami = var. ubuntu_22_ami
89
910 instance_type = " t3.small"
1011 ebs_optimized = true
11- key_name = " test "
12+ key_name = " terraform "
1213 tags = {
13- Name = " openaustralia"
14+ Name = " openaustralia-prod "
1415 }
1516
1617 # Increase root volume size to 20GB to allow for more packages and data
@@ -44,7 +45,7 @@ resource "aws_ebs_volume" "production_data" {
4445 size = 20
4546 type = " gp3"
4647 tags = {
47- Name = " openaustralia_data "
48+ Name = " openaustralia-prod-data "
4849 }
4950}
5051
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ variable "security_group_service" {}
33variable "instance_profile" {}
44variable "ami" {}
55variable "cloudflare_account_id" {}
6+ variable "ubuntu_22_ami" {}
67variable "ubuntu_24_ami" {}
You can’t perform that action at this time.
0 commit comments