Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
b4k3r committed Oct 31, 2023
1 parent 3e7953e commit a97e70d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aws_minimal.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ variable "additional_tags" {

variable "region" {
type = string
default = "us-east-1"
default = "eu-west-1"
}

variable "vpc_id" {
Expand Down Expand Up @@ -133,7 +133,7 @@ build {
"aws_minimal/scripts/docker.sh",
"shared/scripts/gvisor.sh",
"aws_minimal/scripts/cloudwatch-agent.sh",
"aws_minimal/scripts/ssm-agent.sh",
"aws_minimal/scripts/ssm-agent.sh"
]
}

Expand Down
2 changes: 1 addition & 1 deletion aws_minimal/scripts/cloudwatch-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
DOWNLOAD_URL=https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/${CURRENTARCH}/latest/amazon-cloudwatch-agent.rpm
RPM_PATH=/tmp/amazon-cloudwatch-agent.rpm

touch /var/log/spacelift/{info,error}.log
sudo touch /var/log/spacelift/{info,error}.log

curl $DOWNLOAD_URL --output $RPM_PATH
sudo rpm -U $RPM_PATH
Expand Down
1 change: 1 addition & 0 deletions aws_minimal/scripts/dnf-update.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This script updates the installed packages and package cache on the instance.

sudo dnf update -y
sudo dnf install -y wget
2 changes: 1 addition & 1 deletion shared/scripts/gvisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
CURRENTARCH=$(uname -m)
URL=https://storage.googleapis.com/gvisor/releases/release/latest/${CURRENTARCH}

wget ${URL}/runsc ${URL}/runsc.sha512 ${URL}/containerd-shim-runsc-v1 ${URL}/containerd-shim-runsc-v1.sha512
curl --remote-name-all ${URL}/{runsc,runsc.sha512,containerd-shim-runsc-v1,containerd-shim-runsc-v1.sha512}
sha512sum -c runsc.sha512 -c containerd-shim-runsc-v1.sha512
rm -f *.sha512

Expand Down

0 comments on commit a97e70d

Please sign in to comment.