diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl new file mode 100644 index 0000000..8b9ee2c --- /dev/null +++ b/.terraform.lock.hcl @@ -0,0 +1,24 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/hashicorp/aws" { + version = "5.83.1" + hashes = [ + "h1:Yy3K7R7881H72rQDzG6qjZVkrWA6DGJzfE21TionY7w=", + "zh:0313253c78f195973752c4d1f62bfdd345a9c99c1bc7a612a8c1f1e27d51e49e", + "zh:108523f3e9ebc93f7d900c51681f6edbd3f3a56b8a62b0afc31d8214892f91e0", + "zh:175b9bf2a00bea6ac1c73796ad77b0e00dcbbde166235017c49377d7763861d8", + "zh:1c8bf55b8548bbad683cd6d7bdb03e8840a00b2422dc1529ffb9892820657130", + "zh:22338f09bae62d5ff646de00182417f992548da534fee7d98c5d0136d4bd5d7a", + "zh:92de1107ec43de60612be5f6255616f16a9cf82d88df1af1c0471b81f3a82c16", + "zh:9b12af85486a96aedd8d7984b0ff811a4b42e3d88dad1a3fb4c0b580d04fa425", + "zh:9c7bfb7afea330e6d90e1466125a8cba3db1ed4043c5da52f737459c89290a6e", + "zh:ba59b374d477e5610674b70f5abfe0408e8f809390347372751384151440d3d0", + "zh:bd1c433966002f586d63cb1e3e16326991f238bc6beeb2352be36ec651917b0b", + "zh:ca2b4d1d02651c15261fffa4b142e45def9a22c6069353f0f663fd2046e268f8", + "zh:d8ed98c748f7a3f1a72277cfee9afe346aca39ab319d17402277852551d8f14a", + "zh:ed3d8bc89de5f35f3c5f4802ff7c749fda2e2be267f9af4a850694f099960a72", + "zh:f698732a4391c3f4d7079b4aaa52389da2a460cac5eed438ed688f147d603689", + "zh:f9f51b17f2978394954e9f6ab9ef293b8e11f1443117294ccf87f7f8212b3439", + ] +} diff --git a/resources.tf b/resources.tf index 992c0b3..31e91e7 100644 --- a/resources.tf +++ b/resources.tf @@ -73,10 +73,10 @@ resource "aws_ebs_volume" "backend" { } } -import { - to = aws_volume_attachment.backend - id = "/dev/xvdf:vol-0d2bab5e75ac580e9:${aws_instance.backend.id}" -} +# import { +# to = aws_volume_attachment.backend +# id = "/dev/xvdf:vol-0d2bab5e75ac580e9:${aws_instance.backend.id}" +# } resource "aws_volume_attachment" "backend" { device_name = "/dev/xvdf" @@ -84,14 +84,14 @@ resource "aws_volume_attachment" "backend" { volume_id = aws_ebs_volume.backend.id } -import { - to = aws_instance.backend - id = "i-026c60a5a3cdec06e" -} +# import { +# to = aws_instance.backend +# id = "i-08231826bfbff638c" +# } resource "aws_instance" "backend" { - ami = "ami-0a628e1e89aaedf80" # Canonical, Ubuntu, 24.04, amd64 noble image - instance_type = "t2.micro" + ami = "ami-02d9d83052ced9fdd" # Canonical, Ubuntu, 24.04, arm noble image + instance_type = "t4g.small" key_name = "backend" availability_zone = "eu-central-1b" @@ -121,7 +121,7 @@ resource "aws_instance" "backend" { # install docker and sysbox sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - wget https://downloads.nestybox.com/sysbox/releases/v0.6.5/sysbox-ce_0.6.5-0.linux_amd64.deb + wget https://downloads.nestybox.com/sysbox/releases/v0.6.6/sysbox-ce_0.6.6-0.linux_arm64.deb sudo apt install -y ./sysbox-ce_0.6.5-0.linux_amd64.deb rm ./sysbox-ce_0.6.5-0.linux_amd64.deb