mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-24 13:52:25 +00:00
Compare commits
2 Commits
0feb11b017
...
f4ed3f0ec6
Author | SHA1 | Date | |
---|---|---|---|
|
f4ed3f0ec6 | ||
|
d07abccbce |
@ -3,9 +3,9 @@ resource "aws_instance" "instance" {
|
|||||||
instance_type = var.ec2_size
|
instance_type = var.ec2_size
|
||||||
vpc_security_group_ids = [aws_security_group.instance.id]
|
vpc_security_group_ids = [aws_security_group.instance.id]
|
||||||
|
|
||||||
tags = merge(local.default_tags, {
|
tags = {
|
||||||
Name = "aws-nixos"
|
Name = "aws-nixos"
|
||||||
})
|
}
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
create_before_destroy = true
|
create_before_destroy = true
|
||||||
|
@ -71,6 +71,7 @@ resource "aws_ami" "image" {
|
|||||||
description = "Created with NixOS."
|
description = "Created with NixOS."
|
||||||
name = replace(basename(local.image_file), "/\\.vhd$/", "")
|
name = replace(basename(local.image_file), "/\\.vhd$/", "")
|
||||||
virtualization_type = "hvm"
|
virtualization_type = "hvm"
|
||||||
|
root_device_name = "/dev/xvda"
|
||||||
|
|
||||||
ebs_block_device {
|
ebs_block_device {
|
||||||
device_name = "/dev/xvda"
|
device_name = "/dev/xvda"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user