Skip to content

Commit

Permalink
Move Localstack To AL2023 ARM (aws#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon authored Feb 20, 2024
1 parent 1d5554c commit 41a2168
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions localstack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
# @TODO use latest when this is fixed https://github.com/localstack/localstack/issues/5502
# Use 0.12.20 since this is last version that worked for now
image: localstack/localstack:0.12.20
# Use 0.13.0 since this is last version that worked for now
image: localstack/localstack:0.13.0
network_mode: bridge
ports:
- "127.0.0.1:53:53"
Expand Down
6 changes: 3 additions & 3 deletions terraform/ec2/localstack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ resource "aws_instance" "integration-test" {
inline = [
"cloud-init status --wait",
"clone the agent and start the localstack",
"git clone ${var.github_test_repo}",
"git clone --branch ${var.github_test_repo_branch} ${var.github_test_repo}",
"cd amazon-cloudwatch-agent-test",
"git reset --hard ${var.cwa_test_github_sha}",
"echo set up ssl pem for localstack, then start localstack",
Expand All @@ -67,7 +67,7 @@ resource "aws_instance" "integration-test" {
]
connection {
type = "ssh"
user = "ubuntu"
user = "ec2-user"
private_key = local.private_key_content
host = self.public_dns
}
Expand All @@ -83,6 +83,6 @@ data "aws_ami" "latest" {

filter {
name = "name"
values = ["cloudwatch-agent-integration-test-ubuntu*"]
values = ["cloudwatch-agent-integration-test-aarch64-al2023*"]
}
}
6 changes: 5 additions & 1 deletion terraform/ec2/localstack/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

variable "ec2_instance_type" {
type = string
default = "t3a.medium"
default = "m6g.medium"
}

variable "ssh_key_name" {
Expand Down Expand Up @@ -39,4 +39,8 @@ variable "github_test_repo" {
variable "s3_bucket" {
type = string
default = ""
}

variable "github_test_repo_branch" {
default = "main"
}

0 comments on commit 41a2168

Please sign in to comment.