Skip to content

Commit

Permalink
increase compute resources
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Jan 15, 2025
1 parent de49622 commit 85fc598
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
24 changes: 24 additions & 0 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,25 @@ 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"
instance_id = aws_instance.backend.id
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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 85fc598

Please sign in to comment.