diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.assets.json new file mode 100644 index 0000000000000..981bfd0350220 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.assets.json @@ -0,0 +1,19 @@ +{ + "version": "33.0.0", + "files": { + "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22": { + "source": { + "path": "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.template.json new file mode 100644 index 0000000000000..ad9d0fb73d1dd --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.template.json @@ -0,0 +1,36 @@ +{ + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "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." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.d.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.d.ts new file mode 100644 index 0000000000000..60193f14b4d6d --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.d.ts @@ -0,0 +1,14 @@ +interface LogRetentionEvent extends Omit { + ResourceProperties: { + ServiceToken: string; + LogGroupName: string; + LogGroupRegion?: string; + RetentionInDays?: string; + SdkRetry?: { + maxRetries?: string; + }; + RemovalPolicy?: string; + }; +} +export declare function handler(event: LogRetentionEvent, context: AWSLambda.Context): Promise; +export {}; diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.js b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.js new file mode 100644 index 0000000000000..8d4f5cf13f88d --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.js @@ -0,0 +1,192 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.handler = void 0; +/* eslint-disable no-console */ +// eslint-disable-next-line import/no-extraneous-dependencies +const Logs = require("@aws-sdk/client-cloudwatch-logs"); +/** + * Creates a log group and doesn't throw if it exists. + */ +async function createLogGroupSafe(logGroupName, client, withDelay) { + await withDelay(async () => { + try { + const params = { logGroupName }; + const command = new Logs.CreateLogGroupCommand(params); + await client.send(command); + } + catch (error) { + if (error instanceof Logs.ResourceAlreadyExistsException || error.name === 'ResourceAlreadyExistsException') { + // The log group is already created by the lambda execution + return; + } + throw error; + } + }); +} +/** + * Deletes a log group and doesn't throw if it does not exist. + */ +async function deleteLogGroup(logGroupName, client, withDelay) { + await withDelay(async () => { + try { + const params = { logGroupName }; + const command = new Logs.DeleteLogGroupCommand(params); + await client.send(command); + } + catch (error) { + if (error instanceof Logs.ResourceNotFoundException || error.name === 'ResourceNotFoundException') { + // The log group doesn't exist + return; + } + throw error; + } + }); +} +/** + * Puts or deletes a retention policy on a log group. + */ +async function setRetentionPolicy(logGroupName, client, withDelay, retentionInDays) { + await withDelay(async () => { + if (!retentionInDays) { + const params = { logGroupName }; + const deleteCommand = new Logs.DeleteRetentionPolicyCommand(params); + await client.send(deleteCommand); + } + else { + const params = { logGroupName, retentionInDays }; + const putCommand = new Logs.PutRetentionPolicyCommand(params); + await client.send(putCommand); + } + }); +} +async function handler(event, context) { + try { + console.log(JSON.stringify({ ...event, ResponseURL: '...' })); + // The target log group + const logGroupName = event.ResourceProperties.LogGroupName; + // The region of the target log group + const logGroupRegion = event.ResourceProperties.LogGroupRegion; + // Parse to AWS SDK retry options + const maxRetries = parseIntOptional(event.ResourceProperties.SdkRetry?.maxRetries) ?? 5; + const withDelay = makeWithDelay(maxRetries); + const sdkConfig = { + logger: console, + region: logGroupRegion, + maxAttempts: Math.max(5, maxRetries), // Use a minimum for SDK level retries, because it might include retryable failures that withDelay isn't checking for + }; + const client = new Logs.CloudWatchLogsClient(sdkConfig); + if (event.RequestType === 'Create' || event.RequestType === 'Update') { + // Act on the target log group + await createLogGroupSafe(logGroupName, client, withDelay); + await setRetentionPolicy(logGroupName, client, withDelay, parseIntOptional(event.ResourceProperties.RetentionInDays)); + // Configure the Log Group for the Custom Resource function itself + if (event.RequestType === 'Create') { + const clientForCustomResourceFunction = new Logs.CloudWatchLogsClient({ + logger: console, + region: process.env.AWS_REGION, + }); + // Set a retention policy of 1 day on the logs of this very function. + // Due to the async nature of the log group creation, the log group for this function might + // still be not created yet at this point. Therefore we attempt to create it. + // In case it is being created, createLogGroupSafe will handle the conflict. + await createLogGroupSafe(`/aws/lambda/${context.functionName}`, clientForCustomResourceFunction, withDelay); + // If createLogGroupSafe fails, the log group is not created even after multiple attempts. + // In this case we have nothing to set the retention policy on but an exception will skip + // the next line. + await setRetentionPolicy(`/aws/lambda/${context.functionName}`, clientForCustomResourceFunction, withDelay, 1); + } + } + // When the requestType is delete, delete the log group if the removal policy is delete + if (event.RequestType === 'Delete' && event.ResourceProperties.RemovalPolicy === 'destroy') { + await deleteLogGroup(logGroupName, client, withDelay); + // else retain the log group + } + await respond('SUCCESS', 'OK', logGroupName); + } + catch (e) { + console.log(e); + await respond('FAILED', e.message, event.ResourceProperties.LogGroupName); + } + function respond(responseStatus, reason, physicalResourceId) { + const responseBody = JSON.stringify({ + Status: responseStatus, + Reason: reason, + PhysicalResourceId: physicalResourceId, + StackId: event.StackId, + RequestId: event.RequestId, + LogicalResourceId: event.LogicalResourceId, + Data: { + // Add log group name as part of the response so that it's available via Fn::GetAtt + LogGroupName: event.ResourceProperties.LogGroupName, + }, + }); + console.log('Responding', responseBody); + // eslint-disable-next-line @typescript-eslint/no-require-imports + const parsedUrl = require('url').parse(event.ResponseURL); + const requestOptions = { + hostname: parsedUrl.hostname, + path: parsedUrl.path, + method: 'PUT', + headers: { + 'content-type': '', + 'content-length': Buffer.byteLength(responseBody, 'utf8'), + }, + }; + return new Promise((resolve, reject) => { + try { + // eslint-disable-next-line @typescript-eslint/no-require-imports + const request = require('https').request(requestOptions, resolve); + request.on('error', reject); + request.write(responseBody); + request.end(); + } + catch (e) { + reject(e); + } + }); + } +} +exports.handler = handler; +function parseIntOptional(value, base = 10) { + if (value === undefined) { + return undefined; + } + return parseInt(value, base); +} +function makeWithDelay(maxRetries, delayBase = 100, delayCap = 10 * 1000) { + // If we try to update the log group, then due to the async nature of + // Lambda logging there could be a race condition when the same log group is + // already being created by the lambda execution. This can sometime result in + // an error "OperationAbortedException: A conflicting operation is currently + // in progress...Please try again." + // To avoid an error, we do as requested and try again. + return async (block) => { + let attempts = 0; + do { + try { + return await block(); + } + catch (error) { + if (error instanceof Logs.OperationAbortedException + || error.name === 'OperationAbortedException' + || error.name === 'ThrottlingException' // There is no class to check with instanceof, see https://github.com/aws/aws-sdk-js-v3/issues/5140 + ) { + if (attempts < maxRetries) { + attempts++; + await new Promise(resolve => setTimeout(resolve, calculateDelay(attempts, delayBase, delayCap))); + continue; + } + else { + // The log group is still being changed by another execution but we are out of retries + throw new Error('Out of attempts to change log group'); + } + } + throw error; + } + } while (true); // exit happens on retry count check + }; +} +function calculateDelay(attempt, base, cap) { + return Math.round(Math.random() * Math.min(cap, base * 2 ** attempt)); +} +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBK0I7QUFDL0IsNkRBQTZEO0FBQzdELHdEQUF3RDtBQWV4RDs7R0FFRztBQUNILEtBQUssVUFBVSxrQkFBa0IsQ0FBQyxZQUFvQixFQUFFLE1BQWlDLEVBQUUsU0FBd0Q7SUFDakosTUFBTSxTQUFTLENBQUMsS0FBSyxJQUFJ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iAgICAgICAgdGhyb3cgZXJyb3I7XG4gICAgICB9XG4gICAgfSB3aGlsZSAodHJ1ZSk7IC8vIGV4aXQgaGFwcGVucyBvbiByZXRyeSBjb3VudCBjaGVja1xuICB9O1xufVxuXG5mdW5jdGlvbiBjYWxjdWxhdGVEZWxheShhdHRlbXB0OiBudW1iZXIsIGJhc2U6IG51bWJlciwgY2FwOiBudW1iZXIpOiBudW1iZXIge1xuICByZXR1cm4gTWF0aC5yb3VuZChNYXRoLnJhbmRvbSgpICogTWF0aC5taW4oY2FwLCBiYXNlICogMiAqKiBhdHRlbXB0KSk7XG59XG4iXX0= \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.ts new file mode 100644 index 0000000000000..88843fe3fa016 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0/index.ts @@ -0,0 +1,229 @@ +/* eslint-disable no-console */ +// eslint-disable-next-line import/no-extraneous-dependencies +import * as Logs from '@aws-sdk/client-cloudwatch-logs'; + +interface LogRetentionEvent extends Omit { + ResourceProperties: { + ServiceToken: string; + LogGroupName: string; + LogGroupRegion?: string; + RetentionInDays?: string; + SdkRetry?: { + maxRetries?: string; + }; + RemovalPolicy?: string + }; +} + +/** + * Creates a log group and doesn't throw if it exists. + */ +async function createLogGroupSafe(logGroupName: string, client: Logs.CloudWatchLogsClient, withDelay: (block: () => Promise) => Promise) { + await withDelay(async () => { + try { + const params = { logGroupName }; + const command = new Logs.CreateLogGroupCommand(params); + await client.send(command); + + } catch (error: any) { + if (error instanceof Logs.ResourceAlreadyExistsException || error.name === 'ResourceAlreadyExistsException') { + // The log group is already created by the lambda execution + return; + } + + throw error; + } + }); +} + +/** + * Deletes a log group and doesn't throw if it does not exist. + */ +async function deleteLogGroup(logGroupName: string, client: Logs.CloudWatchLogsClient, withDelay: (block: () => Promise) => Promise) { + await withDelay(async () => { + try { + const params = { logGroupName }; + const command = new Logs.DeleteLogGroupCommand(params); + await client.send(command); + + } catch (error: any) { + if (error instanceof Logs.ResourceNotFoundException || error.name === 'ResourceNotFoundException') { + // The log group doesn't exist + return; + } + + throw error; + } + }); +} + +/** + * Puts or deletes a retention policy on a log group. + */ +async function setRetentionPolicy( + logGroupName: string, + client: Logs.CloudWatchLogsClient, + withDelay: (block: () => Promise) => Promise, + retentionInDays?: number, +) { + + await withDelay(async () => { + if (!retentionInDays) { + const params = { logGroupName }; + const deleteCommand = new Logs.DeleteRetentionPolicyCommand(params); + await client.send(deleteCommand); + } else { + const params = { logGroupName, retentionInDays }; + const putCommand = new Logs.PutRetentionPolicyCommand(params); + await client.send(putCommand); + } + }); +} + +export async function handler(event: LogRetentionEvent, context: AWSLambda.Context) { + try { + console.log(JSON.stringify({ ...event, ResponseURL: '...' })); + + // The target log group + const logGroupName = event.ResourceProperties.LogGroupName; + + // The region of the target log group + const logGroupRegion = event.ResourceProperties.LogGroupRegion; + + // Parse to AWS SDK retry options + const maxRetries = parseIntOptional(event.ResourceProperties.SdkRetry?.maxRetries) ?? 5; + const withDelay = makeWithDelay(maxRetries); + + const sdkConfig: Logs.CloudWatchLogsClientConfig = { + logger: console, + region: logGroupRegion, + maxAttempts: Math.max(5, maxRetries), // Use a minimum for SDK level retries, because it might include retryable failures that withDelay isn't checking for + }; + const client = new Logs.CloudWatchLogsClient(sdkConfig); + + if (event.RequestType === 'Create' || event.RequestType === 'Update') { + // Act on the target log group + await createLogGroupSafe(logGroupName, client, withDelay); + await setRetentionPolicy(logGroupName, client, withDelay, parseIntOptional(event.ResourceProperties.RetentionInDays)); + + // Configure the Log Group for the Custom Resource function itself + if (event.RequestType === 'Create') { + const clientForCustomResourceFunction = new Logs.CloudWatchLogsClient({ + logger: console, + region: process.env.AWS_REGION, + }); + // Set a retention policy of 1 day on the logs of this very function. + // Due to the async nature of the log group creation, the log group for this function might + // still be not created yet at this point. Therefore we attempt to create it. + // In case it is being created, createLogGroupSafe will handle the conflict. + await createLogGroupSafe(`/aws/lambda/${context.functionName}`, clientForCustomResourceFunction, withDelay); + // If createLogGroupSafe fails, the log group is not created even after multiple attempts. + // In this case we have nothing to set the retention policy on but an exception will skip + // the next line. + await setRetentionPolicy(`/aws/lambda/${context.functionName}`, clientForCustomResourceFunction, withDelay, 1); + } + } + + // When the requestType is delete, delete the log group if the removal policy is delete + if (event.RequestType === 'Delete' && event.ResourceProperties.RemovalPolicy === 'destroy') { + await deleteLogGroup(logGroupName, client, withDelay); + // else retain the log group + } + + await respond('SUCCESS', 'OK', logGroupName); + } catch (e: any) { + console.log(e); + await respond('FAILED', e.message, event.ResourceProperties.LogGroupName); + } + + function respond(responseStatus: string, reason: string, physicalResourceId: string) { + const responseBody = JSON.stringify({ + Status: responseStatus, + Reason: reason, + PhysicalResourceId: physicalResourceId, + StackId: event.StackId, + RequestId: event.RequestId, + LogicalResourceId: event.LogicalResourceId, + Data: { + // Add log group name as part of the response so that it's available via Fn::GetAtt + LogGroupName: event.ResourceProperties.LogGroupName, + }, + }); + + console.log('Responding', responseBody); + + // eslint-disable-next-line @typescript-eslint/no-require-imports + const parsedUrl = require('url').parse(event.ResponseURL); + const requestOptions = { + hostname: parsedUrl.hostname, + path: parsedUrl.path, + method: 'PUT', + headers: { + 'content-type': '', + 'content-length': Buffer.byteLength(responseBody, 'utf8'), + }, + }; + + return new Promise((resolve, reject) => { + try { + // eslint-disable-next-line @typescript-eslint/no-require-imports + const request = require('https').request(requestOptions, resolve); + request.on('error', reject); + request.write(responseBody); + request.end(); + } catch (e) { + reject(e); + } + }); + } +} + +function parseIntOptional(value?: string, base = 10): number | undefined { + if (value === undefined) { + return undefined; + } + + return parseInt(value, base); +} + +function makeWithDelay( + maxRetries: number, + delayBase: number = 100, + delayCap = 10 * 1000, // 10s +): (block: () => Promise) => Promise { + // If we try to update the log group, then due to the async nature of + // Lambda logging there could be a race condition when the same log group is + // already being created by the lambda execution. This can sometime result in + // an error "OperationAbortedException: A conflicting operation is currently + // in progress...Please try again." + // To avoid an error, we do as requested and try again. + + return async (block: () => Promise) => { + let attempts = 0; + do { + try { + return await block(); + } catch (error: any) { + if ( + error instanceof Logs.OperationAbortedException + || error.name === 'OperationAbortedException' + || error.name === 'ThrottlingException' // There is no class to check with instanceof, see https://github.com/aws/aws-sdk-js-v3/issues/5140 + ) { + if (attempts < maxRetries ) { + attempts++; + await new Promise(resolve => setTimeout(resolve, calculateDelay(attempts, delayBase, delayCap))); + continue; + } else { + // The log group is still being changed by another execution but we are out of retries + throw new Error('Out of attempts to change log group'); + } + } + throw error; + } + } while (true); // exit happens on retry count check + }; +} + +function calculateDelay(attempt: number, base: number, cap: number): number { + return Math.round(Math.random() * Math.min(cap, base * 2 ** attempt)); +} diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries0.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries0.assets.json new file mode 100644 index 0000000000000..25f8107c811c1 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries0.assets.json @@ -0,0 +1,32 @@ +{ + "version": "33.0.0", + "files": { + "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0": { + "source": { + "path": "asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "9990a29f03d0c5431a972aeb27fc605359cf0093ddd08bfbdf611189e8116726": { + "source": { + "path": "aws-cdk-log-retention-integ-retries0.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "9990a29f03d0c5431a972aeb27fc605359cf0093ddd08bfbdf611189e8116726.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries0.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries0.template.json new file mode 100644 index 0000000000000..5226a72fe3ef4 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries0.template.json @@ -0,0 +1,972 @@ +{ + "Resources": { + "LogRetention0486EBFA5": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group0", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "logs:DeleteRetentionPolicy", + "logs:PutRetentionPolicy" + ], + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "logs:DeleteLogGroup", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group0:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group10:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group11:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group12:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group13:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group14:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group15:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group16:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group17:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group18:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group19:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group1:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group20:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group21:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group22:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group23:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group24:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group2:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group3:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group4:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group5:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group6:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group7:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group8:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group9:*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "Roles": [ + { + "Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ] + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Handler": "index.handler", + "Runtime": "nodejs18.x", + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0.zip" + }, + "Role": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB", + "Arn" + ] + } + }, + "DependsOn": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + ] + }, + "LogRetention1EE2E6696": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group1", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention21F957075": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group2", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention3148A75BA": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group3", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention494231F51": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group4", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention591D77AE3": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group5", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention6DF401EB9": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group6", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention72657EF61": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group7", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention880A4B8CA": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group8", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention90199550D": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group9", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention10F7ED9810": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group10", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention1122CC85FD": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group11", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention12FBA31490": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group12", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention136977A520": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group13", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention14731EBD69": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group14", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention153278A425": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group15", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention161FF830E5": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group16", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention176155FBE0": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group17", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention1831457E29": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group18", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention193D6F7E14": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group19", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2029711E62": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group20", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention21F0A3EBF1": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group21", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2233E364BF": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group22", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2397FB44A4": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group23", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention24A64A1B58": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries0/group24", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "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." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries1.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries1.assets.json new file mode 100644 index 0000000000000..80d0398ee84c1 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries1.assets.json @@ -0,0 +1,32 @@ +{ + "version": "33.0.0", + "files": { + "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0": { + "source": { + "path": "asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "86fd666939456783b17c970c3813e5a8ee324e05254c7487cabdcb039c586db9": { + "source": { + "path": "aws-cdk-log-retention-integ-retries1.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "86fd666939456783b17c970c3813e5a8ee324e05254c7487cabdcb039c586db9.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries1.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries1.template.json new file mode 100644 index 0000000000000..bea4c8516c2c1 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries1.template.json @@ -0,0 +1,972 @@ +{ + "Resources": { + "LogRetention0486EBFA5": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group0", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "logs:DeleteRetentionPolicy", + "logs:PutRetentionPolicy" + ], + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "logs:DeleteLogGroup", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group0:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group10:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group11:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group12:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group13:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group14:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group15:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group16:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group17:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group18:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group19:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group1:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group20:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group21:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group22:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group23:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group24:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group2:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group3:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group4:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group5:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group6:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group7:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group8:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group9:*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "Roles": [ + { + "Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ] + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Handler": "index.handler", + "Runtime": "nodejs18.x", + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0.zip" + }, + "Role": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB", + "Arn" + ] + } + }, + "DependsOn": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + ] + }, + "LogRetention1EE2E6696": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group1", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention21F957075": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group2", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention3148A75BA": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group3", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention494231F51": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group4", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention591D77AE3": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group5", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention6DF401EB9": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group6", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention72657EF61": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group7", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention880A4B8CA": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group8", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention90199550D": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group9", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention10F7ED9810": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group10", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention1122CC85FD": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group11", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention12FBA31490": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group12", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention136977A520": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group13", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention14731EBD69": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group14", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention153278A425": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group15", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention161FF830E5": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group16", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention176155FBE0": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group17", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention1831457E29": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group18", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention193D6F7E14": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group19", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2029711E62": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group20", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention21F0A3EBF1": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group21", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2233E364BF": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group22", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2397FB44A4": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group23", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention24A64A1B58": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries1/group24", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "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." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries2.assets.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries2.assets.json new file mode 100644 index 0000000000000..f004c74793b76 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries2.assets.json @@ -0,0 +1,32 @@ +{ + "version": "33.0.0", + "files": { + "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0": { + "source": { + "path": "asset.a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0", + "packaging": "zip" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0.zip", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + }, + "80155830078966c61d22e5166c107e5a9a1e6bdc892902f37610c6bef961e7c4": { + "source": { + "path": "aws-cdk-log-retention-integ-retries2.template.json", + "packaging": "file" + }, + "destinations": { + "current_account-current_region": { + "bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}", + "objectKey": "80155830078966c61d22e5166c107e5a9a1e6bdc892902f37610c6bef961e7c4.json", + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}" + } + } + } + }, + "dockerImages": {} +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries2.template.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries2.template.json new file mode 100644 index 0000000000000..2be99d090472c --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/aws-cdk-log-retention-integ-retries2.template.json @@ -0,0 +1,972 @@ +{ + "Resources": { + "LogRetention0486EBFA5": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group0", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "logs:DeleteRetentionPolicy", + "logs:PutRetentionPolicy" + ], + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "logs:DeleteLogGroup", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group0:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group10:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group11:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group12:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group13:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group14:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group15:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group16:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group17:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group18:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group19:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group1:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group20:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group21:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group22:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group23:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group24:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group2:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group3:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group4:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group5:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group6:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group7:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group8:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group9:*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "Roles": [ + { + "Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ] + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Handler": "index.handler", + "Runtime": "nodejs18.x", + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "a8515c042d9c942705087943220417be929ac44f968d8fcef2681681b400c0c0.zip" + }, + "Role": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB", + "Arn" + ] + } + }, + "DependsOn": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + ] + }, + "LogRetention1EE2E6696": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group1", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention21F957075": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group2", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention3148A75BA": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group3", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention494231F51": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group4", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention591D77AE3": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group5", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention6DF401EB9": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group6", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention72657EF61": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group7", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention880A4B8CA": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group8", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention90199550D": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group9", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention10F7ED9810": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group10", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention1122CC85FD": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group11", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention12FBA31490": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group12", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention136977A520": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group13", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention14731EBD69": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group14", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention153278A425": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group15", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention161FF830E5": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group16", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention176155FBE0": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group17", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention1831457E29": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group18", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention193D6F7E14": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group19", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2029711E62": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group20", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention21F0A3EBF1": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group21", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2233E364BF": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group22", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention2397FB44A4": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group23", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + }, + "LogRetention24A64A1B58": { + "Type": "Custom::LogRetention", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A", + "Arn" + ] + }, + "LogGroupName": "/aws-cdk-log-retention-integ-retries2/group24", + "RetentionInDays": 7, + "RemovalPolicy": "destroy" + } + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "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." + } + ] + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/cdk.out b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/cdk.out new file mode 100644 index 0000000000000..560dae10d018f --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/cdk.out @@ -0,0 +1 @@ +{"version":"33.0.0"} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/integ.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/integ.json new file mode 100644 index 0000000000000..0879f96c34d02 --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/integ.json @@ -0,0 +1,21 @@ +{ + "version": "33.0.0", + "testCases": { + "LogRetentionIntegRetries/DefaultTest": { + "stacks": [ + "aws-cdk-log-retention-integ-retries0", + "aws-cdk-log-retention-integ-retries1", + "aws-cdk-log-retention-integ-retries2" + ], + "cdkCommandOptions": { + "deploy": { + "args": { + "concurrency": 3 + } + } + }, + "assertionStack": "LogRetentionIntegRetries/DefaultTest/DeployAssert", + "assertionStackName": "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/manifest.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/manifest.json new file mode 100644 index 0000000000000..eaeea5c921eef --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/manifest.json @@ -0,0 +1,2728 @@ +{ + "version": "33.0.0", + "artifacts": { + "aws-cdk-log-retention-integ-retries0.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-log-retention-integ-retries0.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-log-retention-integ-retries0": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-log-retention-integ-retries0.template.json", + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9990a29f03d0c5431a972aeb27fc605359cf0093ddd08bfbdf611189e8116726.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-log-retention-integ-retries0.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "aws-cdk-log-retention-integ-retries0.assets" + ], + "metadata": { + "/aws-cdk-log-retention-integ-retries0/LogRetention0/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention0486EBFA5" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention1/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1EE2E6696" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention2/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention21F957075" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention3/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention3148A75BA" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention4/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention494231F51" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention5/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention591D77AE3" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention6/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention6DF401EB9" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention7/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention72657EF61" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention8/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention880A4B8CA" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention9/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention90199550D" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention10/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention10F7ED9810" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention11/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1122CC85FD" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention12/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention12FBA31490" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention13/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention136977A520" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention14/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention14731EBD69" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention15/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention153278A425" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention16/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention161FF830E5" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention17/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention176155FBE0" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention18/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1831457E29" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention19/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention193D6F7E14" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention20/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2029711E62" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention21/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention21F0A3EBF1" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention22/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2233E364BF" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention23/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2397FB44A4" + } + ], + "/aws-cdk-log-retention-integ-retries0/LogRetention24/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention24A64A1B58" + } + ], + "/aws-cdk-log-retention-integ-retries0/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-log-retention-integ-retries0/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ], + "hello0ServiceRole18B87FED": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0ServiceRole18B87FED", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello0FDC1C7D4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0FDC1C7D4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello0LogRetentionC8F721AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0LogRetentionC8F721AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1ServiceRole61803EDF": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1ServiceRole61803EDF", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1B794CF5A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1B794CF5A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1LogRetention8E9D08B2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1LogRetention8E9D08B2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2ServiceRole5C9CD8EE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2ServiceRole5C9CD8EE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2C049BA39": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2C049BA39", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2LogRetentionA2123D9B": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2LogRetentionA2123D9B", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello3ServiceRoleCD1C0951": [ + { + "type": "aws:cdk:logicalId", + "data": "hello3ServiceRoleCD1C0951", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello35665AF4E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello35665AF4E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello3LogRetention8F4AE9E4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello3LogRetention8F4AE9E4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4ServiceRole1A0FA08C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4ServiceRole1A0FA08C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4EE4D48AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4EE4D48AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4LogRetention80AF2389": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4LogRetention80AF2389", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5ServiceRole005C05EC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5ServiceRole005C05EC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5CFB46198": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5CFB46198", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5LogRetention5D258C6A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5LogRetention5D258C6A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello6ServiceRoleCB5A5511": [ + { + "type": "aws:cdk:logicalId", + "data": "hello6ServiceRoleCB5A5511", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello626F003DB": [ + { + "type": "aws:cdk:logicalId", + "data": "hello626F003DB", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello6LogRetention143EB32C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello6LogRetention143EB32C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello7ServiceRole1C2C58D2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello7ServiceRole1C2C58D2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello75E0B3E8C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello75E0B3E8C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello7LogRetentionB08781CE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello7LogRetentionB08781CE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8ServiceRole35753BB4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8ServiceRole35753BB4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8801993F8": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8801993F8", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8LogRetentionF5960D3A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8LogRetentionF5960D3A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9ServiceRoleBD9E97CC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9ServiceRoleBD9E97CC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9BFC0B703": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9BFC0B703", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9LogRetentionE34A4125": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9LogRetentionE34A4125", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello10ServiceRole474868C9": [ + { + "type": "aws:cdk:logicalId", + "data": "hello10ServiceRole474868C9", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1062D33987": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1062D33987", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello10LogRetention39275264": [ + { + "type": "aws:cdk:logicalId", + "data": "hello10LogRetention39275264", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello11ServiceRoleA7F4A2AF": [ + { + "type": "aws:cdk:logicalId", + "data": "hello11ServiceRoleA7F4A2AF", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1171FEC9AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1171FEC9AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello11LogRetention0EC20DD0": [ + { + "type": "aws:cdk:logicalId", + "data": "hello11LogRetention0EC20DD0", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello12ServiceRoleA76D5180": [ + { + "type": "aws:cdk:logicalId", + "data": "hello12ServiceRoleA76D5180", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello120B96E81D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello120B96E81D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello12LogRetentionD7164F3E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello12LogRetentionD7164F3E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello13ServiceRole8CA1C9B1": [ + { + "type": "aws:cdk:logicalId", + "data": "hello13ServiceRole8CA1C9B1", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1364C47B79": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1364C47B79", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello13LogRetention82EB7E45": [ + { + "type": "aws:cdk:logicalId", + "data": "hello13LogRetention82EB7E45", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello14ServiceRoleC31043C0": [ + { + "type": "aws:cdk:logicalId", + "data": "hello14ServiceRoleC31043C0", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello140C25FB09": [ + { + "type": "aws:cdk:logicalId", + "data": "hello140C25FB09", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello14LogRetention637A6A38": [ + { + "type": "aws:cdk:logicalId", + "data": "hello14LogRetention637A6A38", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello15ServiceRole57E5496A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello15ServiceRole57E5496A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1590886C17": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1590886C17", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello15LogRetentionEE365DDD": [ + { + "type": "aws:cdk:logicalId", + "data": "hello15LogRetentionEE365DDD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello16ServiceRole1F31EA8F": [ + { + "type": "aws:cdk:logicalId", + "data": "hello16ServiceRole1F31EA8F", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello165FD177B6": [ + { + "type": "aws:cdk:logicalId", + "data": "hello165FD177B6", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello16LogRetention2C237DA7": [ + { + "type": "aws:cdk:logicalId", + "data": "hello16LogRetention2C237DA7", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17ServiceRole85B6FE68": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17ServiceRole85B6FE68", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17BE899C71": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17BE899C71", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17LogRetentionCF72C750": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17LogRetentionCF72C750", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello18ServiceRole631ABDC6": [ + { + "type": "aws:cdk:logicalId", + "data": "hello18ServiceRole631ABDC6", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello183853BDDA": [ + { + "type": "aws:cdk:logicalId", + "data": "hello183853BDDA", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello18LogRetentionF558E7A5": [ + { + "type": "aws:cdk:logicalId", + "data": "hello18LogRetentionF558E7A5", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19ServiceRole30A31A1E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19ServiceRole30A31A1E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19E68A0C7A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19E68A0C7A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19LogRetention2FC87D23": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19LogRetention2FC87D23", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello20ServiceRole49BC2091": [ + { + "type": "aws:cdk:logicalId", + "data": "hello20ServiceRole49BC2091", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2096F721E2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2096F721E2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello20LogRetention7406AE13": [ + { + "type": "aws:cdk:logicalId", + "data": "hello20LogRetention7406AE13", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21ServiceRoleEB093398": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21ServiceRoleEB093398", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21B8049B0D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21B8049B0D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21LogRetention0F88CB8A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21LogRetention0F88CB8A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22ServiceRole22CED113": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22ServiceRole22CED113", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22ADC7BF12": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22ADC7BF12", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22LogRetention2A902D73": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22LogRetention2A902D73", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello23ServiceRoleBC985940": [ + { + "type": "aws:cdk:logicalId", + "data": "hello23ServiceRoleBC985940", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello232450EA9D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello232450EA9D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello23LogRetentionF35EA7AE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello23LogRetentionF35EA7AE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24ServiceRoleB669597E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24ServiceRoleB669597E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24A051F98A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24A051F98A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24LogRetention2F02EEBB": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24LogRetention2F02EEBB", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ] + }, + "displayName": "aws-cdk-log-retention-integ-retries0" + }, + "aws-cdk-log-retention-integ-retries1.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-log-retention-integ-retries1.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-log-retention-integ-retries1": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-log-retention-integ-retries1.template.json", + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/86fd666939456783b17c970c3813e5a8ee324e05254c7487cabdcb039c586db9.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-log-retention-integ-retries1.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "aws-cdk-log-retention-integ-retries1.assets" + ], + "metadata": { + "/aws-cdk-log-retention-integ-retries1/LogRetention0/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention0486EBFA5" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention1/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1EE2E6696" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention2/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention21F957075" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention3/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention3148A75BA" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention4/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention494231F51" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention5/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention591D77AE3" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention6/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention6DF401EB9" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention7/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention72657EF61" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention8/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention880A4B8CA" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention9/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention90199550D" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention10/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention10F7ED9810" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention11/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1122CC85FD" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention12/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention12FBA31490" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention13/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention136977A520" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention14/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention14731EBD69" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention15/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention153278A425" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention16/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention161FF830E5" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention17/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention176155FBE0" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention18/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1831457E29" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention19/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention193D6F7E14" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention20/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2029711E62" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention21/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention21F0A3EBF1" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention22/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2233E364BF" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention23/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2397FB44A4" + } + ], + "/aws-cdk-log-retention-integ-retries1/LogRetention24/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention24A64A1B58" + } + ], + "/aws-cdk-log-retention-integ-retries1/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-log-retention-integ-retries1/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ], + "hello0ServiceRole18B87FED": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0ServiceRole18B87FED", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello0FDC1C7D4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0FDC1C7D4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello0LogRetentionC8F721AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0LogRetentionC8F721AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1ServiceRole61803EDF": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1ServiceRole61803EDF", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1B794CF5A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1B794CF5A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1LogRetention8E9D08B2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1LogRetention8E9D08B2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2ServiceRole5C9CD8EE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2ServiceRole5C9CD8EE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2C049BA39": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2C049BA39", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2LogRetentionA2123D9B": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2LogRetentionA2123D9B", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello3ServiceRoleCD1C0951": [ + { + "type": "aws:cdk:logicalId", + "data": "hello3ServiceRoleCD1C0951", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello35665AF4E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello35665AF4E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello3LogRetention8F4AE9E4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello3LogRetention8F4AE9E4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4ServiceRole1A0FA08C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4ServiceRole1A0FA08C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4EE4D48AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4EE4D48AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4LogRetention80AF2389": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4LogRetention80AF2389", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5ServiceRole005C05EC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5ServiceRole005C05EC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5CFB46198": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5CFB46198", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5LogRetention5D258C6A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5LogRetention5D258C6A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello6ServiceRoleCB5A5511": [ + { + "type": "aws:cdk:logicalId", + "data": "hello6ServiceRoleCB5A5511", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello626F003DB": [ + { + "type": "aws:cdk:logicalId", + "data": "hello626F003DB", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello6LogRetention143EB32C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello6LogRetention143EB32C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello7ServiceRole1C2C58D2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello7ServiceRole1C2C58D2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello75E0B3E8C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello75E0B3E8C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello7LogRetentionB08781CE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello7LogRetentionB08781CE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8ServiceRole35753BB4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8ServiceRole35753BB4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8801993F8": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8801993F8", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8LogRetentionF5960D3A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8LogRetentionF5960D3A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9ServiceRoleBD9E97CC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9ServiceRoleBD9E97CC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9BFC0B703": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9BFC0B703", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9LogRetentionE34A4125": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9LogRetentionE34A4125", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello10ServiceRole474868C9": [ + { + "type": "aws:cdk:logicalId", + "data": "hello10ServiceRole474868C9", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1062D33987": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1062D33987", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello10LogRetention39275264": [ + { + "type": "aws:cdk:logicalId", + "data": "hello10LogRetention39275264", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello11ServiceRoleA7F4A2AF": [ + { + "type": "aws:cdk:logicalId", + "data": "hello11ServiceRoleA7F4A2AF", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1171FEC9AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1171FEC9AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello11LogRetention0EC20DD0": [ + { + "type": "aws:cdk:logicalId", + "data": "hello11LogRetention0EC20DD0", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello12ServiceRoleA76D5180": [ + { + "type": "aws:cdk:logicalId", + "data": "hello12ServiceRoleA76D5180", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello120B96E81D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello120B96E81D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello12LogRetentionD7164F3E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello12LogRetentionD7164F3E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello13ServiceRole8CA1C9B1": [ + { + "type": "aws:cdk:logicalId", + "data": "hello13ServiceRole8CA1C9B1", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1364C47B79": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1364C47B79", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello13LogRetention82EB7E45": [ + { + "type": "aws:cdk:logicalId", + "data": "hello13LogRetention82EB7E45", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello14ServiceRoleC31043C0": [ + { + "type": "aws:cdk:logicalId", + "data": "hello14ServiceRoleC31043C0", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello140C25FB09": [ + { + "type": "aws:cdk:logicalId", + "data": "hello140C25FB09", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello14LogRetention637A6A38": [ + { + "type": "aws:cdk:logicalId", + "data": "hello14LogRetention637A6A38", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello15ServiceRole57E5496A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello15ServiceRole57E5496A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1590886C17": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1590886C17", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello15LogRetentionEE365DDD": [ + { + "type": "aws:cdk:logicalId", + "data": "hello15LogRetentionEE365DDD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello16ServiceRole1F31EA8F": [ + { + "type": "aws:cdk:logicalId", + "data": "hello16ServiceRole1F31EA8F", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello165FD177B6": [ + { + "type": "aws:cdk:logicalId", + "data": "hello165FD177B6", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello16LogRetention2C237DA7": [ + { + "type": "aws:cdk:logicalId", + "data": "hello16LogRetention2C237DA7", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17ServiceRole85B6FE68": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17ServiceRole85B6FE68", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17BE899C71": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17BE899C71", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17LogRetentionCF72C750": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17LogRetentionCF72C750", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello18ServiceRole631ABDC6": [ + { + "type": "aws:cdk:logicalId", + "data": "hello18ServiceRole631ABDC6", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello183853BDDA": [ + { + "type": "aws:cdk:logicalId", + "data": "hello183853BDDA", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello18LogRetentionF558E7A5": [ + { + "type": "aws:cdk:logicalId", + "data": "hello18LogRetentionF558E7A5", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19ServiceRole30A31A1E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19ServiceRole30A31A1E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19E68A0C7A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19E68A0C7A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19LogRetention2FC87D23": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19LogRetention2FC87D23", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello20ServiceRole49BC2091": [ + { + "type": "aws:cdk:logicalId", + "data": "hello20ServiceRole49BC2091", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2096F721E2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2096F721E2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello20LogRetention7406AE13": [ + { + "type": "aws:cdk:logicalId", + "data": "hello20LogRetention7406AE13", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21ServiceRoleEB093398": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21ServiceRoleEB093398", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21B8049B0D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21B8049B0D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21LogRetention0F88CB8A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21LogRetention0F88CB8A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22ServiceRole22CED113": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22ServiceRole22CED113", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22ADC7BF12": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22ADC7BF12", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22LogRetention2A902D73": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22LogRetention2A902D73", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello23ServiceRoleBC985940": [ + { + "type": "aws:cdk:logicalId", + "data": "hello23ServiceRoleBC985940", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello232450EA9D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello232450EA9D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello23LogRetentionF35EA7AE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello23LogRetentionF35EA7AE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24ServiceRoleB669597E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24ServiceRoleB669597E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24A051F98A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24A051F98A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24LogRetention2F02EEBB": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24LogRetention2F02EEBB", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ] + }, + "displayName": "aws-cdk-log-retention-integ-retries1" + }, + "aws-cdk-log-retention-integ-retries2.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "aws-cdk-log-retention-integ-retries2.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "aws-cdk-log-retention-integ-retries2": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "aws-cdk-log-retention-integ-retries2.template.json", + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/80155830078966c61d22e5166c107e5a9a1e6bdc892902f37610c6bef961e7c4.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "aws-cdk-log-retention-integ-retries2.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "aws-cdk-log-retention-integ-retries2.assets" + ], + "metadata": { + "/aws-cdk-log-retention-integ-retries2/LogRetention0/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention0486EBFA5" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention1/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1EE2E6696" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention2/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention21F957075" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention3/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention3148A75BA" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention4/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention494231F51" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention5/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention591D77AE3" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention6/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention6DF401EB9" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention7/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention72657EF61" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention8/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention880A4B8CA" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention9/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention90199550D" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention10/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention10F7ED9810" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention11/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1122CC85FD" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention12/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention12FBA31490" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention13/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention136977A520" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention14/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention14731EBD69" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention15/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention153278A425" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention16/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention161FF830E5" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention17/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention176155FBE0" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention18/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention1831457E29" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention19/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention193D6F7E14" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention20/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2029711E62" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention21/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention21F0A3EBF1" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention22/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2233E364BF" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention23/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention2397FB44A4" + } + ], + "/aws-cdk-log-retention-integ-retries2/LogRetention24/Resource": [ + { + "type": "aws:cdk:logicalId", + "data": "LogRetention24A64A1B58" + } + ], + "/aws-cdk-log-retention-integ-retries2/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/aws-cdk-log-retention-integ-retries2/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ], + "hello0ServiceRole18B87FED": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0ServiceRole18B87FED", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello0FDC1C7D4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0FDC1C7D4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello0LogRetentionC8F721AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello0LogRetentionC8F721AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1ServiceRole61803EDF": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1ServiceRole61803EDF", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1B794CF5A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1B794CF5A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1LogRetention8E9D08B2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1LogRetention8E9D08B2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2ServiceRole5C9CD8EE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2ServiceRole5C9CD8EE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2C049BA39": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2C049BA39", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2LogRetentionA2123D9B": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2LogRetentionA2123D9B", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello3ServiceRoleCD1C0951": [ + { + "type": "aws:cdk:logicalId", + "data": "hello3ServiceRoleCD1C0951", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello35665AF4E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello35665AF4E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello3LogRetention8F4AE9E4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello3LogRetention8F4AE9E4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4ServiceRole1A0FA08C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4ServiceRole1A0FA08C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4EE4D48AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4EE4D48AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello4LogRetention80AF2389": [ + { + "type": "aws:cdk:logicalId", + "data": "hello4LogRetention80AF2389", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5ServiceRole005C05EC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5ServiceRole005C05EC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5CFB46198": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5CFB46198", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello5LogRetention5D258C6A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello5LogRetention5D258C6A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello6ServiceRoleCB5A5511": [ + { + "type": "aws:cdk:logicalId", + "data": "hello6ServiceRoleCB5A5511", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello626F003DB": [ + { + "type": "aws:cdk:logicalId", + "data": "hello626F003DB", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello6LogRetention143EB32C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello6LogRetention143EB32C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello7ServiceRole1C2C58D2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello7ServiceRole1C2C58D2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello75E0B3E8C": [ + { + "type": "aws:cdk:logicalId", + "data": "hello75E0B3E8C", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello7LogRetentionB08781CE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello7LogRetentionB08781CE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8ServiceRole35753BB4": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8ServiceRole35753BB4", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8801993F8": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8801993F8", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello8LogRetentionF5960D3A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello8LogRetentionF5960D3A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9ServiceRoleBD9E97CC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9ServiceRoleBD9E97CC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9BFC0B703": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9BFC0B703", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello9LogRetentionE34A4125": [ + { + "type": "aws:cdk:logicalId", + "data": "hello9LogRetentionE34A4125", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello10ServiceRole474868C9": [ + { + "type": "aws:cdk:logicalId", + "data": "hello10ServiceRole474868C9", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1062D33987": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1062D33987", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello10LogRetention39275264": [ + { + "type": "aws:cdk:logicalId", + "data": "hello10LogRetention39275264", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello11ServiceRoleA7F4A2AF": [ + { + "type": "aws:cdk:logicalId", + "data": "hello11ServiceRoleA7F4A2AF", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1171FEC9AC": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1171FEC9AC", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello11LogRetention0EC20DD0": [ + { + "type": "aws:cdk:logicalId", + "data": "hello11LogRetention0EC20DD0", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello12ServiceRoleA76D5180": [ + { + "type": "aws:cdk:logicalId", + "data": "hello12ServiceRoleA76D5180", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello120B96E81D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello120B96E81D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello12LogRetentionD7164F3E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello12LogRetentionD7164F3E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello13ServiceRole8CA1C9B1": [ + { + "type": "aws:cdk:logicalId", + "data": "hello13ServiceRole8CA1C9B1", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1364C47B79": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1364C47B79", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello13LogRetention82EB7E45": [ + { + "type": "aws:cdk:logicalId", + "data": "hello13LogRetention82EB7E45", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello14ServiceRoleC31043C0": [ + { + "type": "aws:cdk:logicalId", + "data": "hello14ServiceRoleC31043C0", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello140C25FB09": [ + { + "type": "aws:cdk:logicalId", + "data": "hello140C25FB09", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello14LogRetention637A6A38": [ + { + "type": "aws:cdk:logicalId", + "data": "hello14LogRetention637A6A38", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello15ServiceRole57E5496A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello15ServiceRole57E5496A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello1590886C17": [ + { + "type": "aws:cdk:logicalId", + "data": "hello1590886C17", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello15LogRetentionEE365DDD": [ + { + "type": "aws:cdk:logicalId", + "data": "hello15LogRetentionEE365DDD", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello16ServiceRole1F31EA8F": [ + { + "type": "aws:cdk:logicalId", + "data": "hello16ServiceRole1F31EA8F", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello165FD177B6": [ + { + "type": "aws:cdk:logicalId", + "data": "hello165FD177B6", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello16LogRetention2C237DA7": [ + { + "type": "aws:cdk:logicalId", + "data": "hello16LogRetention2C237DA7", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17ServiceRole85B6FE68": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17ServiceRole85B6FE68", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17BE899C71": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17BE899C71", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello17LogRetentionCF72C750": [ + { + "type": "aws:cdk:logicalId", + "data": "hello17LogRetentionCF72C750", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello18ServiceRole631ABDC6": [ + { + "type": "aws:cdk:logicalId", + "data": "hello18ServiceRole631ABDC6", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello183853BDDA": [ + { + "type": "aws:cdk:logicalId", + "data": "hello183853BDDA", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello18LogRetentionF558E7A5": [ + { + "type": "aws:cdk:logicalId", + "data": "hello18LogRetentionF558E7A5", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19ServiceRole30A31A1E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19ServiceRole30A31A1E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19E68A0C7A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19E68A0C7A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello19LogRetention2FC87D23": [ + { + "type": "aws:cdk:logicalId", + "data": "hello19LogRetention2FC87D23", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello20ServiceRole49BC2091": [ + { + "type": "aws:cdk:logicalId", + "data": "hello20ServiceRole49BC2091", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello2096F721E2": [ + { + "type": "aws:cdk:logicalId", + "data": "hello2096F721E2", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello20LogRetention7406AE13": [ + { + "type": "aws:cdk:logicalId", + "data": "hello20LogRetention7406AE13", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21ServiceRoleEB093398": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21ServiceRoleEB093398", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21B8049B0D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21B8049B0D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello21LogRetention0F88CB8A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello21LogRetention0F88CB8A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22ServiceRole22CED113": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22ServiceRole22CED113", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22ADC7BF12": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22ADC7BF12", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello22LogRetention2A902D73": [ + { + "type": "aws:cdk:logicalId", + "data": "hello22LogRetention2A902D73", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello23ServiceRoleBC985940": [ + { + "type": "aws:cdk:logicalId", + "data": "hello23ServiceRoleBC985940", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello232450EA9D": [ + { + "type": "aws:cdk:logicalId", + "data": "hello232450EA9D", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello23LogRetentionF35EA7AE": [ + { + "type": "aws:cdk:logicalId", + "data": "hello23LogRetentionF35EA7AE", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24ServiceRoleB669597E": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24ServiceRoleB669597E", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24A051F98A": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24A051F98A", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ], + "hello24LogRetention2F02EEBB": [ + { + "type": "aws:cdk:logicalId", + "data": "hello24LogRetention2F02EEBB", + "trace": [ + "!!DESTRUCTIVE_CHANGES: WILL_DESTROY" + ] + } + ] + }, + "displayName": "aws-cdk-log-retention-integ-retries2" + }, + "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.assets": { + "type": "cdk:asset-manifest", + "properties": { + "file": "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.assets.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C": { + "type": "aws:cloudformation:stack", + "environment": "aws://unknown-account/unknown-region", + "properties": { + "templateFile": "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.template.json", + "validateOnSynth": false, + "assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-deploy-role-${AWS::AccountId}-${AWS::Region}", + "cloudFormationExecutionRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-cfn-exec-role-${AWS::AccountId}-${AWS::Region}", + "stackTemplateAssetObjectUrl": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/21fbb51d7b23f6a6c262b46a9caee79d744a3ac019fd45422d988b96d44b2a22.json", + "requiresBootstrapStackVersion": 6, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version", + "additionalDependencies": [ + "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.assets" + ], + "lookupRole": { + "arn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-lookup-role-${AWS::AccountId}-${AWS::Region}", + "requiresBootstrapStackVersion": 8, + "bootstrapStackVersionSsmParameter": "/cdk-bootstrap/hnb659fds/version" + } + }, + "dependencies": [ + "LogRetentionIntegRetriesDefaultTestDeployAssert6D1A1A1C.assets" + ], + "metadata": { + "/LogRetentionIntegRetries/DefaultTest/DeployAssert/BootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "BootstrapVersion" + } + ], + "/LogRetentionIntegRetries/DefaultTest/DeployAssert/CheckBootstrapVersion": [ + { + "type": "aws:cdk:logicalId", + "data": "CheckBootstrapVersion" + } + ] + }, + "displayName": "LogRetentionIntegRetries/DefaultTest/DeployAssert" + }, + "Tree": { + "type": "cdk:tree", + "properties": { + "file": "tree.json" + } + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/tree.json b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/tree.json new file mode 100644 index 0000000000000..dc224f4c7184f --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.js.snapshot/tree.json @@ -0,0 +1,3450 @@ +{ + "version": "tree-0.1", + "tree": { + "id": "App", + "path": "", + "children": { + "aws-cdk-log-retention-integ-retries0": { + "id": "aws-cdk-log-retention-integ-retries0", + "path": "aws-cdk-log-retention-integ-retries0", + "children": { + "LogRetention0": { + "id": "LogRetention0", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention0", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention0/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a": { + "id": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a", + "children": { + "Code": { + "id": "Code", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code/Stage", + "constructInfo": { + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code/AssetBucket", + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", + "version": "0.0.0" + } + }, + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole", + "children": { + "ImportServiceRole": { + "id": "ImportServiceRole", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/ImportServiceRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": [ + "logs:DeleteRetentionPolicy", + "logs:PutRetentionPolicy" + ], + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "logs:DeleteLogGroup", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group0:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group10:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group11:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group12:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group13:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group14:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group15:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group16:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group17:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group18:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group19:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group1:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group20:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group21:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group22:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group23:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group24:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group2:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group3:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group4:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group5:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group6:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group7:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group8:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries0/group9:*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "policyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "roles": [ + { + "Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.2.69" + } + }, + "LogRetention1": { + "id": "LogRetention1", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention1", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention1/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention2": { + "id": "LogRetention2", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention2", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention2/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention3": { + "id": "LogRetention3", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention3", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention3/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention4": { + "id": "LogRetention4", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention4", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention4/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention5": { + "id": "LogRetention5", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention5", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention5/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention6": { + "id": "LogRetention6", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention6", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention6/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention7": { + "id": "LogRetention7", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention7", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention7/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention8": { + "id": "LogRetention8", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention8", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention8/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention9": { + "id": "LogRetention9", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention9", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention9/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention10": { + "id": "LogRetention10", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention10", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention10/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention11": { + "id": "LogRetention11", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention11", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention11/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention12": { + "id": "LogRetention12", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention12", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention12/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention13": { + "id": "LogRetention13", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention13", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention13/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention14": { + "id": "LogRetention14", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention14", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention14/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention15": { + "id": "LogRetention15", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention15", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention15/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention16": { + "id": "LogRetention16", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention16", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention16/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention17": { + "id": "LogRetention17", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention17", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention17/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention18": { + "id": "LogRetention18", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention18", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention18/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention19": { + "id": "LogRetention19", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention19", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention19/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention20": { + "id": "LogRetention20", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention20", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention20/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention21": { + "id": "LogRetention21", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention21", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention21/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention22": { + "id": "LogRetention22", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention22", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention22/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention23": { + "id": "LogRetention23", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention23", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention23/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention24": { + "id": "LogRetention24", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention24", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries0/LogRetention24/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-log-retention-integ-retries0/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-log-retention-integ-retries0/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "aws-cdk-log-retention-integ-retries1": { + "id": "aws-cdk-log-retention-integ-retries1", + "path": "aws-cdk-log-retention-integ-retries1", + "children": { + "LogRetention0": { + "id": "LogRetention0", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention0", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention0/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a": { + "id": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a", + "children": { + "Code": { + "id": "Code", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code/Stage", + "constructInfo": { + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code/AssetBucket", + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", + "version": "0.0.0" + } + }, + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole", + "children": { + "ImportServiceRole": { + "id": "ImportServiceRole", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/ImportServiceRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": [ + "logs:DeleteRetentionPolicy", + "logs:PutRetentionPolicy" + ], + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "logs:DeleteLogGroup", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group0:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group10:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group11:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group12:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group13:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group14:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group15:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group16:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group17:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group18:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group19:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group1:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group20:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group21:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group22:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group23:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group24:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group2:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group3:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group4:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group5:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group6:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group7:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group8:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries1/group9:*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "policyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "roles": [ + { + "Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.2.69" + } + }, + "LogRetention1": { + "id": "LogRetention1", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention1", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention1/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention2": { + "id": "LogRetention2", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention2", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention2/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention3": { + "id": "LogRetention3", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention3", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention3/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention4": { + "id": "LogRetention4", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention4", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention4/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention5": { + "id": "LogRetention5", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention5", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention5/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention6": { + "id": "LogRetention6", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention6", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention6/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention7": { + "id": "LogRetention7", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention7", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention7/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention8": { + "id": "LogRetention8", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention8", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention8/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention9": { + "id": "LogRetention9", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention9", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention9/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention10": { + "id": "LogRetention10", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention10", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention10/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention11": { + "id": "LogRetention11", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention11", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention11/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention12": { + "id": "LogRetention12", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention12", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention12/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention13": { + "id": "LogRetention13", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention13", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention13/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention14": { + "id": "LogRetention14", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention14", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention14/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention15": { + "id": "LogRetention15", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention15", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention15/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention16": { + "id": "LogRetention16", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention16", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention16/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention17": { + "id": "LogRetention17", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention17", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention17/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention18": { + "id": "LogRetention18", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention18", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention18/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention19": { + "id": "LogRetention19", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention19", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention19/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention20": { + "id": "LogRetention20", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention20", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention20/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention21": { + "id": "LogRetention21", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention21", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention21/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention22": { + "id": "LogRetention22", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention22", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention22/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention23": { + "id": "LogRetention23", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention23", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention23/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention24": { + "id": "LogRetention24", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention24", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries1/LogRetention24/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-log-retention-integ-retries1/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-log-retention-integ-retries1/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "aws-cdk-log-retention-integ-retries2": { + "id": "aws-cdk-log-retention-integ-retries2", + "path": "aws-cdk-log-retention-integ-retries2", + "children": { + "LogRetention0": { + "id": "LogRetention0", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention0", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention0/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a": { + "id": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a", + "children": { + "Code": { + "id": "Code", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code", + "children": { + "Stage": { + "id": "Stage", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code/Stage", + "constructInfo": { + "fqn": "aws-cdk-lib.AssetStaging", + "version": "0.0.0" + } + }, + "AssetBucket": { + "id": "AssetBucket", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Code/AssetBucket", + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3.BucketBase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_s3_assets.Asset", + "version": "0.0.0" + } + }, + "ServiceRole": { + "id": "ServiceRole", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole", + "children": { + "ImportServiceRole": { + "id": "ImportServiceRole", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/ImportServiceRole", + "constructInfo": { + "fqn": "aws-cdk-lib.Resource", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Role", + "aws:cdk:cloudformation:props": { + "assumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "managedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnRole", + "version": "0.0.0" + } + }, + "DefaultPolicy": { + "id": "DefaultPolicy", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/ServiceRole/DefaultPolicy/Resource", + "attributes": { + "aws:cdk:cloudformation:type": "AWS::IAM::Policy", + "aws:cdk:cloudformation:props": { + "policyDocument": { + "Statement": [ + { + "Action": [ + "logs:DeleteRetentionPolicy", + "logs:PutRetentionPolicy" + ], + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": "logs:DeleteLogGroup", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group0:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group10:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group11:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group12:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group13:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group14:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group15:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group16:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group17:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group18:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group19:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group1:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group20:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group21:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group22:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group23:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group24:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group2:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group3:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group4:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group5:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group6:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group7:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group8:*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":logs:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":log-group:/aws-cdk-log-retention-integ-retries2/group9:*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "policyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB", + "roles": [ + { + "Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB" + } + ] + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.CfnPolicy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Policy", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_iam.Role", + "version": "0.0.0" + } + }, + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.2.69" + } + }, + "LogRetention1": { + "id": "LogRetention1", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention1", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention1/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention2": { + "id": "LogRetention2", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention2", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention2/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention3": { + "id": "LogRetention3", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention3", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention3/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention4": { + "id": "LogRetention4", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention4", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention4/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention5": { + "id": "LogRetention5", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention5", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention5/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention6": { + "id": "LogRetention6", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention6", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention6/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention7": { + "id": "LogRetention7", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention7", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention7/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention8": { + "id": "LogRetention8", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention8", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention8/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention9": { + "id": "LogRetention9", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention9", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention9/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention10": { + "id": "LogRetention10", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention10", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention10/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention11": { + "id": "LogRetention11", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention11", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention11/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention12": { + "id": "LogRetention12", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention12", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention12/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention13": { + "id": "LogRetention13", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention13", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention13/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention14": { + "id": "LogRetention14", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention14", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention14/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention15": { + "id": "LogRetention15", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention15", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention15/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention16": { + "id": "LogRetention16", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention16", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention16/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention17": { + "id": "LogRetention17", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention17", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention17/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention18": { + "id": "LogRetention18", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention18", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention18/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention19": { + "id": "LogRetention19", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention19", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention19/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention20": { + "id": "LogRetention20", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention20", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention20/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention21": { + "id": "LogRetention21", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention21", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention21/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention22": { + "id": "LogRetention22", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention22", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention22/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention23": { + "id": "LogRetention23", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention23", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention23/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "LogRetention24": { + "id": "LogRetention24", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention24", + "children": { + "Resource": { + "id": "Resource", + "path": "aws-cdk-log-retention-integ-retries2/LogRetention24/Resource", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnResource", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.aws_logs.LogRetention", + "version": "0.0.0" + } + }, + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "aws-cdk-log-retention-integ-retries2/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "aws-cdk-log-retention-integ-retries2/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + }, + "LogRetentionIntegRetries": { + "id": "LogRetentionIntegRetries", + "path": "LogRetentionIntegRetries", + "children": { + "DefaultTest": { + "id": "DefaultTest", + "path": "LogRetentionIntegRetries/DefaultTest", + "children": { + "Default": { + "id": "Default", + "path": "LogRetentionIntegRetries/DefaultTest/Default", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.2.69" + } + }, + "DeployAssert": { + "id": "DeployAssert", + "path": "LogRetentionIntegRetries/DefaultTest/DeployAssert", + "children": { + "BootstrapVersion": { + "id": "BootstrapVersion", + "path": "LogRetentionIntegRetries/DefaultTest/DeployAssert/BootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnParameter", + "version": "0.0.0" + } + }, + "CheckBootstrapVersion": { + "id": "CheckBootstrapVersion", + "path": "LogRetentionIntegRetries/DefaultTest/DeployAssert/CheckBootstrapVersion", + "constructInfo": { + "fqn": "aws-cdk-lib.CfnRule", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.Stack", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTestCase", + "version": "0.0.0" + } + } + }, + "constructInfo": { + "fqn": "@aws-cdk/integ-tests-alpha.IntegTest", + "version": "0.0.0" + } + }, + "Tree": { + "id": "Tree", + "path": "Tree", + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.2.69" + } + } + }, + "constructInfo": { + "fqn": "aws-cdk-lib.App", + "version": "0.0.0" + } + } +} \ No newline at end of file diff --git a/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.ts b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.ts new file mode 100644 index 0000000000000..8dd3609b5335d --- /dev/null +++ b/packages/@aws-cdk-testing/framework-integ/test/aws-logs/test/integ.log-retention-retries.ts @@ -0,0 +1,40 @@ +import { App, RemovalPolicy, Stack, StackProps } from 'aws-cdk-lib'; +import * as logs from 'aws-cdk-lib/aws-logs'; +import { IntegTest } from '@aws-cdk/integ-tests-alpha'; +import { Construct } from 'constructs'; + +class LogRetentionRetriesStack extends Stack { + constructor(scope: Construct, id: string, props?: StackProps) { + super(scope, id, props); + + for (let i = 0; i < 25; i++) { + new logs.LogRetention(this, `LogRetention${i}`, { + logGroupName: `/${id}/group${i}`, + retention: logs.RetentionDays.ONE_WEEK, + removalPolicy: RemovalPolicy.DESTROY, + }); + } + } +} + +const app = new App(); +const numberOfStacks = 3; +const stacks = [...Array(numberOfStacks).keys()].map((i) => new LogRetentionRetriesStack(app, 'aws-cdk-log-retention-integ-retries' + i)); + +/** + * Deploys multiple stacks in parallel, which causes the LogRetention Custom Resource to fail with `ThrottlingException: Rate exceeded` + * This test ensures that the CRs correctly retry on ThrottlingException + * When deploying a single stack at a time, throttling is not an issue because resources are created by CFN with a slight delay + */ +new IntegTest(app, 'LogRetentionIntegRetries', { + testCases: stacks, + cdkCommandOptions: { + deploy: { + args: { + concurrency: numberOfStacks, + }, + }, + }, +}); + +app.synth(); diff --git a/packages/@aws-cdk/cdk-cli-wrapper/lib/cdk-wrapper.ts b/packages/@aws-cdk/cdk-cli-wrapper/lib/cdk-wrapper.ts index 78a3f749868b9..9fe40b0b1314f 100644 --- a/packages/@aws-cdk/cdk-cli-wrapper/lib/cdk-wrapper.ts +++ b/packages/@aws-cdk/cdk-cli-wrapper/lib/cdk-wrapper.ts @@ -183,6 +183,7 @@ export class CdkCliWrapper implements ICdk { ...options.toolkitStackName ? ['--toolkit-stack-name', options.toolkitStackName] : [], ...options.progress ? ['--progress', options.progress] : ['--progress', StackActivityProgress.EVENTS], ...options.deploymentMethod ? ['--method', options.deploymentMethod] : [], + ...options.concurrency ? ['--concurrency', options.concurrency.toString()] : [], ...this.createDefaultArguments(options), ]; diff --git a/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/deploy.ts b/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/deploy.ts index 798b85d36d395..59ffedefe9945 100644 --- a/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/deploy.ts +++ b/packages/@aws-cdk/cdk-cli-wrapper/lib/commands/deploy.ts @@ -134,6 +134,13 @@ export interface DeployOptions extends DefaultCdkOptions { * Deployment method */ readonly deploymentMethod?: DeploymentMethod; + + /** + * Deploy multiple stacks in parallel + * + * @default 1 + */ + readonly concurrency?: number; } export type DeploymentMethod = 'direct' | 'change-set'; diff --git a/packages/aws-cdk-lib/aws-logs/lib/log-retention-provider/index.ts b/packages/aws-cdk-lib/aws-logs/lib/log-retention-provider/index.ts index eea89d75c8795..88843fe3fa016 100644 --- a/packages/aws-cdk-lib/aws-logs/lib/log-retention-provider/index.ts +++ b/packages/aws-cdk-lib/aws-logs/lib/log-retention-provider/index.ts @@ -91,11 +91,13 @@ export async function handler(event: LogRetentionEvent, context: AWSLambda.Conte const logGroupRegion = event.ResourceProperties.LogGroupRegion; // Parse to AWS SDK retry options - const withDelay = makeWithDelay(parseIntOptional(event.ResourceProperties.SdkRetry?.maxRetries)); + const maxRetries = parseIntOptional(event.ResourceProperties.SdkRetry?.maxRetries) ?? 5; + const withDelay = makeWithDelay(maxRetries); const sdkConfig: Logs.CloudWatchLogsClientConfig = { logger: console, region: logGroupRegion, + maxAttempts: Math.max(5, maxRetries), // Use a minimum for SDK level retries, because it might include retryable failures that withDelay isn't checking for }; const client = new Logs.CloudWatchLogsClient(sdkConfig); @@ -185,7 +187,7 @@ function parseIntOptional(value?: string, base = 10): number | undefined { } function makeWithDelay( - maxRetries: number = 5, + maxRetries: number, delayBase: number = 100, delayCap = 10 * 1000, // 10s ): (block: () => Promise) => Promise { @@ -202,7 +204,11 @@ function makeWithDelay( try { return await block(); } catch (error: any) { - if (error instanceof Logs.OperationAbortedException || error.name === 'OperationAbortedException') { + if ( + error instanceof Logs.OperationAbortedException + || error.name === 'OperationAbortedException' + || error.name === 'ThrottlingException' // There is no class to check with instanceof, see https://github.com/aws/aws-sdk-js-v3/issues/5140 + ) { if (attempts < maxRetries ) { attempts++; await new Promise(resolve => setTimeout(resolve, calculateDelay(attempts, delayBase, delayCap))); diff --git a/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/deploy.ts b/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/deploy.ts index 09a20c610f12d..8d63a7d9644f9 100644 --- a/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/deploy.ts +++ b/packages/aws-cdk-lib/cloud-assembly-schema/lib/integ-tests/commands/deploy.ts @@ -94,4 +94,11 @@ export interface DeployOptions extends DefaultCdkOptions { * @default false */ readonly ci?: boolean; + + /** + * Deploy multiple stacks in parallel + * + * @default 1 + */ + readonly concurrency?: number; } diff --git a/packages/aws-cdk-lib/cloud-assembly-schema/schema/cloud-assembly.version.json b/packages/aws-cdk-lib/cloud-assembly-schema/schema/cloud-assembly.version.json index 560dae10d018f..2313ab5436501 100644 --- a/packages/aws-cdk-lib/cloud-assembly-schema/schema/cloud-assembly.version.json +++ b/packages/aws-cdk-lib/cloud-assembly-schema/schema/cloud-assembly.version.json @@ -1 +1 @@ -{"version":"33.0.0"} \ No newline at end of file +{"version":"34.0.0"} \ No newline at end of file diff --git a/packages/aws-cdk-lib/cloud-assembly-schema/schema/integ.schema.json b/packages/aws-cdk-lib/cloud-assembly-schema/schema/integ.schema.json index a098e4d72a134..a43e4f30b6f64 100644 --- a/packages/aws-cdk-lib/cloud-assembly-schema/schema/integ.schema.json +++ b/packages/aws-cdk-lib/cloud-assembly-schema/schema/integ.schema.json @@ -199,6 +199,10 @@ "default": false, "type": "boolean" }, + "concurrency": { + "description": "Deploy multiple stacks in parallel (Default 1)", + "type": "number" + }, "stacks": { "description": "List of stacks to deploy\n\nRequried if `all` is not set (Default - [])", "type": "array",