@rio-cloud/cdk-v2-constructs 2.0.2 → 2.0.3
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 +61 -38
- package/CHANGELOG.md +2 -0
- package/MIGRATION_GUIDE.md +20 -17
- package/lib/fargate/datadog.d.ts +76 -5
- package/lib/fargate/datadog.js +266 -196
- package/lib/fargate/rio-fargate-service.d.ts +36 -17
- package/lib/fargate/rio-fargate-service.js +92 -9
- package/package.json +2 -2
- package/version.json +1 -1
package/.jsii
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"js-yaml": "~4.1.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"aws-cdk-lib": "2.20.0",
|
|
14
|
+
"aws-cdk-lib": "^2.20.0",
|
|
15
15
|
"constructs": "^10.0.107"
|
|
16
16
|
},
|
|
17
17
|
"dependencyClosure": {
|
|
@@ -3244,14 +3244,14 @@
|
|
|
3244
3244
|
"abstract": true,
|
|
3245
3245
|
"docs": {
|
|
3246
3246
|
"default": "- No environment variables.",
|
|
3247
|
-
"remarks": "
|
|
3247
|
+
"remarks": "Some Datadog specific environment variables are not allowed to be set,\nbecause they are set automatically or computed from other attributes.\nThese are:\n* DD_ENV: Set same as prop stage\n* DD_SERVICE: Set same as prop serviceName\n* DD_VERSION: Set same as prop version\n* DD_TAGS: Set same as DatadogIntegrationProps#additionalTags\n* DD_LOGS_INJECTION: true\nOther DD_-prefixed vaiable may be added to this list.\n\nOther Environment variables set by default are overwritten if passed.\nThese are:\n* DD_SERVICE_MAPPING: database:fargate-web-app-aurora,java-aws-sdk:fargate-web-app-aws-sdk,kafka:fargate-web-app-kafka,mysql:fargate-web-app-aurora\n* DD_TRACE_SAMPLE_RATE: 1.0",
|
|
3248
3248
|
"stability": "stable",
|
|
3249
3249
|
"summary": "The environment variables to pass to the container."
|
|
3250
3250
|
},
|
|
3251
3251
|
"immutable": true,
|
|
3252
3252
|
"locationInModule": {
|
|
3253
3253
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3254
|
-
"line":
|
|
3254
|
+
"line": 100
|
|
3255
3255
|
},
|
|
3256
3256
|
"name": "environment",
|
|
3257
3257
|
"optional": true,
|
|
@@ -3274,7 +3274,7 @@
|
|
|
3274
3274
|
"immutable": true,
|
|
3275
3275
|
"locationInModule": {
|
|
3276
3276
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3277
|
-
"line":
|
|
3277
|
+
"line": 114
|
|
3278
3278
|
},
|
|
3279
3279
|
"name": "healthCheck",
|
|
3280
3280
|
"optional": true,
|
|
@@ -3292,7 +3292,7 @@
|
|
|
3292
3292
|
"immutable": true,
|
|
3293
3293
|
"locationInModule": {
|
|
3294
3294
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3295
|
-
"line":
|
|
3295
|
+
"line": 107
|
|
3296
3296
|
},
|
|
3297
3297
|
"name": "secrets",
|
|
3298
3298
|
"optional": true,
|
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
"kind": "enum",
|
|
3381
3381
|
"locationInModule": {
|
|
3382
3382
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3383
|
-
"line":
|
|
3383
|
+
"line": 289
|
|
3384
3384
|
},
|
|
3385
3385
|
"members": [
|
|
3386
3386
|
{
|
|
@@ -3607,10 +3607,33 @@
|
|
|
3607
3607
|
"kind": "interface",
|
|
3608
3608
|
"locationInModule": {
|
|
3609
3609
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3610
|
-
"line":
|
|
3610
|
+
"line": 215
|
|
3611
3611
|
},
|
|
3612
3612
|
"name": "DatadogIntegrationProps",
|
|
3613
3613
|
"properties": [
|
|
3614
|
+
{
|
|
3615
|
+
"abstract": true,
|
|
3616
|
+
"docs": {
|
|
3617
|
+
"remarks": "We would like to learn about your use cases.\n\nDefault tags are not allowed to be overridden!\n\nDefaults are:\n* env: Set to RioFargateServiceProps#stage prop\n* service: Set to RioFargateServiceProps#serviceName prop\n* version: Set to RioFargateServiceProps#version prop\n* account_id:${accountID}\n* account_name:${accountName}\n* region:${AWSRegion}\n* team:${teamName from ssm param /config/team/name}\n* team_identifier:${teamIdentifier from ssm param /config/team/identifier}",
|
|
3618
|
+
"stability": "stable",
|
|
3619
|
+
"summary": "Configure additional tags, which are appended to the defaults, When you define custom tags we would be glad if you contact us."
|
|
3620
|
+
},
|
|
3621
|
+
"immutable": true,
|
|
3622
|
+
"locationInModule": {
|
|
3623
|
+
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3624
|
+
"line": 286
|
|
3625
|
+
},
|
|
3626
|
+
"name": "additionalTags",
|
|
3627
|
+
"optional": true,
|
|
3628
|
+
"type": {
|
|
3629
|
+
"collection": {
|
|
3630
|
+
"elementtype": {
|
|
3631
|
+
"primitive": "string"
|
|
3632
|
+
},
|
|
3633
|
+
"kind": "map"
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
},
|
|
3614
3637
|
{
|
|
3615
3638
|
"abstract": true,
|
|
3616
3639
|
"docs": {
|
|
@@ -3622,7 +3645,7 @@
|
|
|
3622
3645
|
"immutable": true,
|
|
3623
3646
|
"locationInModule": {
|
|
3624
3647
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3625
|
-
"line":
|
|
3648
|
+
"line": 254
|
|
3626
3649
|
},
|
|
3627
3650
|
"name": "apmGetEndpointsToIgnore",
|
|
3628
3651
|
"optional": true,
|
|
@@ -3645,7 +3668,7 @@
|
|
|
3645
3668
|
"immutable": true,
|
|
3646
3669
|
"locationInModule": {
|
|
3647
3670
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3648
|
-
"line":
|
|
3671
|
+
"line": 221
|
|
3649
3672
|
},
|
|
3650
3673
|
"name": "cpu",
|
|
3651
3674
|
"optional": true,
|
|
@@ -3663,7 +3686,7 @@
|
|
|
3663
3686
|
"immutable": true,
|
|
3664
3687
|
"locationInModule": {
|
|
3665
3688
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3666
|
-
"line":
|
|
3689
|
+
"line": 261
|
|
3667
3690
|
},
|
|
3668
3691
|
"name": "datadogSidecarEssential",
|
|
3669
3692
|
"optional": true,
|
|
@@ -3681,7 +3704,7 @@
|
|
|
3681
3704
|
"immutable": true,
|
|
3682
3705
|
"locationInModule": {
|
|
3683
3706
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3684
|
-
"line":
|
|
3707
|
+
"line": 267
|
|
3685
3708
|
},
|
|
3686
3709
|
"name": "datadogSidecarTag",
|
|
3687
3710
|
"optional": true,
|
|
@@ -3699,7 +3722,7 @@
|
|
|
3699
3722
|
"immutable": true,
|
|
3700
3723
|
"locationInModule": {
|
|
3701
3724
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3702
|
-
"line":
|
|
3725
|
+
"line": 247
|
|
3703
3726
|
},
|
|
3704
3727
|
"name": "loggingModeForDatadogAgent",
|
|
3705
3728
|
"optional": true,
|
|
@@ -3717,7 +3740,7 @@
|
|
|
3717
3740
|
"immutable": true,
|
|
3718
3741
|
"locationInModule": {
|
|
3719
3742
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3720
|
-
"line":
|
|
3743
|
+
"line": 240
|
|
3721
3744
|
},
|
|
3722
3745
|
"name": "loggingModeForService",
|
|
3723
3746
|
"optional": true,
|
|
@@ -3736,7 +3759,7 @@
|
|
|
3736
3759
|
"immutable": true,
|
|
3737
3760
|
"locationInModule": {
|
|
3738
3761
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3739
|
-
"line":
|
|
3762
|
+
"line": 233
|
|
3740
3763
|
},
|
|
3741
3764
|
"name": "memoryLimitMiB",
|
|
3742
3765
|
"optional": true,
|
|
@@ -3971,7 +3994,7 @@
|
|
|
3971
3994
|
"kind": "interface",
|
|
3972
3995
|
"locationInModule": {
|
|
3973
3996
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3974
|
-
"line":
|
|
3997
|
+
"line": 117
|
|
3975
3998
|
},
|
|
3976
3999
|
"name": "FargateTaskDefinitionProps",
|
|
3977
4000
|
"properties": [
|
|
@@ -3986,7 +4009,7 @@
|
|
|
3986
4009
|
"immutable": true,
|
|
3987
4010
|
"locationInModule": {
|
|
3988
4011
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
3989
|
-
"line":
|
|
4012
|
+
"line": 135
|
|
3990
4013
|
},
|
|
3991
4014
|
"name": "cpu",
|
|
3992
4015
|
"type": {
|
|
@@ -4004,7 +4027,7 @@
|
|
|
4004
4027
|
"immutable": true,
|
|
4005
4028
|
"locationInModule": {
|
|
4006
4029
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4007
|
-
"line":
|
|
4030
|
+
"line": 153
|
|
4008
4031
|
},
|
|
4009
4032
|
"name": "memoryLimitMiB",
|
|
4010
4033
|
"type": {
|
|
@@ -4021,7 +4044,7 @@
|
|
|
4021
4044
|
"immutable": true,
|
|
4022
4045
|
"locationInModule": {
|
|
4023
4046
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4024
|
-
"line":
|
|
4047
|
+
"line": 161
|
|
4025
4048
|
},
|
|
4026
4049
|
"name": "desiredCount",
|
|
4027
4050
|
"optional": true,
|
|
@@ -4679,7 +4702,7 @@
|
|
|
4679
4702
|
"kind": "interface",
|
|
4680
4703
|
"locationInModule": {
|
|
4681
4704
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4682
|
-
"line":
|
|
4705
|
+
"line": 164
|
|
4683
4706
|
},
|
|
4684
4707
|
"name": "ListenerRule",
|
|
4685
4708
|
"properties": [
|
|
@@ -4691,7 +4714,7 @@
|
|
|
4691
4714
|
"immutable": true,
|
|
4692
4715
|
"locationInModule": {
|
|
4693
4716
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4694
|
-
"line":
|
|
4717
|
+
"line": 167
|
|
4695
4718
|
},
|
|
4696
4719
|
"name": "conditions",
|
|
4697
4720
|
"type": {
|
|
@@ -4711,7 +4734,7 @@
|
|
|
4711
4734
|
"immutable": true,
|
|
4712
4735
|
"locationInModule": {
|
|
4713
4736
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4714
|
-
"line":
|
|
4737
|
+
"line": 165
|
|
4715
4738
|
},
|
|
4716
4739
|
"name": "priority",
|
|
4717
4740
|
"type": {
|
|
@@ -4731,7 +4754,7 @@
|
|
|
4731
4754
|
"kind": "interface",
|
|
4732
4755
|
"locationInModule": {
|
|
4733
4756
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4734
|
-
"line":
|
|
4757
|
+
"line": 170
|
|
4735
4758
|
},
|
|
4736
4759
|
"name": "LoadBalancerOptions",
|
|
4737
4760
|
"properties": [
|
|
@@ -4744,7 +4767,7 @@
|
|
|
4744
4767
|
"immutable": true,
|
|
4745
4768
|
"locationInModule": {
|
|
4746
4769
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4747
|
-
"line":
|
|
4770
|
+
"line": 189
|
|
4748
4771
|
},
|
|
4749
4772
|
"name": "healthCheck",
|
|
4750
4773
|
"type": {
|
|
@@ -4760,7 +4783,7 @@
|
|
|
4760
4783
|
"immutable": true,
|
|
4761
4784
|
"locationInModule": {
|
|
4762
4785
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4763
|
-
"line":
|
|
4786
|
+
"line": 194
|
|
4764
4787
|
},
|
|
4765
4788
|
"name": "healthCheckGracePeriod",
|
|
4766
4789
|
"type": {
|
|
@@ -4776,7 +4799,7 @@
|
|
|
4776
4799
|
"immutable": true,
|
|
4777
4800
|
"locationInModule": {
|
|
4778
4801
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4779
|
-
"line":
|
|
4802
|
+
"line": 174
|
|
4780
4803
|
},
|
|
4781
4804
|
"name": "listener",
|
|
4782
4805
|
"type": {
|
|
@@ -4793,7 +4816,7 @@
|
|
|
4793
4816
|
"immutable": true,
|
|
4794
4817
|
"locationInModule": {
|
|
4795
4818
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4796
|
-
"line":
|
|
4819
|
+
"line": 184
|
|
4797
4820
|
},
|
|
4798
4821
|
"name": "listenerRules",
|
|
4799
4822
|
"type": {
|
|
@@ -4816,7 +4839,7 @@
|
|
|
4816
4839
|
"immutable": true,
|
|
4817
4840
|
"locationInModule": {
|
|
4818
4841
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4819
|
-
"line":
|
|
4842
|
+
"line": 212
|
|
4820
4843
|
},
|
|
4821
4844
|
"name": "deregistrationDelay",
|
|
4822
4845
|
"optional": true,
|
|
@@ -4835,7 +4858,7 @@
|
|
|
4835
4858
|
"immutable": true,
|
|
4836
4859
|
"locationInModule": {
|
|
4837
4860
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
4838
|
-
"line":
|
|
4861
|
+
"line": 203
|
|
4839
4862
|
},
|
|
4840
4863
|
"name": "slowStart",
|
|
4841
4864
|
"optional": true,
|
|
@@ -5284,7 +5307,7 @@
|
|
|
5284
5307
|
},
|
|
5285
5308
|
"locationInModule": {
|
|
5286
5309
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5287
|
-
"line":
|
|
5310
|
+
"line": 351
|
|
5288
5311
|
},
|
|
5289
5312
|
"parameters": [
|
|
5290
5313
|
{
|
|
@@ -5313,7 +5336,7 @@
|
|
|
5313
5336
|
"kind": "class",
|
|
5314
5337
|
"locationInModule": {
|
|
5315
5338
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5316
|
-
"line":
|
|
5339
|
+
"line": 308
|
|
5317
5340
|
},
|
|
5318
5341
|
"name": "RioFargateService",
|
|
5319
5342
|
"properties": [
|
|
@@ -5325,7 +5348,7 @@
|
|
|
5325
5348
|
"immutable": true,
|
|
5326
5349
|
"locationInModule": {
|
|
5327
5350
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5328
|
-
"line":
|
|
5351
|
+
"line": 347
|
|
5329
5352
|
},
|
|
5330
5353
|
"name": "connections",
|
|
5331
5354
|
"overrides": "aws-cdk-lib.aws_ec2.IConnectable",
|
|
@@ -5340,7 +5363,7 @@
|
|
|
5340
5363
|
"immutable": true,
|
|
5341
5364
|
"locationInModule": {
|
|
5342
5365
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5343
|
-
"line":
|
|
5366
|
+
"line": 343
|
|
5344
5367
|
},
|
|
5345
5368
|
"name": "datadogSideCarContainerDefinition",
|
|
5346
5369
|
"type": {
|
|
@@ -5354,7 +5377,7 @@
|
|
|
5354
5377
|
"immutable": true,
|
|
5355
5378
|
"locationInModule": {
|
|
5356
5379
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5357
|
-
"line":
|
|
5380
|
+
"line": 348
|
|
5358
5381
|
},
|
|
5359
5382
|
"name": "service",
|
|
5360
5383
|
"type": {
|
|
@@ -5368,7 +5391,7 @@
|
|
|
5368
5391
|
"immutable": true,
|
|
5369
5392
|
"locationInModule": {
|
|
5370
5393
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5371
|
-
"line":
|
|
5394
|
+
"line": 342
|
|
5372
5395
|
},
|
|
5373
5396
|
"name": "serviceContainerDefinition",
|
|
5374
5397
|
"type": {
|
|
@@ -5382,7 +5405,7 @@
|
|
|
5382
5405
|
"immutable": true,
|
|
5383
5406
|
"locationInModule": {
|
|
5384
5407
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5385
|
-
"line":
|
|
5408
|
+
"line": 345
|
|
5386
5409
|
},
|
|
5387
5410
|
"name": "taskDefinition",
|
|
5388
5411
|
"type": {
|
|
@@ -5396,7 +5419,7 @@
|
|
|
5396
5419
|
"immutable": true,
|
|
5397
5420
|
"locationInModule": {
|
|
5398
5421
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5399
|
-
"line":
|
|
5422
|
+
"line": 344
|
|
5400
5423
|
},
|
|
5401
5424
|
"name": "logRouterContainerDefinition",
|
|
5402
5425
|
"optional": true,
|
|
@@ -5411,7 +5434,7 @@
|
|
|
5411
5434
|
"immutable": true,
|
|
5412
5435
|
"locationInModule": {
|
|
5413
5436
|
"filename": "src/fargate/rio-fargate-service.ts",
|
|
5414
|
-
"line":
|
|
5437
|
+
"line": 349
|
|
5415
5438
|
},
|
|
5416
5439
|
"name": "targetGroup",
|
|
5417
5440
|
"optional": true,
|
|
@@ -7847,5 +7870,5 @@
|
|
|
7847
7870
|
}
|
|
7848
7871
|
},
|
|
7849
7872
|
"version": "0.0.0",
|
|
7850
|
-
"fingerprint": "
|
|
7873
|
+
"fingerprint": "Jy+OKKtMmQl6v7Nh66t68Cg+74EnVQYYcPwEwkdbVvs="
|
|
7851
7874
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.0.3](https://collaboration.msi.audi.com/stash/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv2.0.2&sourceBranch=refs%2Ftags%2Fv2.0.3) (2022-05-19)
|
|
6
|
+
|
|
5
7
|
### [2.0.2](https://collaboration.msi.audi.com/stash/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv2.0.1&sourceBranch=refs%2Ftags%2Fv2.0.2) (2022-04-21)
|
|
6
8
|
|
|
7
9
|
### [2.0.1](https://collaboration.msi.audi.com/stash/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv2.0.0&sourceBranch=refs%2Ftags%2Fv2.0.1) (2022-04-08)
|
package/MIGRATION_GUIDE.md
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
# Migration Guide
|
|
2
2
|
|
|
3
3
|
1. Remove projen if not already done
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
5.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
4
|
+
1. **remove projen** dependencies from `package.json`
|
|
5
|
+
2. **copy over** necessary tasks from `.projen/tasks.json` to `package.json`
|
|
6
|
+
3. **remove** `.projen` directory
|
|
7
|
+
* **avoid `eject`** as the resulting tasks script is unreadable and it contains unnecessary/unused features
|
|
8
|
+
* find a more detailed description [here](https://collaboration.msi.audi.com/confluence/display/RIOCLAID/Remove+Projen)
|
|
9
|
+
2. Update `aws-cdk` in `package-json` to latest 2.x version:
|
|
10
|
+
1. **install CDK v2**: `npm install --save-dev aws-cdk@2`
|
|
11
|
+
2. **remove CDK v1 dependencies** (e.g., `@aws-cdk/...`, `constructs`, `@rioclaid/cdk-constructs`) from `package.json`
|
|
12
|
+
3. **add `aws-cdk-lib`**: `npm install aws-cdk-lib`
|
|
13
|
+
3. **add `constructs`**: `npm install constructs@10`
|
|
14
|
+
4. **replace imports**: `$ npx -p aws-cdk-migration rewrite-imports-v2 <your-source-root-here>/**/*.ts`
|
|
15
|
+
5. update `cdk.json` (e.g., by generating a new CDKv2 app in another folder with `npx cdk@2 init app --language=typescript` and comparing its `cdk.json` with yours)
|
|
16
|
+
6. replace `@aws-cdk/assert` with `aws-cdk-lib/assertions` ando migrate expectations to `Template.fromStack(...).hasResource`
|
|
17
|
+
* additional information: [Official Migration Guide](https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html)
|
|
18
|
+
5. Replace `@rioclaid/cdk-constructs` with `@rio-cloud/cdk-v2-constructs`
|
|
19
|
+
* **add `@rio-cloud/cdk-v2-constructs`**: `npm install @rio-cloud/cdk-v2-constructs`
|
|
20
|
+
* replace imports `import * as rio from '@rioclaid/cdk-constructs'` with `import * as rio from '@rio-cloud/cdk-v2-constructs'`
|
|
21
|
+
6. In case you use `Claidometer`:\
|
|
22
|
+
There is a breaking change as the property `package` is a reserved keyword in some languages and thus has been renamed to `packageName`
|
|
23
|
+
7. Adopt `renovate.json`
|
package/lib/fargate/datadog.d.ts
CHANGED
|
@@ -2,17 +2,88 @@ import * as ecs from 'aws-cdk-lib/aws-ecs';
|
|
|
2
2
|
import * as ssm from 'aws-cdk-lib/aws-ssm';
|
|
3
3
|
import { Construct } from 'constructs';
|
|
4
4
|
import { DataDogLoggingMode, RioFargateService } from './rio-fargate-service';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Moved out static methods and imporoved signature. Use named import instead.
|
|
7
|
+
*/
|
|
5
8
|
export declare class DataDog {
|
|
6
|
-
static getFargateContainerEnvironmentVariables(scope: Construct, stage: string, serviceName: string, version: string, accountName: string, teamName: string
|
|
9
|
+
static getFargateContainerEnvironmentVariables(scope: Construct, stage: string, serviceName: string, version: string, accountName: string, teamName: string, teamIdentifier: string, additionalTags: {
|
|
10
|
+
[k: string]: string;
|
|
11
|
+
} | undefined): {
|
|
7
12
|
[key: string]: string;
|
|
8
13
|
};
|
|
9
|
-
static getApmServiceMappingEnvironmentVariableValue(serviceName: string): string;
|
|
10
14
|
static getFargateDockerLabels(stage: string, serviceName: string, version: string): {
|
|
11
15
|
[key: string]: string;
|
|
12
16
|
};
|
|
13
|
-
static addDatadogSidecar(scope: Construct, taskDefinition: ecs.TaskDefinition, accountName: string, teamName: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogSite: string, datadogLoggingMode: DataDogLoggingMode, apmGetResourcesToIgnore: string[], cpu: number, memoryLimitMiB: number, essential: boolean, containerTag: string
|
|
14
|
-
|
|
17
|
+
static addDatadogSidecar(scope: Construct, taskDefinition: ecs.TaskDefinition, accountName: string, teamName: string, teamIdentifier: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogSite: string, datadogLoggingMode: DataDogLoggingMode, apmGetResourcesToIgnore: string[], cpu: number, memoryLimitMiB: number, essential: boolean, containerTag: string, additionalTags: {
|
|
18
|
+
[k: string]: string;
|
|
19
|
+
} | undefined): ecs.ContainerDefinition;
|
|
15
20
|
static addFireLensLogRouter(taskDefinition: ecs.TaskDefinition, cpu: number, memoryLimitMiB: number): ecs.ContainerDefinition;
|
|
16
|
-
static setupLogging(scope: Construct, accountName: string, teamName: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogLoggingMode: DataDogLoggingMode, datadogSite: string, containerType: 'service' | 'datadog-sidecar'
|
|
21
|
+
static setupLogging(scope: Construct, accountName: string, teamName: string, teamIdentifier: string, stage: string, serviceName: string, version: string, datadogApiKeyParameter: ssm.IStringParameter, datadogLoggingMode: DataDogLoggingMode, datadogSite: string, containerType: 'service' | 'datadog-sidecar', additionalTags: {
|
|
22
|
+
[k: string]: string;
|
|
23
|
+
} | undefined): ecs.LogDriver;
|
|
17
24
|
static ensureLoggingAndMonitoringAreReadyBeforeServiceStarts(rioFargateService: RioFargateService): void;
|
|
18
25
|
}
|
|
26
|
+
export declare function getFargateContainerEnvironmentVariables(props: {
|
|
27
|
+
scope: Construct;
|
|
28
|
+
stage: string;
|
|
29
|
+
serviceName: string;
|
|
30
|
+
version: string;
|
|
31
|
+
accountName: string;
|
|
32
|
+
teamName: string;
|
|
33
|
+
teamIdentifier: string;
|
|
34
|
+
additionalTags: {
|
|
35
|
+
[k: string]: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
}): {
|
|
38
|
+
[key: string]: string;
|
|
39
|
+
};
|
|
40
|
+
export declare function getFargateDockerLabels(props: {
|
|
41
|
+
stage: string;
|
|
42
|
+
serviceName: string;
|
|
43
|
+
version: string;
|
|
44
|
+
}): {
|
|
45
|
+
[key: string]: string;
|
|
46
|
+
};
|
|
47
|
+
export declare function addDatadogSidecar(props: {
|
|
48
|
+
scope: Construct;
|
|
49
|
+
taskDefinition: ecs.TaskDefinition;
|
|
50
|
+
accountName: string;
|
|
51
|
+
teamName: string;
|
|
52
|
+
teamIdentifier: string;
|
|
53
|
+
stage: string;
|
|
54
|
+
serviceName: string;
|
|
55
|
+
version: string;
|
|
56
|
+
datadogApiKeyParameter: ssm.IStringParameter;
|
|
57
|
+
datadogSite: string;
|
|
58
|
+
datadogLoggingMode: DataDogLoggingMode;
|
|
59
|
+
apmGetResourcesToIgnore: string[];
|
|
60
|
+
cpu: number;
|
|
61
|
+
memoryLimitMiB: number;
|
|
62
|
+
essential: boolean;
|
|
63
|
+
containerTag: string;
|
|
64
|
+
additionalTags: {
|
|
65
|
+
[k: string]: string;
|
|
66
|
+
} | undefined;
|
|
67
|
+
}): ecs.ContainerDefinition;
|
|
68
|
+
export declare function addFireLensLogRouter(props: {
|
|
69
|
+
taskDefinition: ecs.TaskDefinition;
|
|
70
|
+
cpu: number;
|
|
71
|
+
memoryLimitMiB: number;
|
|
72
|
+
}): ecs.ContainerDefinition;
|
|
73
|
+
export declare function setupLogging(props: {
|
|
74
|
+
scope: Construct;
|
|
75
|
+
accountName: string;
|
|
76
|
+
teamName: string;
|
|
77
|
+
teamIdentifier: string;
|
|
78
|
+
stage: string;
|
|
79
|
+
serviceName: string;
|
|
80
|
+
version: string;
|
|
81
|
+
datadogApiKeyParameter: ssm.IStringParameter;
|
|
82
|
+
datadogLoggingMode: DataDogLoggingMode;
|
|
83
|
+
datadogSite: string;
|
|
84
|
+
containerType: 'service' | 'datadog-sidecar';
|
|
85
|
+
additionalTags: {
|
|
86
|
+
[k: string]: string;
|
|
87
|
+
} | undefined;
|
|
88
|
+
}): ecs.LogDriver;
|
|
89
|
+
export declare function ensureLoggingAndMonitoringAreReadyBeforeServiceStarts(rioFargateService: RioFargateService): void;
|