Skip to content

Commit

Permalink
Introduce AL2023 to CI tests (#1471)
Browse files Browse the repository at this point in the history
* Introduce AL2023 to CI tests

* fix } typo

* Leave the default behavior to Al2022

* revert changes to remote exec

* Add al2023 to batch test generator

* Fix typo with command
  • Loading branch information
Kausik-A authored Oct 31, 2023
1 parent 6eaa129 commit efb8515
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions terraform/ec2/amis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,34 @@ while sudo fuser {/var/{lib/{dpkg,apt/lists},cache/apt/archives}/lock,/var/lib/d
done
sudo dpkg -i amazon-ssm-agent.deb
sudo systemctl enable amazon-ssm-agent
EOF
}
#AL3
amazonlinux3 = {
os_family = "amazon_linux"
ami_search_pattern = "al2023-ami-2023*"
ami_owner = "amazon"
ami_product_code = []
family = "linux"
arch = "amd64"
login_user = "ec2-user"
user_data = <<EOF
#! /bin/bash
sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
EOF
}
arm_amazonlinux3 = {
os_family = "amazon_linux"
ami_search_pattern = "al2023-ami-2023*"
ami_owner = "amazon"
ami_product_code = []
family = "linux"
arch = "arm64"
login_user = "ec2-user"
instance_type = "c6g.large"
user_data = <<EOF
#! /bin/bash
sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_arm64/amazon-ssm-agent.rpm
EOF
}
#AL2
Expand Down
2 changes: 2 additions & 0 deletions tools/batchTestGenerator/internal/testCaseBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ var ec2AMIs = []string{
"arm_debian10",
"amazonlinux2",
"arm_amazonlinux2",
"amazonlinux3",
"arm_amazonlinux3",
"windows2022",
"windows2019",
"suse15",
Expand Down

0 comments on commit efb8515

Please sign in to comment.