@studion/infra-code-blocks 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,21 +6,21 @@ const aws = require("@pulumi/aws");
|
|
|
6
6
|
const constants_1 = require("../constants");
|
|
7
7
|
const config = new pulumi.Config('aws');
|
|
8
8
|
const awsRegion = config.require('region');
|
|
9
|
-
const AmazonLinux2023_ARM_EC2_AMI = aws.ec2.getAmiOutput({
|
|
10
|
-
filters: [
|
|
11
|
-
{ name: 'architecture', values: ['arm64'] },
|
|
12
|
-
{ name: 'root-device-type', values: ['ebs'] },
|
|
13
|
-
{ name: 'virtualization-type', values: ['hvm'] },
|
|
14
|
-
{ name: 'ena-support', values: ['true'] },
|
|
15
|
-
],
|
|
16
|
-
owners: ['amazon'],
|
|
17
|
-
nameRegex: 'al2023-ami-2023.2.20231030.1-kernel-6.1-arm64',
|
|
18
|
-
mostRecent: true,
|
|
19
|
-
});
|
|
20
9
|
class Ec2SSMConnect extends pulumi.ComponentResource {
|
|
21
10
|
constructor(name, args, opts = {}) {
|
|
22
11
|
super('studion:Ec2BastionSSMConnect', name, {}, opts);
|
|
23
12
|
const subnetId = args.privateSubnetId;
|
|
13
|
+
const AmazonLinux2023_ARM_EC2_AMI = aws.ec2.getAmiOutput({
|
|
14
|
+
filters: [
|
|
15
|
+
{ name: 'architecture', values: ['arm64'] },
|
|
16
|
+
{ name: 'root-device-type', values: ['ebs'] },
|
|
17
|
+
{ name: 'virtualization-type', values: ['hvm'] },
|
|
18
|
+
{ name: 'ena-support', values: ['true'] },
|
|
19
|
+
],
|
|
20
|
+
owners: ['amazon'],
|
|
21
|
+
nameRegex: 'al2023-ami-2023.3.20240122.0-kernel-6.1-arm64',
|
|
22
|
+
mostRecent: true,
|
|
23
|
+
});
|
|
24
24
|
this.ec2SecurityGroup = new aws.ec2.SecurityGroup(`${name}-ec2-security-group`, {
|
|
25
25
|
ingress: [
|
|
26
26
|
{
|