1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-05-04 19:55:52 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Noah Masur
f4ed3f0ec6
try to add root device name for ami 2024-05-05 23:07:54 -04:00
Noah Masur
d07abccbce
fix: no default tags exist 2024-05-05 22:53:07 -04:00
2 changed files with 3 additions and 2 deletions
hosts/arrow/aws

@ -3,9 +3,9 @@ resource "aws_instance" "instance" {
instance_type = var.ec2_size
vpc_security_group_ids = [aws_security_group.instance.id]
tags = merge(local.default_tags, {
tags = {
Name = "aws-nixos"
})
}
lifecycle {
create_before_destroy = true

@ -71,6 +71,7 @@ resource "aws_ami" "image" {
description = "Created with NixOS."
name = replace(basename(local.image_file), "/\\.vhd$/", "")
virtualization_type = "hvm"
root_device_name = "/dev/xvda"
ebs_block_device {
device_name = "/dev/xvda"