Commit f556fd1
authored
feat(lambda): allow propagating function tags to loggroup (#34556)
### Issue # (if applicable)
same as #34473
Fixes an issue with test. This is resolved if you put the test above the metadata tests. Do not know the root cause.
```
FAIL aws-lambda/test/function.test.ts
● Test suite failed to run
TypeError: this.isNative is not a function
at Object.CallSiteToString [as toString] (../../node_modules/source-map-support/source-map-support.js:295:12)
at Function.prepareStackTrace (../../node_modules/source-map-support/source-map-support.js:446:37)
```
Closes #<issue number here>.
#17533
### Reason for this change
Refer README and issue.
### Description of changes
Added a feature flag USE_CDK_MANAGED_LAMBDA_LOGGROUP
Refer README section on ## Customizing Log Group Creation for more details
### Describe any new or updated permissions being added
N/A
### Description of how you validated changes
Unit and integ tests are added to this PR
### Checklist
- [x ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 2d6a3bc commit f556fd1
File tree
417 files changed
+34106
-2414
lines changed- packages
- @aws-cdk-testing/framework-integ/test
- aws-apigatewayv2-authorizers/test
- http
- websocket
- aws-apigatewayv2-integrations/test
- http
- websocket
- aws-apigateway/test
- authorizers
- aws-appconfig/test
- aws-appsync/test
- aws-autoscaling/test
- aws-certificatemanager/test
- aws-cloudformation/test
- aws-cloudfront-origins/test
- aws-cloudfront/test
- aws-cloudtrail/test
- aws-cloudwatch-actions/test
- aws-codedeploy/test/lambda
- aws-codepipeline-actions/test
- aws-cognito/test
- aws-config/test
- aws-dynamodb/test
- aws-ecr/test
- aws-ecs-patterns/test/ec2
- aws-ecs/test
- ec2
- log-drivers
- aws-eks/test
- aws-elasticloadbalancingv2-actions/test
- aws-elasticloadbalancingv2-targets/test
- aws-elasticloadbalancingv2/test
- aws-elasticsearch/test
- aws-events-targets/test
- aws-api
- ecs
- lambda
- logs
- aws-events/test
- aws-globalaccelerator-endpoints/test
- aws-globalaccelerator/test
- aws-kinesisfirehose/test
- aws-lambda-destinations/test
- aws-lambda-event-sources/test
- aws-lambda-nodejs/test
- aws-lambda/test
- integ.lambda.loggroup-tag-inherit.js.snapshot
- asset.530055f7515b3f0a47900f5df37e729ba40ca977b2d07b952bdefa2b8f883f42.bundle
- aws-logs-destinations/test
- aws-logs/test
- aws-opensearchservice/test
- aws-rds/test
- aws-route53-targets/test
- aws-route53/test
- aws-s3-deployment/test
- aws-s3-notifications/test/lambda
- aws-s3/test
- aws-scheduler-targets/test
- aws-secretsmanager/test
- aws-servicecatalog/test
- aws-ses-actions/test
- aws-ses/test
- aws-sns-subscriptions/test
- aws-sns/test
- aws-stepfunctions-tasks/test
- apigateway
- ecs
- eks
- emrcontainers
- http
- lambda
- sagemaker
- aws-synthetics/test
- core/test
- custom-resources/test
- aws-custom-resource
- custom-resource-config
- provider-framework
- lambda-layer-awscli/test
- lambda-layer-kubectl/test
- lambda-layer-node-proxy-agent/test
- pipelines/test
- triggers/test
- @aws-cdk
- app-staging-synthesizer-alpha/test
- aws-amplify-alpha/test
- aws-eks-v2-alpha/test
- aws-glue-alpha/test
- aws-iot-actions-alpha/test
- lambda
- opensearch
- aws-iotevents-actions-alpha/test/lambda
- aws-lambda-go-alpha/test
- aws-lambda-python-alpha/test
- aws-msk-alpha/test
- aws-pipes-alpha/test
- aws-pipes-enrichments-alpha/test
- aws-pipes-targets-alpha/test
- aws-redshift-alpha/test
- aws-s3objectlambda-alpha/test
- integ.s3objectlambda.js.snapshot
- integ-tests-alpha/test/assertions/providers
- integ.http-api-call-assertions.js.snapshot
- integ.invoke-function-assertions.js.snapshot
- aws-cdk-lib
- aws-lambda
- lib
- test
- aws-servicecatalog/test
- custom-resources/test
- custom-resource-config
- provider-framework
- cx-api
- lib
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
417 files changed
+34106
-2414
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi-default-apikey.ts
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
0 commit comments