diff --git a/_integration/cdk.context.json b/_integration/cdk.context.json index a599483..1f05a78 100644 --- a/_integration/cdk.context.json +++ b/_integration/cdk.context.json @@ -3,5 +3,7 @@ "ap-northeast-1a", "ap-northeast-1c", "ap-northeast-1d" - ] + ], + "ssm:account=339712736426:parameterName=/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64:region=ap-northeast-1": "ami-039e8f15ccb15368a", + "ssm:account=339712736426:parameterName=/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-arm64:region=ap-northeast-1": "ami-0f5c39b95599ade7f" } diff --git a/_integration/lib/integration-stack.ts b/_integration/lib/integration-stack.ts index 1eb4869..2413c77 100644 --- a/_integration/lib/integration-stack.ts +++ b/_integration/lib/integration-stack.ts @@ -8,5 +8,17 @@ export class IntegrationStack extends cdk.Stack { // VPC const vpc = new ec2.Vpc(this, "MyVpc", {}); + + // Bastion EC2 Instance + const bastion = new ec2.Instance(this, "Bastion", { + vpc, + instanceType: ec2.InstanceType.of( + ec2.InstanceClass.T4G, + ec2.InstanceSize.MICRO + ), + machineImage: new ec2.AmazonLinux2023ImageSsmParameter({ + cpuType: ec2.AmazonLinuxCpuType.ARM_64, + }), + }); } }