-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapshots for aws-lambda log-retention integ test
Signed-off-by: Francis <colifran@amazon.com>
- Loading branch information
Showing
8 changed files
with
32,412 additions
and
48 deletions.
There are no files selected for viewing
31,890 changes: 31,890 additions & 0 deletions
31,890
...ot/asset.f60471a7e85ebae9c2d317b383218cc3ebc6ef967337fd62cd5105a0cdeab396.bundle/index.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...tion.js.snapshot/awscdkinteglambdalogretentionDefaultTestDeployAssertD83F96C9.assets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"version": "32.0.0", | ||
"files": { | ||
"f60471a7e85ebae9c2d317b383218cc3ebc6ef967337fd62cd5105a0cdeab396": { | ||
"source": { | ||
"path": "asset.f60471a7e85ebae9c2d317b383218cc3ebc6ef967337fd62cd5105a0cdeab396.bundle", | ||
"packaging": "zip" | ||
}, | ||
"destinations": { | ||
"current_account-current_region": { | ||
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", | ||
"objectKey": "f60471a7e85ebae9c2d317b383218cc3ebc6ef967337fd62cd5105a0cdeab396.zip", | ||
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" | ||
} | ||
} | ||
}, | ||
"4a02815f85b828552bfbc5840ecdd41f1904422fb75b070611102c6f0fb4e652": { | ||
"source": { | ||
"path": "awscdkinteglambdalogretentionDefaultTestDeployAssertD83F96C9.template.json", | ||
"packaging": "file" | ||
}, | ||
"destinations": { | ||
"current_account-current_region": { | ||
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", | ||
"objectKey": "4a02815f85b828552bfbc5840ecdd41f1904422fb75b070611102c6f0fb4e652.json", | ||
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" | ||
} | ||
} | ||
} | ||
}, | ||
"dockerImages": {} | ||
} |
168 changes: 168 additions & 0 deletions
168
...on.js.snapshot/awscdkinteglambdalogretentionDefaultTestDeployAssertD83F96C9.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"Resources": { | ||
"AwsApiCallCloudWatchLogslistTagsLogGroup8ed0ac90ccd4fa87bd5c62a8329b3725": { | ||
"Type": "Custom::DeployAssert@SdkCallCloudWatchLogslistTagsLogGroup", | ||
"Properties": { | ||
"ServiceToken": { | ||
"Fn::GetAtt": [ | ||
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F", | ||
"Arn" | ||
] | ||
}, | ||
"service": "CloudWatchLogs", | ||
"api": "listTagsLogGroup", | ||
"expected": "{\"$ObjectLike\":{\"tags\":{\"env\":\"prod\",\"dept\":\"sales\"}}}", | ||
"parameters": { | ||
"logGroupName": "\"/aws/lambda/OneMonthFunction\"" | ||
}, | ||
"flattenResponse": "false", | ||
"salt": "1689991612223" | ||
}, | ||
"UpdateReplacePolicy": "Delete", | ||
"DeletionPolicy": "Delete" | ||
}, | ||
"SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73": { | ||
"Type": "AWS::IAM::Role", | ||
"Properties": { | ||
"AssumeRolePolicyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Action": "sts:AssumeRole", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": "lambda.amazonaws.com" | ||
} | ||
} | ||
] | ||
}, | ||
"ManagedPolicyArns": [ | ||
{ | ||
"Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" | ||
} | ||
], | ||
"Policies": [ | ||
{ | ||
"PolicyName": "Inline", | ||
"PolicyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"logs:ListTagsLogGroup" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"Action": [ | ||
"logs:ListTagsLogGroup" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F": { | ||
"Type": "AWS::Lambda::Function", | ||
"Properties": { | ||
"Runtime": "nodejs18.x", | ||
"Code": { | ||
"S3Bucket": { | ||
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" | ||
}, | ||
"S3Key": "f60471a7e85ebae9c2d317b383218cc3ebc6ef967337fd62cd5105a0cdeab396.zip" | ||
}, | ||
"Timeout": 120, | ||
"Handler": "index.handler", | ||
"Role": { | ||
"Fn::GetAtt": [ | ||
"SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73", | ||
"Arn" | ||
] | ||
} | ||
} | ||
}, | ||
"AwsApiCallCloudWatchLogslistTagsLogGroup14d9a178044977ae7c394809f52b8df9": { | ||
"Type": "Custom::DeployAssert@SdkCallCloudWatchLogslistTagsLogGroup", | ||
"Properties": { | ||
"ServiceToken": { | ||
"Fn::GetAtt": [ | ||
"SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F", | ||
"Arn" | ||
] | ||
}, | ||
"service": "CloudWatchLogs", | ||
"api": "listTagsLogGroup", | ||
"expected": "{\"$ObjectLike\":{\"tags\":{\"dept\":\"eng\"}}}", | ||
"parameters": { | ||
"logGroupName": "\"/aws/lambda/OneYearFunction\"" | ||
}, | ||
"flattenResponse": "false", | ||
"salt": "1689991612224" | ||
}, | ||
"UpdateReplacePolicy": "Delete", | ||
"DeletionPolicy": "Delete" | ||
} | ||
}, | ||
"Outputs": { | ||
"AssertionResultsAwsApiCallCloudWatchLogslistTagsLogGroup8ed0ac90ccd4fa87bd5c62a8329b3725": { | ||
"Value": { | ||
"Fn::GetAtt": [ | ||
"AwsApiCallCloudWatchLogslistTagsLogGroup8ed0ac90ccd4fa87bd5c62a8329b3725", | ||
"assertion" | ||
] | ||
} | ||
}, | ||
"AssertionResultsAwsApiCallCloudWatchLogslistTagsLogGroup14d9a178044977ae7c394809f52b8df9": { | ||
"Value": { | ||
"Fn::GetAtt": [ | ||
"AwsApiCallCloudWatchLogslistTagsLogGroup14d9a178044977ae7c394809f52b8df9", | ||
"assertion" | ||
] | ||
} | ||
} | ||
}, | ||
"Parameters": { | ||
"BootstrapVersion": { | ||
"Type": "AWS::SSM::Parameter::Value<String>", | ||
"Default": "/cdk-bootstrap/hnb659fds/version", | ||
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" | ||
} | ||
}, | ||
"Rules": { | ||
"CheckBootstrapVersion": { | ||
"Assertions": [ | ||
{ | ||
"Assert": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Contains": [ | ||
[ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5" | ||
], | ||
{ | ||
"Ref": "BootstrapVersion" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." | ||
} | ||
] | ||
} | ||
} | ||
} |
10 changes: 4 additions & 6 deletions
10
...k-testing/framework-integ/test/aws-lambda/test/integ.log-retention.js.snapshot/integ.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
{ | ||
"version": "32.0.0", | ||
"testCases": { | ||
"integ.log-retention": { | ||
"aws-cdk-integ-lambda-log-retention/DefaultTest": { | ||
"stacks": [ | ||
"aws-cdk-lambda-log-retention" | ||
], | ||
"diffAssets": false, | ||
"stackUpdateWorkflow": true | ||
"assertionStack": "aws-cdk-integ-lambda-log-retention/DefaultTest/DeployAssert", | ||
"assertionStackName": "awscdkinteglambdalogretentionDefaultTestDeployAssertD83F96C9" | ||
} | ||
}, | ||
"synthContext": {}, | ||
"enableLookups": false | ||
} | ||
} |
Oops, something went wrong.