@awsless/cli 0.1.44 → 0.1.45
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.
- package/dist/bin.js +47 -37
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -161969,31 +161969,39 @@ var cacheFeature = defineFeature({
|
|
|
161969
161969
|
});
|
|
161970
161970
|
const masterHost = cache.endpoint.pipe((v) => v.at(0).address);
|
|
161971
161971
|
const masterPort = cache.endpoint.pipe((v) => v.at(0).port);
|
|
161972
|
+
new aws.vpc.SecurityGroupIngressRule(group, "master-rule-ip-v4", {
|
|
161973
|
+
securityGroupId: securityGroup.id,
|
|
161974
|
+
description: masterPort.pipe((port) => `Allow ipv4 on port: ${port}`),
|
|
161975
|
+
ipProtocol: "tcp",
|
|
161976
|
+
cidrIpv4: "0.0.0.0/0",
|
|
161977
|
+
fromPort: masterPort,
|
|
161978
|
+
toPort: masterPort
|
|
161979
|
+
});
|
|
161980
|
+
new aws.vpc.SecurityGroupIngressRule(group, "master-rule-ip-v6", {
|
|
161981
|
+
securityGroupId: securityGroup.id,
|
|
161982
|
+
description: masterPort.pipe((port) => `Allow ipv6 on port: ${port}`),
|
|
161983
|
+
ipProtocol: "tcp",
|
|
161984
|
+
cidrIpv6: "::/0",
|
|
161985
|
+
fromPort: masterPort,
|
|
161986
|
+
toPort: masterPort
|
|
161987
|
+
});
|
|
161972
161988
|
const slaveHost = cache.readerEndpoint.pipe((v) => v.at(0).address);
|
|
161973
161989
|
const slavePort = cache.readerEndpoint.pipe((v) => v.at(0).port);
|
|
161974
|
-
|
|
161975
|
-
|
|
161976
|
-
|
|
161977
|
-
|
|
161978
|
-
|
|
161979
|
-
|
|
161980
|
-
|
|
161981
|
-
|
|
161982
|
-
|
|
161983
|
-
|
|
161984
|
-
|
|
161985
|
-
|
|
161986
|
-
|
|
161987
|
-
|
|
161988
|
-
|
|
161989
|
-
allowClient("lambda", ctx.shared.get("vpc", "security-group-id"));
|
|
161990
|
-
ctx.onReady(() => {
|
|
161991
|
-
if (ctx.shared.has("job", "security-group-id")) {
|
|
161992
|
-
allowClient("job", ctx.shared.get("job", "security-group-id"));
|
|
161993
|
-
}
|
|
161994
|
-
for (const instance of ctx.shared.list("instance", "security-group-id")) {
|
|
161995
|
-
allowClient(instance.name, instance.id);
|
|
161996
|
-
}
|
|
161990
|
+
new aws.vpc.SecurityGroupIngressRule(group, "slave-rule-ip-v4", {
|
|
161991
|
+
securityGroupId: securityGroup.id,
|
|
161992
|
+
description: slavePort.pipe((port) => `Allow ipv4 on port: ${port}`),
|
|
161993
|
+
ipProtocol: "tcp",
|
|
161994
|
+
cidrIpv4: "0.0.0.0/0",
|
|
161995
|
+
fromPort: slavePort,
|
|
161996
|
+
toPort: slavePort
|
|
161997
|
+
});
|
|
161998
|
+
new aws.vpc.SecurityGroupIngressRule(group, "slave-rule-ip-v6", {
|
|
161999
|
+
securityGroupId: securityGroup.id,
|
|
162000
|
+
description: slavePort.pipe((port) => `Allow ipv6 on port: ${port}`),
|
|
162001
|
+
ipProtocol: "tcp",
|
|
162002
|
+
cidrIpv6: "::/0",
|
|
162003
|
+
fromPort: slavePort,
|
|
162004
|
+
toPort: slavePort
|
|
161997
162005
|
});
|
|
161998
162006
|
const prefix = `CACHE_${constantCase(ctx.stack.name)}_${constantCase(id)}`;
|
|
161999
162007
|
ctx.addEnv(`${prefix}_HOST`, masterHost);
|
|
@@ -163841,7 +163849,6 @@ exec /usr/app/program`
|
|
|
163841
163849
|
cidrIpv4: "0.0.0.0/0",
|
|
163842
163850
|
tags
|
|
163843
163851
|
});
|
|
163844
|
-
ctx.shared.add("instance", "security-group-id", name, { name, id: securityGroup.id });
|
|
163845
163852
|
const clusterName = ctx.shared.get("instance", "cluster-name");
|
|
163846
163853
|
const clusterArn = ctx.shared.get("instance", "cluster-arn");
|
|
163847
163854
|
const service = new aws.ecs.Service(group, "service", {
|
|
@@ -165598,19 +165605,22 @@ var pubsubFeature = defineFeature({
|
|
|
165598
165605
|
vpcId,
|
|
165599
165606
|
description: `${name}-task`
|
|
165600
165607
|
});
|
|
165601
|
-
|
|
165602
|
-
|
|
165603
|
-
|
|
165604
|
-
|
|
165605
|
-
|
|
165606
|
-
|
|
165607
|
-
|
|
165608
|
-
|
|
165609
|
-
|
|
165610
|
-
|
|
165611
|
-
|
|
165612
|
-
|
|
165613
|
-
|
|
165608
|
+
new aws.vpc.SecurityGroupIngressRule(group, "cache-rule-ip-v4", {
|
|
165609
|
+
securityGroupId: cacheSecurityGroup.id,
|
|
165610
|
+
description: redisPort.pipe((port) => `Allow ipv4 on port: ${port}`),
|
|
165611
|
+
ipProtocol: "tcp",
|
|
165612
|
+
cidrIpv4: "0.0.0.0/0",
|
|
165613
|
+
fromPort: redisPort,
|
|
165614
|
+
toPort: redisPort
|
|
165615
|
+
});
|
|
165616
|
+
new aws.vpc.SecurityGroupIngressRule(group, "cache-rule-ip-v6", {
|
|
165617
|
+
securityGroupId: cacheSecurityGroup.id,
|
|
165618
|
+
description: redisPort.pipe((port) => `Allow ipv6 on port: ${port}`),
|
|
165619
|
+
ipProtocol: "tcp",
|
|
165620
|
+
cidrIpv6: "::/0",
|
|
165621
|
+
fromPort: redisPort,
|
|
165622
|
+
toPort: redisPort
|
|
165623
|
+
});
|
|
165614
165624
|
const channel = `pubsub:${id}`;
|
|
165615
165625
|
const cloudfrontPrefixList = aws.ec2.getManagedPrefixList(group, "cloudfront-prefix-list", {
|
|
165616
165626
|
name: "com.amazonaws.global.cloudfront.origin-facing"
|