Skip to content

Commit

Permalink
Deploy valid AWS images past their DeprecationTime
Browse files Browse the repository at this point in the history
TEAM-8177 - [AWS][Terraform] qe-sap-deployment cannot deploy valid images past their DeprecationTime
  • Loading branch information
lilyeyes committed Aug 30, 2023
1 parent 0647289 commit 89dbfb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions terraform/aws/modules/get_os_image/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Data used to get the correct AMI image
data "aws_ami" "image" {
most_recent = true
owners = [var.os_owner]
most_recent = true
owners = [var.os_owner]
include_deprecated = true

filter {
name = "name"
Expand All @@ -22,4 +23,9 @@ data "aws_ami" "image" {
name = "virtualization-type"
values = ["hvm"]
}

filter {
name = "state"
values = ["available"]
}
}
4 changes: 2 additions & 2 deletions terraform/aws/version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ terraform {
# Configure the Azure Provider
aws = {
source = "hashicorp/aws"
version = "~> 4.0.0"
version = "~> 5.14.0"
}
null = {
source = "hashicorp/null"
version = "~> 3.1.0"
version = "~> 3.2.1"
}
}
}
Expand Down

0 comments on commit 89dbfb9

Please sign in to comment.