@rio-cloud/cdk-v2-constructs 4.31.2 → 4.33.0
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/.jsii +172 -102
- package/API.md +85 -22
- package/CHANGELOG.md +20 -0
- package/README.md +3 -3
- package/lib/contributions/team-oubout-order-book/aws-ecs-abruptly-stopped-monitor/aws-ecs-abruptly-stopped-monitor.d.ts +36 -12
- package/lib/contributions/team-oubout-order-book/aws-ecs-abruptly-stopped-monitor/aws-ecs-abruptly-stopped-monitor.js +17 -11
- package/lib/contributions/team-transport-two/pipeline/pipeline-stack.d.ts +3 -0
- package/lib/contributions/team-transport-two/pipeline/pipeline-stack.js +46 -25
- package/lib/index.js +1 -1
- package/lib/kafka/kafka-event-spec.js +4 -3
- package/lib/kafka/kafka-topic.d.ts +8 -0
- package/lib/kafka/kafka-topic.js +9 -1
- package/package.json +1 -1
- package/version.json +1 -1
package/API.md
CHANGED
|
@@ -607,19 +607,25 @@ The tree node.
|
|
|
607
607
|
|
|
608
608
|
### AwsEcsAbruptlyStoppedMonitor <a name="AwsEcsAbruptlyStoppedMonitor" id="@rio-cloud/cdk-v2-constructs.AwsEcsAbruptlyStoppedMonitor"></a>
|
|
609
609
|
|
|
610
|
-
# WARNING: This construct is still
|
|
610
|
+
# WARNING: This construct is still in the beta phase.
|
|
611
611
|
|
|
612
|
-
The construct creates monitoring for detecting ECS containers that were stopped abruptly for reasons such as,
|
|
613
|
-
out of memory, failed health checks.
|
|
612
|
+
The construct creates monitoring for detecting ECS containers that were stopped abruptly by AWS for reasons such as,
|
|
613
|
+
out of memory, or failed health checks.
|
|
614
614
|
|
|
615
|
-
|
|
616
|
-
|
|
615
|
+
This monitor adds transparency to such cases, which otherwise would happen without being noticed and could escalate
|
|
616
|
+
to bigger issues, like a service that requires more resources to run properly.
|
|
617
617
|
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
The construct will consume the ECS events and send them to a CloudWatch log group, which are forwarded to Datadog,
|
|
619
|
+
allowing better analyses since AWS keeps the stopped task details for only one hour and will be used to create a
|
|
620
|
+
monitor.
|
|
620
621
|
|
|
621
|
-
|
|
622
|
-
|
|
622
|
+
Contributions are more than welcome, please get in touch with Team Outbound to ensure compatibility.
|
|
623
|
+
|
|
624
|
+
This construct was based on an AWS blog post about ECS anomaly detection, see here:
|
|
625
|
+
{@link https://aws.amazon.com/blogs/containers/amazon-elastic-container-service-anomaly-detection-using-amazon-eventbridge/}.
|
|
626
|
+
|
|
627
|
+
More details on the AWS ECS events can be found here:
|
|
628
|
+
{@link https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_cwe_events.html}.
|
|
623
629
|
|
|
624
630
|
#### Initializers <a name="Initializers" id="@rio-cloud/cdk-v2-constructs.AwsEcsAbruptlyStoppedMonitor.Initializer"></a>
|
|
625
631
|
|
|
@@ -8532,43 +8538,66 @@ const ecsAbruptlyStoppedMonitorProps: EcsAbruptlyStoppedMonitorProps = { ... }
|
|
|
8532
8538
|
|
|
8533
8539
|
| **Name** | **Type** | **Description** |
|
|
8534
8540
|
| --- | --- | --- |
|
|
8535
|
-
| <code><a href="#@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.
|
|
8536
|
-
| <code><a href="#@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.
|
|
8537
|
-
| <code><a href="#@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.
|
|
8541
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.serviceName">serviceName</a></code> | <code>string</code> | The name of the service to which the monitor belongs. |
|
|
8542
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.clusterArn">clusterArn</a></code> | <code>string</code> | ARN of the cluster that should be monitored, consuming only ECS events belonging to the cluster. |
|
|
8543
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.notification">notification</a></code> | <code>@rio-cloud/cdk-v2-constructs.datadogv2.INotification</code> | To explicitly disable notifications use {@link NoNotification }. |
|
|
8544
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.priority">priority</a></code> | <code>number</code> | The alert priority of the monitor. |
|
|
8538
8545
|
|
|
8539
8546
|
---
|
|
8540
8547
|
|
|
8541
|
-
##### `
|
|
8548
|
+
##### `serviceName`<sup>Required</sup> <a name="serviceName" id="@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.serviceName"></a>
|
|
8542
8549
|
|
|
8543
8550
|
```typescript
|
|
8544
|
-
public readonly
|
|
8551
|
+
public readonly serviceName: string;
|
|
8545
8552
|
```
|
|
8546
8553
|
|
|
8547
|
-
- *Type:*
|
|
8554
|
+
- *Type:* string
|
|
8555
|
+
|
|
8556
|
+
The name of the service to which the monitor belongs.
|
|
8557
|
+
|
|
8558
|
+
Used to generate the monitor name as well a apply the `service` tag.
|
|
8548
8559
|
|
|
8549
8560
|
---
|
|
8550
8561
|
|
|
8551
|
-
##### `
|
|
8562
|
+
##### `clusterArn`<sup>Optional</sup> <a name="clusterArn" id="@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.clusterArn"></a>
|
|
8552
8563
|
|
|
8553
8564
|
```typescript
|
|
8554
|
-
public readonly
|
|
8565
|
+
public readonly clusterArn: string;
|
|
8555
8566
|
```
|
|
8556
8567
|
|
|
8557
8568
|
- *Type:* string
|
|
8558
8569
|
|
|
8570
|
+
ARN of the cluster that should be monitored, consuming only ECS events belonging to the cluster.
|
|
8571
|
+
|
|
8572
|
+
If no cluster is provided, the monitor will consume ECS events for all clusters within the account.
|
|
8573
|
+
|
|
8559
8574
|
---
|
|
8560
8575
|
|
|
8561
|
-
##### `
|
|
8576
|
+
##### `notification`<sup>Optional</sup> <a name="notification" id="@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.notification"></a>
|
|
8562
8577
|
|
|
8563
8578
|
```typescript
|
|
8564
|
-
public readonly
|
|
8579
|
+
public readonly notification: INotification;
|
|
8565
8580
|
```
|
|
8566
8581
|
|
|
8567
|
-
- *Type:*
|
|
8582
|
+
- *Type:* @rio-cloud/cdk-v2-constructs.datadogv2.INotification
|
|
8583
|
+
- *Default:* {@link DefaultSlackNotification }
|
|
8584
|
+
|
|
8585
|
+
To explicitly disable notifications use {@link NoNotification }.
|
|
8586
|
+
|
|
8587
|
+
> [https://docs.datadoghq.com/monitors/notify](https://docs.datadoghq.com/monitors/notify)
|
|
8588
|
+
|
|
8589
|
+
---
|
|
8590
|
+
|
|
8591
|
+
##### `priority`<sup>Optional</sup> <a name="priority" id="@rio-cloud/cdk-v2-constructs.EcsAbruptlyStoppedMonitorProps.property.priority"></a>
|
|
8568
8592
|
|
|
8569
|
-
|
|
8593
|
+
```typescript
|
|
8594
|
+
public readonly priority: number;
|
|
8595
|
+
```
|
|
8570
8596
|
|
|
8571
|
-
|
|
8597
|
+
- *Type:* number
|
|
8598
|
+
- *Default:* {@link DatadogMonitor.DEFAULT_PRIORITY }
|
|
8599
|
+
|
|
8600
|
+
The alert priority of the monitor.
|
|
8572
8601
|
|
|
8573
8602
|
---
|
|
8574
8603
|
|
|
@@ -8792,6 +8821,7 @@ const kafkaAclStatement: KafkaAclStatement = { ... }
|
|
|
8792
8821
|
| --- | --- | --- |
|
|
8793
8822
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaAclStatement.property.read">read</a></code> | <code>string[]</code> | List of clients that should get read permissions. |
|
|
8794
8823
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaAclStatement.property.write">write</a></code> | <code>string[]</code> | List of clients that should get write permissions. |
|
|
8824
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.KafkaAclStatement.property.delete">delete</a></code> | <code>string[]</code> | List of clients that should get delete permissions. |
|
|
8795
8825
|
|
|
8796
8826
|
---
|
|
8797
8827
|
|
|
@@ -8819,6 +8849,22 @@ List of clients that should get write permissions.
|
|
|
8819
8849
|
|
|
8820
8850
|
---
|
|
8821
8851
|
|
|
8852
|
+
##### `delete`<sup>Optional</sup> <a name="delete" id="@rio-cloud/cdk-v2-constructs.KafkaAclStatement.property.delete"></a>
|
|
8853
|
+
|
|
8854
|
+
```typescript
|
|
8855
|
+
public readonly delete: string[];
|
|
8856
|
+
```
|
|
8857
|
+
|
|
8858
|
+
- *Type:* string[]
|
|
8859
|
+
|
|
8860
|
+
List of clients that should get delete permissions.
|
|
8861
|
+
|
|
8862
|
+
Attention: Only use Deletion policy if you know what you are doing!
|
|
8863
|
+
This is only necessary for KStream and allows the application to delete messages and the topic.<br>
|
|
8864
|
+
If you just want to "delete" a message on a log compacted topic, you should not set this permission and send a tombstone message instead.
|
|
8865
|
+
|
|
8866
|
+
---
|
|
8867
|
+
|
|
8822
8868
|
### KafkaAclStatement <a name="KafkaAclStatement" id="@rio-cloud/cdk-v2-constructs.kafka.KafkaAclStatement"></a>
|
|
8823
8869
|
|
|
8824
8870
|
Read and write permissions for the topic.
|
|
@@ -8839,6 +8885,7 @@ const kafkaAclStatement: kafka.KafkaAclStatement = { ... }
|
|
|
8839
8885
|
| --- | --- | --- |
|
|
8840
8886
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaAclStatement.property.read">read</a></code> | <code>string[]</code> | List of clients that should get read permissions. |
|
|
8841
8887
|
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaAclStatement.property.write">write</a></code> | <code>string[]</code> | List of clients that should get write permissions. |
|
|
8888
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.kafka.KafkaAclStatement.property.delete">delete</a></code> | <code>string[]</code> | List of clients that should get delete permissions. |
|
|
8842
8889
|
|
|
8843
8890
|
---
|
|
8844
8891
|
|
|
@@ -8866,6 +8913,22 @@ List of clients that should get write permissions.
|
|
|
8866
8913
|
|
|
8867
8914
|
---
|
|
8868
8915
|
|
|
8916
|
+
##### `delete`<sup>Optional</sup> <a name="delete" id="@rio-cloud/cdk-v2-constructs.kafka.KafkaAclStatement.property.delete"></a>
|
|
8917
|
+
|
|
8918
|
+
```typescript
|
|
8919
|
+
public readonly delete: string[];
|
|
8920
|
+
```
|
|
8921
|
+
|
|
8922
|
+
- *Type:* string[]
|
|
8923
|
+
|
|
8924
|
+
List of clients that should get delete permissions.
|
|
8925
|
+
|
|
8926
|
+
Attention: Only use Deletion policy if you know what you are doing!
|
|
8927
|
+
This is only necessary for KStream and allows the application to delete messages and the topic.<br>
|
|
8928
|
+
If you just want to "delete" a message on a log compacted topic, you should not set this permission and send a tombstone message instead.
|
|
8929
|
+
|
|
8930
|
+
---
|
|
8931
|
+
|
|
8869
8932
|
### KafkaEventSpecProps <a name="KafkaEventSpecProps" id="@rio-cloud/cdk-v2-constructs.KafkaEventSpecProps"></a>
|
|
8870
8933
|
|
|
8871
8934
|
#### Initializer <a name="Initializer" id="@rio-cloud/cdk-v2-constructs.KafkaEventSpecProps.Initializer"></a>
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [4.33.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.32.0&sourceBranch=refs%2Ftags%2Fv4.33.0) (2024-04-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **pipeline:** Tag CodeBuild projects to improve metrics ([802246e](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/802246ec75ff6dc47c2100010ce54c84ba591bde))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Limit write access of KafkaEventSpec custom resource to relevant SNS topic ([78603b5](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/78603b51259afc486816d0fdebe19e02d4c827b8))
|
|
16
|
+
* Revert to original CHANGELOG.md and version.json ([769de0e](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/769de0e1f9ab5b0e181eec86775a37f612010639))
|
|
17
|
+
|
|
18
|
+
## [4.32.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.31.2&sourceBranch=refs%2Ftags%2Fv4.32.0) (2024-04-08)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* deletion permission for KafkaTopic ([7e8c623](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/7e8c6231c4257227674eb3b99f884f2bd34a3bc0))
|
|
24
|
+
|
|
5
25
|
## [4.31.2](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.31.1&sourceBranch=refs%2Ftags%2Fv4.31.2) (2024-04-02)
|
|
6
26
|
|
|
7
27
|
## [4.31.1](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv4.31.0&sourceBranch=refs%2Ftags%2Fv4.31.1) (2024-03-22)
|
package/README.md
CHANGED
|
@@ -18,15 +18,15 @@ $ npm install --save @rio-cloud/cdk-v2-constructs
|
|
|
18
18
|
|
|
19
19
|
## See also
|
|
20
20
|
|
|
21
|
-
* [How to
|
|
21
|
+
* [How to contribute](./CONTRIBUTION.md)
|
|
22
22
|
* [Changelog](./CHANGELOG.md)
|
|
23
|
-
* [brief API
|
|
23
|
+
* [brief API description](./API.md)
|
|
24
24
|
|
|
25
25
|
## Internal documentation for library devs
|
|
26
26
|
[Documentation](./developers-readme.md)
|
|
27
27
|
|
|
28
28
|
## FAQ's
|
|
29
|
-
- How can I
|
|
29
|
+
- How can I update the thresholds of monitors created by watchful?
|
|
30
30
|
|
|
31
31
|
There is an `overrideAlarmThreshold` method which can be used to override the default watchful thresholds. Please make aure to use the method before the `watchscope` function.
|
|
32
32
|
Eg -
|
|
@@ -1,28 +1,52 @@
|
|
|
1
1
|
import { Construct } from 'constructs';
|
|
2
2
|
import { INotification } from '../../../datadogv2';
|
|
3
3
|
export interface EcsAbruptlyStoppedMonitorProps {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the service to which the monitor belongs.
|
|
6
|
+
*
|
|
7
|
+
* Used to generate the monitor name as well a apply the `service` tag.
|
|
8
|
+
*/
|
|
4
9
|
readonly serviceName: string;
|
|
5
|
-
readonly notification: INotification;
|
|
6
10
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
11
|
+
* To explicitly disable notifications use {@link NoNotification}.
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue {@link DefaultSlackNotification}
|
|
14
|
+
*
|
|
15
|
+
* @see https://docs.datadoghq.com/monitors/notify
|
|
16
|
+
*/
|
|
17
|
+
readonly notification?: INotification;
|
|
18
|
+
/**
|
|
19
|
+
* The alert priority of the monitor
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue {@link DatadogMonitor.DEFAULT_PRIORITY}
|
|
22
|
+
*/
|
|
23
|
+
readonly priority?: number;
|
|
24
|
+
/**
|
|
25
|
+
* ARN of the cluster that should be monitored, consuming only ECS events belonging to the cluster.
|
|
26
|
+
* If no cluster is provided, the monitor will consume ECS events for all clusters within the account.
|
|
9
27
|
*/
|
|
10
28
|
readonly clusterArn?: string;
|
|
11
29
|
}
|
|
12
30
|
/**
|
|
13
|
-
* # WARNING: This construct is still
|
|
31
|
+
* # WARNING: This construct is still in the beta phase.
|
|
14
32
|
*
|
|
15
|
-
* The construct creates monitoring for detecting ECS containers that were stopped abruptly for reasons such as,
|
|
16
|
-
* out of memory, failed health checks.
|
|
33
|
+
* The construct creates monitoring for detecting ECS containers that were stopped abruptly by AWS for reasons such as,
|
|
34
|
+
* out of memory, or failed health checks.
|
|
17
35
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
36
|
+
* This monitor adds transparency to such cases, which otherwise would happen without being noticed and could escalate
|
|
37
|
+
* to bigger issues, like a service that requires more resources to run properly.
|
|
20
38
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
39
|
+
* The construct will consume the ECS events and send them to a CloudWatch log group, which are forwarded to Datadog,
|
|
40
|
+
* allowing better analyses since AWS keeps the stopped task details for only one hour and will be used to create a
|
|
41
|
+
* monitor.
|
|
23
42
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
43
|
+
* Contributions are more than welcome, please get in touch with Team Outbound to ensure compatibility.
|
|
44
|
+
*
|
|
45
|
+
* This construct was based on an AWS blog post about ECS anomaly detection, see here:
|
|
46
|
+
* {@link https://aws.amazon.com/blogs/containers/amazon-elastic-container-service-anomaly-detection-using-amazon-eventbridge/}.
|
|
47
|
+
*
|
|
48
|
+
* More details on the AWS ECS events can be found here:
|
|
49
|
+
* {@link https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_cwe_events.html}.
|
|
26
50
|
*/
|
|
27
51
|
export declare class AwsEcsAbruptlyStoppedMonitor extends Construct {
|
|
28
52
|
constructor(scope: Construct, id: string, props: EcsAbruptlyStoppedMonitorProps);
|
|
@@ -7,19 +7,25 @@ const cdk = require("aws-cdk-lib");
|
|
|
7
7
|
const constructs_1 = require("constructs");
|
|
8
8
|
const datadogv2_1 = require("../../../datadogv2");
|
|
9
9
|
/**
|
|
10
|
-
* # WARNING: This construct is still
|
|
10
|
+
* # WARNING: This construct is still in the beta phase.
|
|
11
11
|
*
|
|
12
|
-
* The construct creates monitoring for detecting ECS containers that were stopped abruptly for reasons such as,
|
|
13
|
-
* out of memory, failed health checks.
|
|
12
|
+
* The construct creates monitoring for detecting ECS containers that were stopped abruptly by AWS for reasons such as,
|
|
13
|
+
* out of memory, or failed health checks.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* This monitor adds transparency to such cases, which otherwise would happen without being noticed and could escalate
|
|
16
|
+
* to bigger issues, like a service that requires more resources to run properly.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* The construct will consume the ECS events and send them to a CloudWatch log group, which are forwarded to Datadog,
|
|
19
|
+
* allowing better analyses since AWS keeps the stopped task details for only one hour and will be used to create a
|
|
20
|
+
* monitor.
|
|
20
21
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* Contributions are more than welcome, please get in touch with Team Outbound to ensure compatibility.
|
|
23
|
+
*
|
|
24
|
+
* This construct was based on an AWS blog post about ECS anomaly detection, see here:
|
|
25
|
+
* {@link https://aws.amazon.com/blogs/containers/amazon-elastic-container-service-anomaly-detection-using-amazon-eventbridge/}.
|
|
26
|
+
*
|
|
27
|
+
* More details on the AWS ECS events can be found here:
|
|
28
|
+
* {@link https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_cwe_events.html}.
|
|
23
29
|
*/
|
|
24
30
|
class AwsEcsAbruptlyStoppedMonitor extends constructs_1.Construct {
|
|
25
31
|
constructor(scope, id, props) {
|
|
@@ -59,7 +65,7 @@ class AwsEcsAbruptlyStoppedMonitor extends constructs_1.Construct {
|
|
|
59
65
|
query: `logs("account_id:${cdk.Stack.of(this).account} @aws.awslogs.logGroup:\"${ecsStateChangeLogGroup.logGroupName}\"").index("*").rollup("count").last("5m") >= 1`,
|
|
60
66
|
message: '{{#is_alert}}There are unexpected ECS status changes in the account ' +
|
|
61
67
|
'{{log.tags.account_id}}, more details here {{log.link}} {{/is_alert}}',
|
|
62
|
-
priority:
|
|
68
|
+
priority: props.priority ?? datadogv2_1.DatadogMonitor.DEFAULT_PRIORITY,
|
|
63
69
|
notification: props.notification,
|
|
64
70
|
});
|
|
65
71
|
}
|
|
@@ -67,4 +73,4 @@ class AwsEcsAbruptlyStoppedMonitor extends constructs_1.Construct {
|
|
|
67
73
|
exports.AwsEcsAbruptlyStoppedMonitor = AwsEcsAbruptlyStoppedMonitor;
|
|
68
74
|
_a = JSII_RTTI_SYMBOL_1;
|
|
69
75
|
AwsEcsAbruptlyStoppedMonitor[_a] = { fqn: "@rio-cloud/cdk-v2-constructs.AwsEcsAbruptlyStoppedMonitor", version: "0.0.0" };
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXdzLWVjcy1hYnJ1cHRseS1zdG9wcGVkLW1vbml0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29udHJpYnV0aW9ucy90ZWFtLW91Ym91dC1vcmRlci1ib29rL2F3cy1lY3MtYWJydXB0bHktc3RvcHBlZC1tb25pdG9yL2F3cy1lY3MtYWJydXB0bHktc3RvcHBlZC1tb25pdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLDJDQUF1QztBQUN2QyxrREFBaUc7QUFvQ2pHOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9CRztBQUNILE1BQWEsNEJBQTZCLFNBQVEsc0JBQVM7SUFDekQsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFxQztRQUM3RSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLE1BQU0sc0JBQXNCLEdBQUcsSUFBSSxHQUFHLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsd0JBQXdCLENBQUMsQ0FBQztRQUV6RixJQUFJLEdBQUcsQ0FBQyxRQUFRLENBQUMsWUFBWSxDQUFDLElBQUksRUFBRSw0QkFBNEIsRUFBRTtZQUNoRSxZQUFZLEVBQUUsc0JBQXNCLENBQUMsWUFB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ICAgICAgcXVlcnk6IGBsb2dzKFwiYWNjb3VudF9pZDoke2Nkay5TdGFjay5vZih0aGlzKS5hY2NvdW50fSBAYXdzLmF3c2xvZ3MubG9nR3JvdXA6XFxcIiR7XG4gICAgICAgIGVjc1N0YXRlQ2hhbmdlTG9nR3JvdXAubG9nR3JvdXBOYW1lXG4gICAgICB9XFxcIlwiKS5pbmRleChcIipcIikucm9sbHVwKFwiY291bnRcIikubGFzdChcIjVtXCIpID49IDFgLFxuICAgICAgbWVzc2FnZTogJ3t7I2lzX2FsZXJ0fX1UaGVyZSBhcmUgdW5leHBlY3RlZCBFQ1Mgc3RhdHVzIGNoYW5nZXMgaW4gdGhlIGFjY291bnQgJyArXG4gICAgICAgICAgICAgICAgJ3t7bG9nLnRhZ3MuYWNjb3VudF9pZH19LCBtb3JlIGRldGFpbHMgaGVyZSB7e2xvZy5saW5rfX0ge3svaXNfYWxlcnR9fScsXG4gICAgICBwcmlvcml0eTogcHJvcHMucHJpb3JpdHkgPz8gRGF0YWRvZ01vbml0b3IuREVGQVVMVF9QUklPUklUWSxcbiAgICAgIG5vdGlmaWNhdGlvbjogcHJvcHMubm90aWZpY2F0aW9uLFxuICAgIH0pO1xuICB9XG59XG5cbiJdfQ==
|
|
@@ -195,9 +195,12 @@ export declare class PipelineStack extends Stack {
|
|
|
195
195
|
private addMainPipeline;
|
|
196
196
|
private addBranchPipeline;
|
|
197
197
|
private addVulnerabilityPipeline;
|
|
198
|
+
private createStripAssetsStep;
|
|
198
199
|
private createCapabilityMonitoringDeployStep;
|
|
200
|
+
private createSecretsDeployStep;
|
|
199
201
|
private resolveDefaultBuildSpec;
|
|
200
202
|
private grantPermissionsForKafkaIntegration;
|
|
201
203
|
private loadBuildSpecFromFile;
|
|
202
204
|
private renamePipelineToLowerCase;
|
|
205
|
+
private tagCodeBuildProject;
|
|
203
206
|
}
|