Skip to content

Commit

Permalink
Fix EC2 instance config
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Apr 23, 2024
1 parent 6880f24 commit 9ad08a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tf/modules/cloudhsm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,29 @@ resource "aws_security_group" "hsm" {

data "aws_ami" "amazon_linux" {
most_recent = true
owners = ["amazon"]

filter {
name = "name"
values = ["debian-12-amd64-*"]
values = ["al2023-ami-*"]
}

filter {
name = "architecture"
values = ["x86_64"]
}

filter {
name = "virtualization-type"
values = ["hvm"]
}

owners = ["136693071363"] # Debian's official AWS account ID
}

resource "aws_instance" "codesign_box" {
ami = data.aws_ami.amazon_linux.id

instance_type = "t3.micro"
subnet_id = var.subnet_id
security_groups = [aws_security_group.hsm.name]

user_data = <<-EOF
Expand Down

0 comments on commit 9ad08a4

Please sign in to comment.