Skip to content

Commit

Permalink
Default bastion to 20.04 (#78)
Browse files Browse the repository at this point in the history
* change default ami_filter_value to select focal 20.04

* gcp
  • Loading branch information
Azahorscak authored Apr 18, 2023
1 parent 988bc6c commit 0f1c732
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aws/auto-scaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# replacing an unhealthy EC2 instance or recovering from an
# availability zone failure.
resource "aws_autoscaling_group" "bastion" {
# The Launch Configuration ID is part of the AUto Scalign Group name,
# The Launch Configuration ID is part of the Auto Scaling Group name,
# to force the ASG and its EC2 to be recreated.
name = "asg-${aws_launch_configuration.bastion.id}"

Expand Down
2 changes: 1 addition & 1 deletion aws/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ variable "ami_owner_id_govcloud" {

variable "ami_filter_value" {
description = "The filter path for the AMI."
default = "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"
default = "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"
}

variable "arn_prefix" {
Expand Down
2 changes: 1 addition & 1 deletion gcp/compute-image.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This gets the latest AMI for Ubuntu 18.04
# This gets the latest AMI for Ubuntu 20.04
data "google_compute_image" "ubuntu" {
# Ref: https://cloud.google.com/compute/docs/images
family = var.image_family
Expand Down
2 changes: 1 addition & 1 deletion gcp/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ variable "ssh_cidr_blocks" {

variable "image_family" {
description = "The family for the compute image. This module has assumptions about the OS being Ubuntu."
default = "ubuntu-1804-lts"
default = "ubuntu-2004-lts"
}

variable "image_project" {
Expand Down

0 comments on commit 0f1c732

Please sign in to comment.