dcl-ops-lib 6.0.3 → 6.0.5

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.
@@ -15,7 +15,8 @@ const cloudflare = require("@pulumi/cloudflare");
15
15
  const utils_1 = require("./utils");
16
16
  /** Enables egress traffic to 0.0.0.0/0/all */
17
17
  function makeSecurityGroupAccessTheInternetV2(securityGroup, ruleName = "") {
18
- new aws.ec2.SecurityGroupRule((0, utils_1.withRuleName)("access-the-internet-v2", ruleName), {
18
+ new aws.ec2.SecurityGroupRule((0, utils_1.withRuleName)("access-internet-v2", ruleName), {
19
+ description: `Allow access to the internet`,
19
20
  securityGroupId: securityGroup.id,
20
21
  cidrBlocks: ["0.0.0.0/0"],
21
22
  fromPort: 65000,
@@ -26,7 +26,7 @@ const getDefaultLogs = (serviceName, logGroup) => {
26
26
  return {
27
27
  logDriver: "awslogs",
28
28
  options: {
29
- "awslogs-group": logGroup.name.apply((name) => name),
29
+ "awslogs-group": logGroup.name,
30
30
  "awslogs-region": "us-east-1",
31
31
  "awslogs-stream-prefix": serviceName,
32
32
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "6.0.3",
3
+ "version": "6.0.5",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"
package/prometheus.js CHANGED
@@ -23,12 +23,12 @@ exports.prometheusSecurityGroupId = (0, withCache_1.default)(() => __awaiter(voi
23
23
  return (yield prom.requireOutputValue("prometheusSecurityGroupId"));
24
24
  }));
25
25
  function makeSecurityGroupAccessibleByPrometheus(securityGroup, fromPort = 0, toPort = 0, ruleName = "") {
26
- new aws.ec2.SecurityGroupRule((0, utils_1.withRuleName)("access-the-internet-v2", ruleName), {
26
+ new aws.ec2.SecurityGroupRule((0, utils_1.withRuleName)("allow-prometheus", ruleName), {
27
27
  sourceSecurityGroupId: (0, exports.prometheusSecurityGroupId)(),
28
28
  description: `Allow access from prometheus`,
29
29
  fromPort,
30
30
  toPort,
31
- protocol: "-1",
31
+ protocol: "tcp",
32
32
  type: "egress",
33
33
  securityGroupId: securityGroup.id,
34
34
  }, { deleteBeforeReplace: true });