Skip to content

Commit

Permalink
feat(cloud9-alpha): support image ids for Amazon Linux 2023 and Ubunt…
Browse files Browse the repository at this point in the history
…u 22.04
  • Loading branch information
go-to-k committed Dec 13, 2023
1 parent 14e5e50 commit 399e40a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/@aws-cdk/aws-cloud9-alpha/lib/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,18 @@ export enum ImageId {
* Create using Amazon Linux 2
*/
AMAZON_LINUX_2 = 'amazonlinux-2-x86_64',
/**
* Create using Amazon Linux 2023
*/
AMAZON_LINUX_2023 = 'amazonlinux-2023-x86_64',
/**
* Create using Ubunut 18.04
*/
UBUNTU_18_04 = 'ubuntu-18.04-x86_64'
UBUNTU_18_04 = 'ubuntu-18.04-x86_64',
/**
* Create using Ubunut 22.04
*/
UBUNTU_22_04 = 'ubuntu-22.04-x86_64',
}
/**
* Properties for Ec2Environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ test.each([

test.each([
[ImageId.AMAZON_LINUX_2, 'amazonlinux-2-x86_64'],
[ImageId.AMAZON_LINUX_2023, 'amazonlinux-2023-x86_64'],
[ImageId.UBUNTU_18_04, 'ubuntu-18.04-x86_64'],
[ImageId.UBUNTU_22_04, 'ubuntu-22.04-x86_64'],
])('has image ID property (%s)', (imageId, expected) => {
new cloud9.Ec2Environment(stack, 'C9Env', {
vpc,
Expand Down

0 comments on commit 399e40a

Please sign in to comment.