From 693e109a76115587191212d0a58a0e238aaf0b13 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 11:29:14 +0100 Subject: [PATCH 01/13] Ensure CloudFormation tests are executed on service changes --- tests/unit/testing/testselection/test_matching.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/unit/testing/testselection/test_matching.py b/tests/unit/testing/testselection/test_matching.py index 885d4d83ceff4..f87d627c0d3f0 100644 --- a/tests/unit/testing/testselection/test_matching.py +++ b/tests/unit/testing/testselection/test_matching.py @@ -138,3 +138,17 @@ def test_directory_rules_no_match(): ) assert selected_tests == [SENTINEL_ALL_TESTS] + + +def test_cloudformation_tests_executed_on_service_changes(): + selected_tests = get_affected_tests_from_changes( + ["localstack/services/lambda_/provider.py"], MATCHING_RULES + ) + assert selected_tests == [] + + +def test_service_tests_executed_on_cloudformation_changes(): + selected_tests = get_affected_tests_from_changes( + ["localstack/services/cloudformation/provider.py"], MATCHING_RULES + ) + assert "tests/aws/services/lambda_/resource_providers/" in selected_tests From 3abd179f81130d75b4c20db9c14d025d07cb4832 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 12:07:16 +0100 Subject: [PATCH 02/13] Move test files --- .../{cloudformation => acm}/resources/test_acm.py | 0 .../resources/test_apigateway.py | 9 +++++++++ .../resources/test_cloudwatch.py | 0 .../resources/test_dynamodb.py | 0 .../{cloudformation => ec2}/resources/test_ec2.py | 0 .../resources/test_elasticsearch.py | 0 .../{cloudformation => events}/resources/test_events.py | 0 .../resources/test_firehose.py | 0 .../resources/test_kinesis.py | 0 .../{cloudformation => kms}/resources/test_kms.py | 0 .../{cloudformation => lambda_}/resources/test_lambda.py | 0 .../{cloudformation => logs}/resources/test_logs.py | 0 .../resources/test_opensearch.py | 0 .../resources/test_redshift.py | 0 .../resources/test_resource_groups.py | 0 .../resources/test_route53.py | 0 .../services/{cloudformation => s3}/resources/test_s3.py | 0 .../resources/test_secretsmanager.py | 0 .../{cloudformation => sns}/resources/test_sns.py | 0 .../{cloudformation => sqs}/resources/test_sqs.py | 0 .../{cloudformation => ssm}/resources/test_ssm.py | 0 .../resources/test_stepfunctions.py | 0 22 files changed, 9 insertions(+) rename tests/aws/services/{cloudformation => acm}/resources/test_acm.py (100%) rename tests/aws/services/{cloudformation => apigateway}/resources/test_apigateway.py (99%) rename tests/aws/services/{cloudformation => cloudwatch}/resources/test_cloudwatch.py (100%) rename tests/aws/services/{cloudformation => dynamodb}/resources/test_dynamodb.py (100%) rename tests/aws/services/{cloudformation => ec2}/resources/test_ec2.py (100%) rename tests/aws/services/{cloudformation => es}/resources/test_elasticsearch.py (100%) rename tests/aws/services/{cloudformation => events}/resources/test_events.py (100%) rename tests/aws/services/{cloudformation => firehose}/resources/test_firehose.py (100%) rename tests/aws/services/{cloudformation => kinesis}/resources/test_kinesis.py (100%) rename tests/aws/services/{cloudformation => kms}/resources/test_kms.py (100%) rename tests/aws/services/{cloudformation => lambda_}/resources/test_lambda.py (100%) rename tests/aws/services/{cloudformation => logs}/resources/test_logs.py (100%) rename tests/aws/services/{cloudformation => opensearch}/resources/test_opensearch.py (100%) rename tests/aws/services/{cloudformation => redshift}/resources/test_redshift.py (100%) rename tests/aws/services/{cloudformation => resource_groups}/resources/test_resource_groups.py (100%) rename tests/aws/services/{cloudformation => route53}/resources/test_route53.py (100%) rename tests/aws/services/{cloudformation => s3}/resources/test_s3.py (100%) rename tests/aws/services/{cloudformation => secretsmanager}/resources/test_secretsmanager.py (100%) rename tests/aws/services/{cloudformation => sns}/resources/test_sns.py (100%) rename tests/aws/services/{cloudformation => sqs}/resources/test_sqs.py (100%) rename tests/aws/services/{cloudformation => ssm}/resources/test_ssm.py (100%) rename tests/aws/services/{cloudformation => stepfunctions}/resources/test_stepfunctions.py (100%) diff --git a/tests/aws/services/cloudformation/resources/test_acm.py b/tests/aws/services/acm/resources/test_acm.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_acm.py rename to tests/aws/services/acm/resources/test_acm.py diff --git a/tests/aws/services/cloudformation/resources/test_apigateway.py b/tests/aws/services/apigateway/resources/test_apigateway.py similarity index 99% rename from tests/aws/services/cloudformation/resources/test_apigateway.py rename to tests/aws/services/apigateway/resources/test_apigateway.py index 146d2dee133f7..199909d9079b9 100644 --- a/tests/aws/services/cloudformation/resources/test_apigateway.py +++ b/tests/aws/services/apigateway/resources/test_apigateway.py @@ -6,14 +6,23 @@ from localstack_snapshot.snapshots.transformer import SortingTransformer from localstack import constants + from localstack.aws.api.lambda_ import Runtime + from localstack.testing.aws.util import is_aws_cloud + from localstack.testing.pytest import markers + from localstack.utils.common import short_uid + from localstack.utils.files import load_file + from localstack.utils.run import to_str + from localstack.utils.strings import to_bytes + from localstack.utils.sync import retry + from tests.aws.services.apigateway.apigateway_fixtures import api_invoke_url PARENT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) diff --git a/tests/aws/services/cloudformation/resources/test_cloudwatch.py b/tests/aws/services/cloudwatch/resources/test_cloudwatch.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_cloudwatch.py rename to tests/aws/services/cloudwatch/resources/test_cloudwatch.py diff --git a/tests/aws/services/cloudformation/resources/test_dynamodb.py b/tests/aws/services/dynamodb/resources/test_dynamodb.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_dynamodb.py rename to tests/aws/services/dynamodb/resources/test_dynamodb.py diff --git a/tests/aws/services/cloudformation/resources/test_ec2.py b/tests/aws/services/ec2/resources/test_ec2.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_ec2.py rename to tests/aws/services/ec2/resources/test_ec2.py diff --git a/tests/aws/services/cloudformation/resources/test_elasticsearch.py b/tests/aws/services/es/resources/test_elasticsearch.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_elasticsearch.py rename to tests/aws/services/es/resources/test_elasticsearch.py diff --git a/tests/aws/services/cloudformation/resources/test_events.py b/tests/aws/services/events/resources/test_events.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_events.py rename to tests/aws/services/events/resources/test_events.py diff --git a/tests/aws/services/cloudformation/resources/test_firehose.py b/tests/aws/services/firehose/resources/test_firehose.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_firehose.py rename to tests/aws/services/firehose/resources/test_firehose.py diff --git a/tests/aws/services/cloudformation/resources/test_kinesis.py b/tests/aws/services/kinesis/resources/test_kinesis.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_kinesis.py rename to tests/aws/services/kinesis/resources/test_kinesis.py diff --git a/tests/aws/services/cloudformation/resources/test_kms.py b/tests/aws/services/kms/resources/test_kms.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_kms.py rename to tests/aws/services/kms/resources/test_kms.py diff --git a/tests/aws/services/cloudformation/resources/test_lambda.py b/tests/aws/services/lambda_/resources/test_lambda.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_lambda.py rename to tests/aws/services/lambda_/resources/test_lambda.py diff --git a/tests/aws/services/cloudformation/resources/test_logs.py b/tests/aws/services/logs/resources/test_logs.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_logs.py rename to tests/aws/services/logs/resources/test_logs.py diff --git a/tests/aws/services/cloudformation/resources/test_opensearch.py b/tests/aws/services/opensearch/resources/test_opensearch.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_opensearch.py rename to tests/aws/services/opensearch/resources/test_opensearch.py diff --git a/tests/aws/services/cloudformation/resources/test_redshift.py b/tests/aws/services/redshift/resources/test_redshift.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_redshift.py rename to tests/aws/services/redshift/resources/test_redshift.py diff --git a/tests/aws/services/cloudformation/resources/test_resource_groups.py b/tests/aws/services/resource_groups/resources/test_resource_groups.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_resource_groups.py rename to tests/aws/services/resource_groups/resources/test_resource_groups.py diff --git a/tests/aws/services/cloudformation/resources/test_route53.py b/tests/aws/services/route53/resources/test_route53.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_route53.py rename to tests/aws/services/route53/resources/test_route53.py diff --git a/tests/aws/services/cloudformation/resources/test_s3.py b/tests/aws/services/s3/resources/test_s3.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_s3.py rename to tests/aws/services/s3/resources/test_s3.py diff --git a/tests/aws/services/cloudformation/resources/test_secretsmanager.py b/tests/aws/services/secretsmanager/resources/test_secretsmanager.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_secretsmanager.py rename to tests/aws/services/secretsmanager/resources/test_secretsmanager.py diff --git a/tests/aws/services/cloudformation/resources/test_sns.py b/tests/aws/services/sns/resources/test_sns.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_sns.py rename to tests/aws/services/sns/resources/test_sns.py diff --git a/tests/aws/services/cloudformation/resources/test_sqs.py b/tests/aws/services/sqs/resources/test_sqs.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_sqs.py rename to tests/aws/services/sqs/resources/test_sqs.py diff --git a/tests/aws/services/cloudformation/resources/test_ssm.py b/tests/aws/services/ssm/resources/test_ssm.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_ssm.py rename to tests/aws/services/ssm/resources/test_ssm.py diff --git a/tests/aws/services/cloudformation/resources/test_stepfunctions.py b/tests/aws/services/stepfunctions/resources/test_stepfunctions.py similarity index 100% rename from tests/aws/services/cloudformation/resources/test_stepfunctions.py rename to tests/aws/services/stepfunctions/resources/test_stepfunctions.py From 306645f1546e1a350a3d8a71b7185574f76ac6ab Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 13:01:59 +0100 Subject: [PATCH 03/13] Validate api gateway tests --- .../resources/handlers/handler1/api.zip | Bin .../resources/handlers/handler2/api.zip | Bin .../resources/test_apigateway.snapshot.json | 676 ++++++++++++++++++ .../resources/test_apigateway.validation.json | 38 + 4 files changed, 714 insertions(+) rename tests/aws/services/{cloudformation => apigateway}/resources/handlers/handler1/api.zip (100%) rename tests/aws/services/{cloudformation => apigateway}/resources/handlers/handler2/api.zip (100%) create mode 100644 tests/aws/services/apigateway/resources/test_apigateway.snapshot.json create mode 100644 tests/aws/services/apigateway/resources/test_apigateway.validation.json diff --git a/tests/aws/services/cloudformation/resources/handlers/handler1/api.zip b/tests/aws/services/apigateway/resources/handlers/handler1/api.zip similarity index 100% rename from tests/aws/services/cloudformation/resources/handlers/handler1/api.zip rename to tests/aws/services/apigateway/resources/handlers/handler1/api.zip diff --git a/tests/aws/services/cloudformation/resources/handlers/handler2/api.zip b/tests/aws/services/apigateway/resources/handlers/handler2/api.zip similarity index 100% rename from tests/aws/services/cloudformation/resources/handlers/handler2/api.zip rename to tests/aws/services/apigateway/resources/handlers/handler2/api.zip diff --git a/tests/aws/services/apigateway/resources/test_apigateway.snapshot.json b/tests/aws/services/apigateway/resources/test_apigateway.snapshot.json new file mode 100644 index 0000000000000..690ecc6ad65d4 --- /dev/null +++ b/tests/aws/services/apigateway/resources/test_apigateway.snapshot.json @@ -0,0 +1,676 @@ +{ + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_with_apigateway_resources": { + "recorded-date": "11-04-2025, 11:54:13", + "recorded-content": { + "get-method-post": { + "apiKeyRequired": false, + "authorizationType": "NONE", + "httpMethod": "POST", + "methodIntegration": { + "cacheKeyParameters": [], + "cacheNamespace": "", + "integrationResponses": { + "202": { + "responseTemplates": { + "application/json": { + "operation": "celeste_account_create", + "data": { + "key": "123e4567-e89b-12d3-a456-426614174000", + "secret": "123e4567-e89b-12d3-a456-426614174000" + } + } + }, + "selectionPattern": "2\\d{2}", + "statusCode": "202" + }, + "404": { + "responseTemplates": { + "application/json": { + "message": "Not Found" + } + }, + "selectionPattern": "404", + "statusCode": "404" + }, + "500": { + "responseTemplates": { + "application/json": { + "message": "Unknown " + } + }, + "selectionPattern": "5\\d{2}", + "statusCode": "500" + } + }, + "passthroughBehavior": "WHEN_NO_TEMPLATES", + "requestTemplates": { + "application/json": "" + }, + "timeoutInMillis": 29000, + "type": "MOCK" + }, + "methodResponses": { + "202": { + "responseModels": { + "application/json": "" + }, + "statusCode": "202" + }, + "500": { + "responseModels": { + "application/json": "" + }, + "statusCode": "500" + } + }, + "operationName": "create_account", + "requestParameters": { + "method.request.path.account": true + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-models": { + "items": [ + { + "contentType": "application/json", + "description": "This is a default empty schema model", + "id": "", + "name": "", + "schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": " Schema", + "type": "object" + } + }, + { + "contentType": "application/json", + "description": "This is a default error schema model", + "id": "", + "name": "", + "schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": " Schema", + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + }, + { + "contentType": "application/json", + "id": "", + "name": "", + "schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "AccountCreate", + "type": "object", + "properties": { + "field": { + "type": "string" + }, + "email": { + "format": "email", + "type": "string" + } + } + } + }, + { + "contentType": "application/json", + "id": "", + "name": "", + "schema": {} + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_deploy_apigateway_models": { + "recorded-date": "11-04-2025, 11:54:34", + "recorded-content": { + "get-resources": { + "items": [ + { + "id": "", + "path": "/" + }, + { + "id": "", + "parentId": "", + "path": "/validated", + "pathPart": "validated", + "resourceMethods": { + "ANY": {} + } + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-models": { + "items": [ + { + "contentType": "application/json", + "description": "This is a default empty schema model", + "id": "", + "name": "", + "schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": " Schema", + "type": "object" + } + }, + { + "contentType": "application/json", + "description": "This is a default error schema model", + "id": "", + "name": "", + "schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": " Schema", + "type": "object", + "properties": { + "message": { + "type": "string" + } + } + } + }, + { + "contentType": "application/json", + "id": "", + "name": "", + "schema": { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "", + "type": "object", + "properties": { + "integer_field": { + "type": "number" + }, + "string_field": { + "type": "string" + } + }, + "required": [ + "string_field", + "integer_field" + ] + } + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-request-validators": { + "items": [ + { + "id": "", + "name": "", + "validateRequestBody": true, + "validateRequestParameters": false + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-method-any": { + "apiKeyRequired": false, + "authorizationType": "NONE", + "httpMethod": "ANY", + "methodIntegration": { + "cacheKeyParameters": [], + "cacheNamespace": "", + "integrationResponses": { + "200": { + "statusCode": "200" + } + }, + "passthroughBehavior": "NEVER", + "requestTemplates": { + "application/json": { + "statusCode": 200 + } + }, + "timeoutInMillis": 29000, + "type": "MOCK" + }, + "methodResponses": { + "200": { + "statusCode": "200" + } + }, + "requestModels": { + "application/json": "" + }, + "requestValidatorId": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_deploy_apigateway_integration": { + "recorded-date": "11-04-2025, 11:55:07", + "recorded-content": { + "rest_api": { + "apiKeySource": "HEADER", + "createdDate": "datetime", + "disableExecuteApiEndpoint": false, + "endpointConfiguration": { + "ipAddressType": "ipv4", + "types": [ + "EDGE" + ] + }, + "id": "", + "name": "", + "rootResourceId": "", + "tags": { + "aws:cloudformation:logical-id": "", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", + "aws:cloudformation:stack-name": "stack-name" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "method": { + "apiKeyRequired": false, + "authorizationType": "NONE", + "httpMethod": "GET", + "methodIntegration": { + "cacheKeyParameters": [], + "cacheNamespace": "", + "connectionType": "INTERNET", + "httpMethod": "GET", + "integrationResponses": { + "200": { + "responseParameters": { + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent,X-Amzn-Trace-Id'", + "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,POST'", + "method.response.header.Access-Control-Allow-Origin": "'*'" + }, + "statusCode": "200" + } + }, + "passthroughBehavior": "WHEN_NO_MATCH", + "timeoutInMillis": 29000, + "type": "HTTP_PROXY", + "uri": "http://www.example.com" + }, + "methodResponses": { + "200": { + "responseParameters": { + "method.response.header.Access-Control-Allow-Headers": true, + "method.response.header.Access-Control-Allow-Methods": true, + "method.response.header.Access-Control-Allow-Origin": true + }, + "statusCode": "200" + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_deploy_apigateway_from_s3_swagger": { + "recorded-date": "11-04-2025, 11:55:38", + "recorded-content": { + "rest-api": { + "apiKeySource": "HEADER", + "createdDate": "datetime", + "disableExecuteApiEndpoint": false, + "endpointConfiguration": { + "ipAddressType": "ipv4", + "types": [ + "REGIONAL" + ] + }, + "id": "", + "name": "", + "rootResourceId": "", + "tags": { + "aws:cloudformation:logical-id": "ApiGatewayRestApi", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", + "aws:cloudformation:stack-name": "stack-name" + }, + "version": "1.0.0", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "resources": { + "items": [ + { + "id": "", + "path": "/" + }, + { + "id": "", + "parentId": "", + "path": "/pets", + "pathPart": "pets", + "resourceMethods": { + "GET": {} + } + }, + { + "id": "", + "parentId": "", + "path": "/pets/{petId}", + "pathPart": "{petId}", + "resourceMethods": { + "GET": {} + } + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-stage": { + "cacheClusterEnabled": false, + "cacheClusterStatus": "NOT_AVAILABLE", + "createdDate": "datetime", + "deploymentId": "", + "description": "Test Stage 123", + "lastUpdatedDate": "datetime", + "methodSettings": { + "*/*": { + "cacheDataEncrypted": false, + "cacheTtlInSeconds": 300, + "cachingEnabled": false, + "dataTraceEnabled": true, + "loggingLevel": "ERROR", + "metricsEnabled": true, + "requireAuthorizationForCacheControl": true, + "throttlingBurstLimit": 5000, + "throttlingRateLimit": 10000.0, + "unauthorizedCacheControlHeaderStrategy": "SUCCEED_WITH_RESPONSE_HEADER" + } + }, + "stageName": "local", + "tags": { + "aws:cloudformation:logical-id": "ApiGWStage", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", + "aws:cloudformation:stack-name": "stack-name" + }, + "tracingEnabled": true, + "variables": { + "TestCasing": "myvar", + "testCasingTwo": "myvar2", + "testlowcasing": "myvar3" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_update_usage_plan": { + "recorded-date": "11-04-2025, 11:57:42", + "recorded-content": { + "usage-plan": { + "apiStages": [ + { + "apiId": "", + "stage": "" + } + ], + "id": "", + "name": "", + "quota": { + "limit": 5000, + "offset": 0, + "period": "MONTH" + }, + "tags": { + "aws:cloudformation:logical-id": "UsagePlan", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "", + "test": "value1", + "test2": "hardcoded" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "updated-usage-plan": { + "apiStages": [ + { + "apiId": "", + "stage": "" + } + ], + "id": "", + "name": "", + "quota": { + "limit": 7000, + "offset": 0, + "period": "MONTH" + }, + "tags": { + "aws:cloudformation:logical-id": "UsagePlan", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "", + "test": "value-updated", + "test2": "hardcoded" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_update_apigateway_stage": { + "recorded-date": "11-04-2025, 11:58:28", + "recorded-content": { + "created-stage": { + "cacheClusterEnabled": false, + "cacheClusterStatus": "NOT_AVAILABLE", + "createdDate": "datetime", + "deploymentId": "", + "lastUpdatedDate": "datetime", + "methodSettings": {}, + "stageName": "dev", + "tags": { + "aws:cloudformation:logical-id": "Stage", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "tracingEnabled": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "updated-stage": { + "cacheClusterEnabled": false, + "cacheClusterStatus": "NOT_AVAILABLE", + "createdDate": "datetime", + "deploymentId": "", + "lastUpdatedDate": "datetime", + "methodSettings": {}, + "stageName": "dev", + "tags": { + "aws:cloudformation:logical-id": "Stage", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "tracingEnabled": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_api_gateway_with_policy_as_dict": { + "recorded-date": "11-04-2025, 11:58:47", + "recorded-content": { + "rest-api": { + "apiKeySource": "HEADER", + "createdDate": "datetime", + "disableExecuteApiEndpoint": false, + "endpointConfiguration": { + "ipAddressType": "ipv4", + "types": [ + "EDGE" + ] + }, + "id": "", + "name": "", + "policy": { + "Statement": [ + { + "Action": "*", + "Effect": "Allow", + "Principal": { + "AWS": "*" + }, + "Resource": "*", + "Sid": "AllowInvokeAPI" + } + ], + "Version": "2012-10-17" + }, + "rootResourceId": "", + "tags": { + "aws:cloudformation:logical-id": "MyApi", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", + "aws:cloudformation:stack-name": "stack-name" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_rest_api_serverless_ref_resolving": { + "recorded-date": "11-04-2025, 11:59:46", + "recorded-content": { + "get-resources": { + "items": [ + { + "id": "", + "path": "/", + "resourceMethods": { + "GET": {}, + "OPTIONS": {} + } + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-authorizers": { + "items": [ + { + "authType": "custom", + "authorizerUri": "", + "id": "", + "identitySource": "method.request.header.Authorization", + "name": "", + "type": "TOKEN" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-method-GET": { + "apiKeyRequired": false, + "authorizationType": "NONE", + "httpMethod": "GET", + "methodIntegration": { + "cacheKeyParameters": [], + "cacheNamespace": "", + "httpMethod": "POST", + "passthroughBehavior": "WHEN_NO_MATCH", + "timeoutInMillis": 29000, + "type": "AWS_PROXY", + "uri": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get-method-OPTIONS": { + "apiKeyRequired": false, + "authorizationType": "NONE", + "httpMethod": "OPTIONS", + "methodIntegration": { + "cacheKeyParameters": [], + "cacheNamespace": "", + "integrationResponses": { + "200": { + "responseParameters": { + "method.response.header.Access-Control-Allow-Credentials": "'true'", + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,Authorization,x-test-header'", + "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,POST,GET,PUT'", + "method.response.header.Access-Control-Allow-Origin": "'http://localhost:8000'" + }, + "responseTemplates": { + "application/json": {} + }, + "statusCode": "200" + } + }, + "passthroughBehavior": "WHEN_NO_MATCH", + "requestTemplates": { + "application/json": { + "statusCode": 200 + } + }, + "timeoutInMillis": 29000, + "type": "MOCK" + }, + "methodResponses": { + "200": { + "responseParameters": { + "method.response.header.Access-Control-Allow-Credentials": false, + "method.response.header.Access-Control-Allow-Headers": false, + "method.response.header.Access-Control-Allow-Methods": false, + "method.response.header.Access-Control-Allow-Origin": false + }, + "statusCode": "200" + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/apigateway/resources/test_apigateway.validation.json b/tests/aws/services/apigateway/resources/test_apigateway.validation.json new file mode 100644 index 0000000000000..c4bc20e6a9901 --- /dev/null +++ b/tests/aws/services/apigateway/resources/test_apigateway.validation.json @@ -0,0 +1,38 @@ +{ + "tests/aws/services/apigateway/resources/test_apigateway.py::TestServerlessApigwLambda::test_serverless_like_deployment_with_update": { + "last_validated_date": "2025-04-11T11:52:58+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_account": { + "last_validated_date": "2025-04-11T11:57:08+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_api_gateway_with_policy_as_dict": { + "last_validated_date": "2025-04-11T11:58:47+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_apigateway_rest_api": { + "last_validated_date": "2025-04-11T11:56:24+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_apigateway_swagger_import": { + "last_validated_date": "2025-04-11T11:53:14+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_deploy_apigateway_from_s3_swagger": { + "last_validated_date": "2025-04-11T11:55:38+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_deploy_apigateway_integration": { + "last_validated_date": "2025-04-11T11:55:07+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_deploy_apigateway_models": { + "last_validated_date": "2025-04-11T11:54:34+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_cfn_with_apigateway_resources": { + "last_validated_date": "2025-04-11T11:54:13+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_rest_api_serverless_ref_resolving": { + "last_validated_date": "2025-04-11T11:59:45+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_update_apigateway_stage": { + "last_validated_date": "2025-04-11T11:58:28+00:00" + }, + "tests/aws/services/apigateway/resources/test_apigateway.py::test_update_usage_plan": { + "last_validated_date": "2025-04-11T11:57:42+00:00" + } +} From 78d29ebcab71b0af471c458fcecb15bc18e418cb Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 16:54:45 +0100 Subject: [PATCH 04/13] Revalidate tests # Conflicts: # tests/aws/templates/opensearch_domain_alternative_types.yml diff --git c/tests/aws/services/cloudwatch/resources/test_cloudwatch.snapshot.json i/tests/aws/services/cloudwatch/resources/test_cloudwatch.snapshot.json new file mode 100644 index 000000000000..967da1cec049 --- /dev/null +++ i/tests/aws/services/cloudwatch/resources/test_cloudwatch.snapshot.json @@ -0,0 +1,115 @@ +{ + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_creation": { + "recorded-date": "11-04-2025, 12:11:07", + "recorded-content": { + "alarm_outputs": { + "AlarmArnFromAtt": "arn::cloudwatch::111111111111:alarm:", + "AlarmName": "" + } + } + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_composite_alarm_creation": { + "recorded-date": "11-04-2025, 12:12:14", + "recorded-content": { + "composite_alarm": [ + { + "ActionsEnabled": true, + "AlarmActions": [ + "arn::sns::111111111111:" + ], + "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighResourceUsage", + "AlarmConfigurationUpdatedTimestamp": "timestamp", + "AlarmDescription": "Indicates that the system resource usage is high while no known deployment is in progress", + "AlarmName": "HighResourceUsage", + "AlarmRule": "(ALARM(HighCPUUsage) OR ALARM(HighMemoryUsage))", + "InsufficientDataActions": [], + "OKActions": [], + "StateReason": "arn::cloudwatch::111111111111:alarm:HighResourceUsage was created and its alarm rule evaluates to OK", + "StateReasonData": { + "triggeringAlarms": [ + { + "arn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", + "state": { + "value": "INSUFFICIENT_DATA", + "timestamp": "date" + } + }, + { + "arn": "arn::cloudwatch::111111111111:alarm:HighCPUUsage", + "state": { + "value": "INSUFFICIENT_DATA", + "timestamp": "date" + } + } + ] + }, + "StateUpdatedTimestamp": "timestamp", + "StateValue": "OK", + "StateTransitionedTimestamp": "timestamp" + } + ], + "metric_alarm": [ + { + "AlarmName": "HighMemoryUsage", + "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", + "AlarmDescription": "Memory usage is high", + "AlarmConfigurationUpdatedTimestamp": "timestamp", + "ActionsEnabled": true, + "OKActions": [], + "AlarmActions": [], + "InsufficientDataActions": [], + "StateValue": "INSUFFICIENT_DATA", + "StateReason": "Unchecked: Initial alarm creation", + "StateUpdatedTimestamp": "timestamp", + "MetricName": "MemoryUsage", + "Namespace": "CustomNamespace", + "Statistic": "Average", + "Dimensions": [], + "Period": 60, + "EvaluationPeriods": 1, + "Threshold": 65.0, + "ComparisonOperator": "GreaterThanThreshold", + "TreatMissingData": "breaching", + "StateTransitionedTimestamp": "timestamp" + } + ] + } + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_ext_statistic": { + "recorded-date": "11-04-2025, 12:12:29", + "recorded-content": { + "simple_alarm": [ + { + "AlarmName": "", + "AlarmArn": "arn::cloudwatch::111111111111:alarm:", + "AlarmDescription": "uses extended statistic", + "AlarmConfigurationUpdatedTimestamp": "timestamp", + "ActionsEnabled": true, + "OKActions": [], + "AlarmActions": [], + "InsufficientDataActions": [], + "StateValue": "INSUFFICIENT_DATA", + "StateReason": "Unchecked: Initial alarm creation", + "StateUpdatedTimestamp": "timestamp", + "MetricName": "Duration", + "Namespace": "", + "ExtendedStatistic": "p99", + "Dimensions": [ + { + "Name": "FunctionName", + "Value": "my-function" + } + ], + "Period": 300, + "Unit": "Count", + "EvaluationPeriods": 3, + "DatapointsToAlarm": 3, + "Threshold": 10.0, + "ComparisonOperator": "GreaterThanOrEqualToThreshold", + "TreatMissingData": "ignore", + "StateTransitionedTimestamp": "timestamp" + } + ] + } + } +} diff --git c/tests/aws/services/cloudwatch/resources/test_cloudwatch.validation.json i/tests/aws/services/cloudwatch/resources/test_cloudwatch.validation.json new file mode 100644 index 000000000000..69fc7229f988 --- /dev/null +++ i/tests/aws/services/cloudwatch/resources/test_cloudwatch.validation.json @@ -0,0 +1,11 @@ +{ + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_creation": { + "last_validated_date": "2025-04-11T12:11:07+00:00" + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_ext_statistic": { + "last_validated_date": "2025-04-11T12:12:29+00:00" + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_composite_alarm_creation": { + "last_validated_date": "2025-04-11T12:12:14+00:00" + } +} diff --git c/tests/aws/services/dynamodb/resources/test_dynamodb.py i/tests/aws/services/dynamodb/resources/test_dynamodb.py index 8aa572c62bf0..43c0bb7ecc76 100644 --- c/tests/aws/services/dynamodb/resources/test_dynamodb.py +++ i/tests/aws/services/dynamodb/resources/test_dynamodb.py @@ -123,12 +123,13 @@ def test_billing_mode_as_conditional(deploy_cfn_template, snapshot, aws_client, "$..Table.Replicas", ] ) -def test_global_table(deploy_cfn_template, snapshot, aws_client): +def test_global_table(deploy_cfn_template, snapshot, aws_client, region_name): snapshot.add_transformer(snapshot.transform.dynamodb_api()) stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../templates/dynamodb_global_table.yml" ), + parameters={"ReplicaRegion": region_name}, ) snapshot.add_transformer(snapshot.transform.key_value("TableName", "table-name")) response = aws_client.dynamodb.describe_table(TableName=stack.outputs["TableName"]) diff --git c/tests/aws/services/dynamodb/resources/test_dynamodb.snapshot.json i/tests/aws/services/dynamodb/resources/test_dynamodb.snapshot.json new file mode 100644 index 000000000000..1bb2728747ac --- /dev/null +++ i/tests/aws/services/dynamodb/resources/test_dynamodb.snapshot.json @@ -0,0 +1,384 @@ +{ + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_default_name_for_table": { + "recorded-date": "11-04-2025, 12:15:43", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "keyName", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "keyName", + "KeyType": "HASH" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 5, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 5 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_tags_of_resource": { + "Tags": [ + { + "Key": "TagKey1", + "Value": "TagValue1" + }, + { + "Key": "TagKey2", + "Value": "TagValue2" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { + "recorded-date": "11-04-2025, 12:16:18", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", + "LatestStreamLabel": "", + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamEnabled": true, + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 5, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 5 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { + "recorded-date": "11-04-2025, 12:16:53", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingModeSummary": { + "BillingMode": "PAY_PER_REQUEST", + "LastUpdateToPayPerRequestDateTime": "datetime" + }, + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", + "LatestStreamLabel": "", + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "StreamSpecification": { + "StreamEnabled": true, + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table": { + "recorded-date": "11-04-2025, 12:37:54", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "keyName", + "AttributeType": "S" + } + ], + "BillingModeSummary": { + "BillingMode": "PAY_PER_REQUEST", + "LastUpdateToPayPerRequestDateTime": "datetime" + }, + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "keyName", + "KeyType": "HASH" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_ttl_cdk": { + "recorded-date": "11-04-2025, 12:41:43", + "recorded-content": { + "table": { + "TimeToLiveDescription": { + "AttributeName": "expire_at", + "TimeToLiveStatus": "ENABLED" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { + "recorded-date": "11-04-2025, 12:42:04", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "pk", + "AttributeType": "S" + }, + { + "AttributeName": "sk", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "pk", + "KeyType": "HASH" + }, + { + "AttributeName": "sk", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 1, + "WriteCapacityUnits": 1 + }, + "SSEDescription": { + "KMSMasterKeyArn": "", + "SSEType": "KMS", + "Status": "ENABLED" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 1, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 1 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { + "recorded-date": "11-04-2025, 12:42:49", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "gsi1pk", + "AttributeType": "S" + }, + { + "AttributeName": "gsi1sk", + "AttributeType": "S" + }, + { + "AttributeName": "pk", + "AttributeType": "S" + }, + { + "AttributeName": "sk", + "AttributeType": "S" + } + ], + "BillingModeSummary": { + "BillingMode": "PAY_PER_REQUEST", + "LastUpdateToPayPerRequestDateTime": "datetime" + }, + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "GlobalSecondaryIndexes": [ + { + "IndexArn": "arn::dynamodb::111111111111:table//index/GSI1", + "IndexName": "GSI1", + "IndexSizeBytes": 0, + "IndexStatus": "ACTIVE", + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "gsi1pk", + "KeyType": "HASH" + }, + { + "AttributeName": "gsi1sk", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + } + ], + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "pk", + "KeyType": "HASH" + }, + { + "AttributeName": "sk", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "SSEDescription": { + "KMSMasterKeyArn": "", + "SSEType": "KMS", + "Status": "ENABLED" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableClassSummary": { + "TableClass": "STANDARD" + }, + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/dynamodb/resources/test_dynamodb.validation.json i/tests/aws/services/dynamodb/resources/test_dynamodb.validation.json new file mode 100644 index 000000000000..a29ab85e13d4 --- /dev/null +++ i/tests/aws/services/dynamodb/resources/test_dynamodb.validation.json @@ -0,0 +1,29 @@ +{ + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { + "last_validated_date": "2025-04-11T12:16:53+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { + "last_validated_date": "2025-04-11T12:16:18+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_default_name_for_table": { + "last_validated_date": "2025-04-11T12:15:43+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_deploy_stack_with_dynamodb_table": { + "last_validated_date": "2025-04-11T12:14:03+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table": { + "last_validated_date": "2025-04-11T12:37:54+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { + "last_validated_date": "2025-04-11T12:42:49+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_globalindex_read_write_provisioned_throughput_dynamodb_table": { + "last_validated_date": "2025-04-11T12:14:46+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { + "last_validated_date": "2025-04-11T12:42:04+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_ttl_cdk": { + "last_validated_date": "2025-04-11T12:41:43+00:00" + } +} diff --git c/tests/aws/services/ec2/resources/test_ec2.snapshot.json i/tests/aws/services/ec2/resources/test_ec2.snapshot.json new file mode 100644 index 000000000000..5860c71ea028 --- /dev/null +++ i/tests/aws/services/ec2/resources/test_ec2.snapshot.json @@ -0,0 +1,303 @@ +{ + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { + "recorded-date": "11-04-2025, 12:43:43", + "recorded-content": { + "tags": { + "Name": "Suspicious Route Table" + }, + "route_table": { + "Associations": [], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "10.0.0.0/16", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "VpcId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation": { + "recorded-date": "11-04-2025, 12:44:23", + "recorded-content": { + "tags": { + "Name": "Suspicious Route table" + }, + "route_table": { + "Associations": [], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "10.0.0.0/16", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "VpcId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { + "recorded-date": "11-04-2025, 12:46:42", + "recorded-content": { + "route_table": { + "Associations": [ + { + "AssociationState": { + "State": "associated" + }, + "Main": false, + "RouteTableAssociationId": "", + "RouteTableId": "", + "SubnetId": "" + }, + { + "AssociationState": { + "State": "associated" + }, + "Main": false, + "RouteTableAssociationId": "", + "RouteTableId": "", + "SubnetId": "" + } + ], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "100.0.0.0/20", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "Tags": [ + { + "Key": "env", + "Value": "production" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "RouteTable" + }, + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-0daec207" + }, + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-0daec207/f031e3b0-16d2-11f0-b66d-0aa58e870677" + } + ], + "VpcId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { + "recorded-date": "11-04-2025, 12:47:30", + "recorded-content": { + "outputs": { + "IdAttachment": "", + "RefAttachment": "" + }, + "description": { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LastUpdatedTimestamp": "", + "LogicalResourceId": "Gateway", + "Metadata": {}, + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::EC2::InternetGateway", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_dhcp_options": { + "recorded-date": "11-04-2025, 12:47:51", + "recorded-content": { + "description": { + "DhcpConfigurations": [ + { + "Key": "domain-name", + "Values": [ + { + "Value": "example.com" + } + ] + }, + { + "Key": "domain-name-servers", + "Values": [ + { + "Value": "AmazonProvidedDNS" + } + ] + }, + { + "Key": "netbios-name-servers", + "Values": [ + { + "Value": "10.2.5.1" + } + ] + }, + { + "Key": "netbios-node-type", + "Values": [ + { + "Value": "2" + } + ] + }, + { + "Key": "ntp-servers", + "Values": [ + { + "Value": "10.2.5.1" + } + ] + } + ], + "DhcpOptionsId": "", + "OwnerId": "111111111111", + "Tags": [ + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-c8574f52/254932b0-16d3-11f0-bbb9-02c9293d2a15" + }, + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-c8574f52" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "myDhcpOptions" + }, + { + "Key": "project", + "Value": "123" + } + ] + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_transit_gateway_attachment": { + "recorded-date": "11-04-2025, 12:52:34", + "recorded-content": { + "attachment": { + "Association": { + "State": "associated", + "TransitGatewayRouteTableId": "" + }, + "CreationTime": "", + "ResourceId": "", + "ResourceOwnerId": "111111111111", + "ResourceType": "vpc", + "State": "available", + "Tags": [ + { + "Key": "Name", + "Value": "example-tag" + } + ], + "TransitGatewayAttachmentId": "", + "TransitGatewayId": "", + "TransitGatewayOwnerId": "111111111111" + }, + "gateway": { + "CreationTime": "", + "Description": "TGW Route Integration Test", + "Options": { + "AmazonSideAsn": 65000, + "AssociationDefaultRouteTableId": "", + "AutoAcceptSharedAttachments": "disable", + "DefaultRouteTableAssociation": "enable", + "DefaultRouteTablePropagation": "enable", + "DnsSupport": "enable", + "MulticastSupport": "disable", + "PropagationDefaultRouteTableId": "", + "SecurityGroupReferencingSupport": "disable", + "VpnEcmpSupport": "enable" + }, + "OwnerId": "111111111111", + "State": "available", + "Tags": [ + { + "Key": "Application", + "Value": "arn::cloudformation::111111111111:stack/stack-dc38ff33/3089c090-16d3-11f0-9212-0a8f5c4c7c8b" + } + ], + "TransitGatewayArn": "arn::ec2::111111111111:transit-gateway/", + "TransitGatewayId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_vpc_with_route_table": { + "recorded-date": "11-04-2025, 12:53:14", + "recorded-content": { + "route_table": { + "RouteTables": [ + { + "Associations": [], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "100.0.0.0/20", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "Tags": { + "aws:cloudformation:logical-id": "RouteTable", + "aws:cloudformation:stack-id": "", + "aws:cloudformation:stack-name": "", + "env": "production" + }, + "VpcId": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { + "recorded-date": "11-04-2025, 12:53:44", + "recorded-content": { + "references": { + "SGWithVpcIdGroupId": "", + "SGWithVpcIdRef": "", + "SGWithoutVpcIdGroupId": "", + "SGWithoutVpcIdRef": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_keypair_create_import": { + "recorded-date": "11-04-2025, 12:53:59", + "recorded-content": { + "outputs": { + "GeneratedKeyPairFingerprint": "", + "GeneratedKeyPairName": "", + "ImportedKeyPairFingerprint": "4LmcYnyBOqlloHZ5TKAxfa8BgMK2wL6WeOOTvXVdhmw=", + "ImportedKeyPairName": "" + } + } + } +} diff --git c/tests/aws/services/ec2/resources/test_ec2.validation.json i/tests/aws/services/ec2/resources/test_ec2.validation.json new file mode 100644 index 000000000000..b0b60ff51972 --- /dev/null +++ i/tests/aws/services/ec2/resources/test_ec2.validation.json @@ -0,0 +1,35 @@ +{ + "tests/aws/services/ec2/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { + "last_validated_date": "2025-04-11T12:46:42+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_cfn_with_multiple_route_tables": { + "last_validated_date": "2025-04-11T12:45:59+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_dhcp_options": { + "last_validated_date": "2025-04-11T12:47:51+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { + "last_validated_date": "2025-04-11T12:53:44+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { + "last_validated_date": "2025-04-11T12:47:30+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_keypair_create_import": { + "last_validated_date": "2025-04-11T12:53:59+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation": { + "last_validated_date": "2025-04-11T12:44:23+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { + "last_validated_date": "2025-04-11T12:43:43+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_transit_gateway_attachment": { + "last_validated_date": "2025-04-11T12:52:34+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_vpc_creates_default_sg": { + "last_validated_date": "2025-04-11T12:45:01+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_vpc_with_route_table": { + "last_validated_date": "2025-04-11T12:53:14+00:00" + } +} diff --git c/tests/aws/services/es/resources/test_elasticsearch.snapshot.json i/tests/aws/services/es/resources/test_elasticsearch.snapshot.json new file mode 100644 index 000000000000..f07ef9ab1b7b --- /dev/null +++ i/tests/aws/services/es/resources/test_elasticsearch.snapshot.json @@ -0,0 +1,321 @@ +{ + "tests/aws/services/es/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { + "recorded-date": "11-04-2025, 13:26:11", + "recorded-content": { + "domain": { + "DomainStatus": { + "ARN": "arn::es::111111111111:domain/", + "AccessPolicies": "", + "AdvancedOptions": { + "override_main_response_version": "false", + "rest.action.multi.allow_explicit_index": "true" + }, + "AdvancedSecurityOptions": { + "AnonymousAuthEnabled": false, + "Enabled": false, + "InternalUserDatabaseEnabled": false + }, + "AutoTuneOptions": { + "State": "ENABLED" + }, + "ChangeProgressDetails": { + "ChangeId": "", + "ConfigChangeStatus": "ApplyingChanges", + "InitiatedBy": "CUSTOMER", + "LastUpdatedTime": "", + "StartTime": "" + }, + "CognitoOptions": { + "Enabled": false + }, + "Created": true, + "Deleted": false, + "DomainEndpointOptions": { + "CustomEndpointEnabled": false, + "EnforceHTTPS": false, + "TLSSecurityPolicy": "" + }, + "DomainId": "111111111111/", + "DomainName": "", + "DomainProcessingStatus": "Creating", + "EBSOptions": { + "EBSEnabled": true, + "Iops": 0, + "VolumeSize": 20, + "VolumeType": "gp2" + }, + "ElasticsearchClusterConfig": { + "ColdStorageOptions": { + "Enabled": false + }, + "DedicatedMasterCount": 3, + "DedicatedMasterEnabled": true, + "DedicatedMasterType": "m5.large.elasticsearch", + "InstanceCount": 2, + "InstanceType": "m5.large.elasticsearch", + "WarmEnabled": false, + "ZoneAwarenessConfig": { + "AvailabilityZoneCount": 2 + }, + "ZoneAwarenessEnabled": true + }, + "ElasticsearchVersion": "7.10", + "EncryptionAtRestOptions": { + "Enabled": false + }, + "Endpoint": "search--zeyfj6devtz4d3bvfl2yam7co4..es.amazonaws.com", + "ModifyingProperties": [ + { + "ActiveValue": "", + "Name": "AIMLOptions.NaturalLanguageQueryGenerationOptions", + "PendingValue": { + "CurrentState": "NOT_ENABLED", + "DesiredState": "DISABLED" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "AdvancedOptions", + "PendingValue": { + "override_main_response_version": "false", + "rest.action.multi.allow_explicit_index": "true" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.AnonymousAuthDisableDate", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.AnonymousAuthEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.InternalUserDatabaseEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.JWTOptions", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.MasterUserOptions", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.SAMLOptions", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.ColdStorageOptions", + "PendingValue": { + "Enabled": false + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.DedicatedMasterCount", + "PendingValue": "3", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.DedicatedMasterEnabled", + "PendingValue": "true", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.DedicatedMasterType", + "PendingValue": "m5.large.elasticsearch", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.InstanceCount", + "PendingValue": "2", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.InstanceType", + "PendingValue": "m5.large.elasticsearch", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.MultiAZWithStandbyEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmCount", + "PendingValue": "", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmStorage", + "PendingValue": "", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmType", + "PendingValue": "", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.ZoneAwarenessEnabled", + "PendingValue": "true", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchVersion", + "PendingValue": "7.10", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "IPAddressType", + "PendingValue": "ipv4", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "TAGS", + "PendingValue": { + "k1": "v1", + "k2": "v2" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "DomainEndpointOptions", + "PendingValue": { + "CustomEndpointEnabled": false, + "EnforceHTTPS": false, + "TLSSecurityPolicy": "" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "EBSOptions", + "PendingValue": { + "EBSEnabled": true, + "Iops": 0, + "VolumeSize": 20, + "VolumeType": "gp2" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "EncryptionAtRestOptions", + "PendingValue": { + "Enabled": false + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "NodeToNodeEncryptionOptions", + "PendingValue": { + "Enabled": false + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "OffPeakWindowOptions", + "PendingValue": { + "Enabled": true, + "OffPeakWindow": { + "WindowStartTime": { + "Hours": 20, + "Minutes": 0 + } + } + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "SnapshotOptions", + "PendingValue": { + "AutomatedSnapshotStartHour": 0 + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "SoftwareUpdateOptions", + "PendingValue": { + "AutoSoftwareUpdateEnabled": false + }, + "ValueType": "STRINGIFIED_JSON" + } + ], + "NodeToNodeEncryptionOptions": { + "Enabled": false + }, + "Processing": false, + "ServiceSoftwareOptions": { + "AutomatedUpdateDate": "", + "Cancellable": false, + "CurrentVersion": "", + "Description": "", + "NewVersion": "", + "OptionalDeployment": true, + "UpdateAvailable": false, + "UpdateStatus": "COMPLETED" + }, + "SnapshotOptions": { + "AutomatedSnapshotStartHour": 0 + }, + "UpgradeProcessing": false + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "tags": [ + { + "Key": "k1", + "Value": "v1" + }, + { + "Key": "k2", + "Value": "v2" + } + ] + } + } +} diff --git c/tests/aws/services/es/resources/test_elasticsearch.validation.json i/tests/aws/services/es/resources/test_elasticsearch.validation.json new file mode 100644 index 000000000000..e4addb3cb5bd --- /dev/null +++ i/tests/aws/services/es/resources/test_elasticsearch.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/es/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { + "last_validated_date": "2025-04-11T13:26:11+00:00" + } +} diff --git c/tests/aws/services/events/resources/test_events.snapshot.json i/tests/aws/services/events/resources/test_events.snapshot.json new file mode 100644 index 000000000000..66001b7719cc --- /dev/null +++ i/tests/aws/services/events/resources/test_events.snapshot.json @@ -0,0 +1,70 @@ +{ + "tests/aws/services/events/resources/test_events.py::test_event_rule_creation_without_target": { + "recorded-date": "11-04-2025, 13:44:58", + "recorded-content": { + "describe_rule": { + "Arn": "arn::events::111111111111:rule/event-rule-name", + "CreatedBy": "111111111111", + "EventBusName": "default", + "Name": "event-rule-name", + "ScheduleExpression": "cron(0 1 * * ? *)", + "State": "ENABLED", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/events/resources/test_events.py::test_rule_properties": { + "recorded-date": "11-04-2025, 13:46:46", + "recorded-content": { + "outputs": { + "RuleWithNameArn": "arn::events::111111111111:rule//", + "RuleWithNameRef": "|", + "RuleWithoutBusArn": "arn::events::111111111111:rule/", + "RuleWithoutBusRef": "", + "RuleWithoutNameArn": "arn::events::111111111111:rule//", + "RuleWithoutNameRef": "|" + } + } + }, + "tests/aws/services/events/resources/test_events.py::test_rule_pattern_transformation": { + "recorded-date": "11-04-2025, 13:48:40", + "recorded-content": { + "rule": { + "Arn": "arn::events::111111111111:rule/", + "CreatedBy": "111111111111", + "EventBusName": "default", + "EventPattern": { + "detail-type": [ + "Object Created" + ], + "source": [ + "aws.s3" + ], + "detail": { + "bucket": { + "name": [ + "test-s3-bucket" + ] + }, + "object": { + "key": [ + { + "suffix": "/test.json" + } + ] + } + } + }, + "Name": "", + "State": "ENABLED", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/events/resources/test_events.validation.json i/tests/aws/services/events/resources/test_events.validation.json new file mode 100644 index 000000000000..0006fbb2fbce --- /dev/null +++ i/tests/aws/services/events/resources/test_events.validation.json @@ -0,0 +1,26 @@ +{ + "tests/aws/services/events/resources/test_events.py::test_cfn_event_api_destination_resource": { + "last_validated_date": "2025-04-11T13:41:35+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_cfn_event_bus_resource": { + "last_validated_date": "2025-04-11T13:46:03+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_event_rule_creation_without_target": { + "last_validated_date": "2025-04-11T13:44:58+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_event_rule_to_logs": { + "last_validated_date": "2025-04-11T13:43:43+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_eventbus_policies": { + "last_validated_date": "2025-04-11T13:41:58+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_eventbus_policy_statement": { + "last_validated_date": "2025-04-11T13:42:17+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_rule_pattern_transformation": { + "last_validated_date": "2025-04-11T13:48:40+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_rule_properties": { + "last_validated_date": "2025-04-11T13:46:46+00:00" + } +} diff --git c/tests/aws/services/firehose/resources/test_firehose.snapshot.json i/tests/aws/services/firehose/resources/test_firehose.snapshot.json new file mode 100644 index 000000000000..ebacb6668b82 --- /dev/null +++ i/tests/aws/services/firehose/resources/test_firehose.snapshot.json @@ -0,0 +1,99 @@ +{ + "tests/aws/services/firehose/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { + "recorded-date": "11-04-2025, 13:50:16", + "recorded-content": { + "outputs": { + "deliveryStreamRef": "" + }, + "delivery_stream": { + "DeliveryStreamDescription": { + "CreateTimestamp": "", + "DeliveryStreamARN": "arn::firehose::111111111111:deliverystream/", + "DeliveryStreamName": "", + "DeliveryStreamStatus": "ACTIVE", + "DeliveryStreamType": "KinesisStreamAsSource", + "Destinations": [ + { + "DestinationId": "destinationId-000000000001", + "ExtendedS3DestinationDescription": { + "BucketARN": "arn::s3:::", + "BufferingHints": { + "IntervalInSeconds": 60, + "SizeInMBs": 64 + }, + "CloudWatchLoggingOptions": { + "Enabled": false + }, + "CompressionFormat": "UNCOMPRESSED", + "DataFormatConversionConfiguration": { + "Enabled": false + }, + "DynamicPartitioningConfiguration": { + "Enabled": true, + "RetryOptions": { + "DurationInSeconds": 300 + } + }, + "EncryptionConfiguration": { + "NoEncryptionConfig": "NoEncryption" + }, + "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", + "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", + "ProcessingConfiguration": { + "Enabled": true, + "Processors": [ + { + "Parameters": [ + { + "ParameterName": "MetadataExtractionQuery", + "ParameterValue": "{s3Prefix: .tableName}" + }, + { + "ParameterName": "JsonParsingEngine", + "ParameterValue": "JQ-1.6" + } + ], + "Type": "MetadataExtraction" + } + ] + }, + "RoleARN": "arn::iam::111111111111:role/", + "S3BackupMode": "Disabled" + }, + "S3DestinationDescription": { + "BucketARN": "arn::s3:::", + "BufferingHints": { + "IntervalInSeconds": 60, + "SizeInMBs": 64 + }, + "CloudWatchLoggingOptions": { + "Enabled": false + }, + "CompressionFormat": "UNCOMPRESSED", + "EncryptionConfiguration": { + "NoEncryptionConfig": "NoEncryption" + }, + "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", + "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", + "RoleARN": "arn::iam::111111111111:role/" + } + } + ], + "HasMoreDestinations": false, + "Source": { + "KinesisStreamSourceDescription": { + "DeliveryStartTimestamp": "", + "KinesisStreamARN": "arn::kinesis::111111111111:stream/", + "RoleARN": "arn::iam::111111111111:role/" + } + }, + "VersionId": "1" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/firehose/resources/test_firehose.validation.json i/tests/aws/services/firehose/resources/test_firehose.validation.json new file mode 100644 index 000000000000..89cf631d4379 --- /dev/null +++ i/tests/aws/services/firehose/resources/test_firehose.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/firehose/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { + "last_validated_date": "2025-04-11T13:50:16+00:00" + } +} diff --git c/tests/aws/services/kinesis/resources/test_kinesis.snapshot.json i/tests/aws/services/kinesis/resources/test_kinesis.snapshot.json new file mode 100644 index 000000000000..d51f95105d0b --- /dev/null +++ i/tests/aws/services/kinesis/resources/test_kinesis.snapshot.json @@ -0,0 +1,287 @@ +{ + "tests/aws/services/kinesis/resources/test_kinesis.py::test_stream_creation": { + "recorded-date": "11-04-2025, 13:51:24", + "recorded-content": { + "stack_output": { + "StreamArnFromAtt": "arn::kinesis::111111111111:stream/", + "StreamNameFromRef": "" + }, + "resource_description": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "TestStream", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Kinesis::Stream", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "stream_description": { + "StreamDescription": { + "EncryptionType": "NONE", + "EnhancedMonitoring": [ + { + "ShardLevelMetrics": [] + } + ], + "HasMoreShards": false, + "RetentionPeriodHours": 24, + "Shards": [ + { + "HashKeyRange": { + "EndingHashKey": "", + "StartingHashKey": "starting_hash" + }, + "SequenceNumberRange": { + "StartingSequenceNumber": "" + }, + "ShardId": "shard-id" + } + ], + "StreamARN": "arn::kinesis::111111111111:stream/", + "StreamCreationTimestamp": "timestamp", + "StreamModeDetails": { + "StreamMode": "PROVISIONED" + }, + "StreamName": "", + "StreamStatus": "ACTIVE" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_default_parameters_kinesis": { + "recorded-date": "11-04-2025, 13:51:47", + "recorded-content": { + "describe_stream": { + "StreamDescription": { + "EncryptionType": "NONE", + "EnhancedMonitoring": [ + { + "ShardLevelMetrics": [] + } + ], + "HasMoreShards": false, + "RetentionPeriodHours": 24, + "Shards": [ + { + "HashKeyRange": { + "EndingHashKey": "ending_hash", + "StartingHashKey": "starting_hash" + }, + "SequenceNumberRange": { + "StartingSequenceNumber": "" + }, + "ShardId": "" + } + ], + "StreamARN": "arn::kinesis::111111111111:stream/", + "StreamCreationTimestamp": "timestamp", + "StreamModeDetails": { + "StreamMode": "PROVISIONED" + }, + "StreamName": "", + "StreamStatus": "ACTIVE" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_cfn_handle_kinesis_firehose_resources": { + "recorded-date": "11-04-2025, 13:53:36", + "recorded-content": {} + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_describe_template": { + "recorded-date": "11-04-2025, 13:53:38", + "recorded-content": { + "get_template_summary_by_url": { + "Capabilities": [ + "CAPABILITY_NAMED_IAM" + ], + "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", + "Parameters": [ + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisRoleName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "DeliveryStreamName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisStreamName", + "ParameterType": "String" + } + ], + "ResourceIdentifierSummaries": [ + { + "LogicalResourceIds": [ + "MyBucket" + ], + "ResourceIdentifiers": [ + "BucketName" + ], + "ResourceType": "AWS::S3::Bucket" + }, + { + "LogicalResourceIds": [ + "MyRole" + ], + "ResourceIdentifiers": [ + "RoleName" + ], + "ResourceType": "AWS::IAM::Role" + }, + { + "LogicalResourceIds": [ + "KinesisStream" + ], + "ResourceIdentifiers": [ + "Name" + ], + "ResourceType": "AWS::Kinesis::Stream" + }, + { + "LogicalResourceIds": [ + "DeliveryStream" + ], + "ResourceIdentifiers": [ + "DeliveryStreamName" + ], + "ResourceType": "AWS::KinesisFirehose::DeliveryStream" + } + ], + "ResourceTypes": [ + "AWS::Kinesis::Stream", + "AWS::IAM::Role", + "AWS::S3::Bucket", + "AWS::KinesisFirehose::DeliveryStream" + ], + "Version": "2010-09-09", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_template_summary_by_body": { + "Capabilities": [ + "CAPABILITY_NAMED_IAM" + ], + "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", + "Parameters": [ + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisRoleName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "DeliveryStreamName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisStreamName", + "ParameterType": "String" + } + ], + "ResourceIdentifierSummaries": [ + { + "LogicalResourceIds": [ + "MyBucket" + ], + "ResourceIdentifiers": [ + "BucketName" + ], + "ResourceType": "AWS::S3::Bucket" + }, + { + "LogicalResourceIds": [ + "MyRole" + ], + "ResourceIdentifiers": [ + "RoleName" + ], + "ResourceType": "AWS::IAM::Role" + }, + { + "LogicalResourceIds": [ + "KinesisStream" + ], + "ResourceIdentifiers": [ + "Name" + ], + "ResourceType": "AWS::Kinesis::Stream" + }, + { + "LogicalResourceIds": [ + "DeliveryStream" + ], + "ResourceIdentifiers": [ + "DeliveryStreamName" + ], + "ResourceType": "AWS::KinesisFirehose::DeliveryStream" + } + ], + "ResourceTypes": [ + "AWS::Kinesis::Stream", + "AWS::IAM::Role", + "AWS::S3::Bucket", + "AWS::KinesisFirehose::DeliveryStream" + ], + "Version": "2010-09-09", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { + "recorded-date": "11-04-2025, 13:54:36", + "recorded-content": { + "describe_kinesis_streaming_destination": { + "KinesisDataStreamDestinations": [ + { + "DestinationStatus": "ACTIVE", + "StreamArn": "arn::kinesis::111111111111:stream/EventStream" + } + ], + "TableName": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_kinesis_stream_consumer_creations": { + "recorded-date": "11-04-2025, 13:55:24", + "recorded-content": {} + } +} diff --git c/tests/aws/services/kinesis/resources/test_kinesis.validation.json i/tests/aws/services/kinesis/resources/test_kinesis.validation.json new file mode 100644 index 000000000000..9ffaa3e4a9c7 --- /dev/null +++ i/tests/aws/services/kinesis/resources/test_kinesis.validation.json @@ -0,0 +1,20 @@ +{ + "tests/aws/services/kinesis/resources/test_kinesis.py::test_cfn_handle_kinesis_firehose_resources": { + "last_validated_date": "2025-04-11T13:53:36+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_default_parameters_kinesis": { + "last_validated_date": "2025-04-11T13:51:39+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_describe_template": { + "last_validated_date": "2025-04-11T13:53:38+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { + "last_validated_date": "2025-04-11T13:54:15+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_kinesis_stream_consumer_creations": { + "last_validated_date": "2025-04-11T13:55:03+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_stream_creation": { + "last_validated_date": "2025-04-11T13:51:16+00:00" + } +} diff --git c/tests/aws/services/kms/resources/test_kms.snapshot.json i/tests/aws/services/kms/resources/test_kms.snapshot.json new file mode 100644 index 000000000000..35b2b1942143 --- /dev/null +++ i/tests/aws/services/kms/resources/test_kms.snapshot.json @@ -0,0 +1,11 @@ +{ + "tests/aws/services/kms/resources/test_kms.py::test_cfn_with_kms_resources": { + "recorded-date": "11-04-2025, 13:58:56", + "recorded-content": { + "stack-outputs": { + "KeyAlias": "", + "KeyArn": "arn::kms::111111111111:key/" + } + } + } +} diff --git c/tests/aws/services/kms/resources/test_kms.validation.json i/tests/aws/services/kms/resources/test_kms.validation.json new file mode 100644 index 000000000000..b0c14417616e --- /dev/null +++ i/tests/aws/services/kms/resources/test_kms.validation.json @@ -0,0 +1,11 @@ +{ + "tests/aws/services/kms/resources/test_kms.py::test_cfn_with_kms_resources": { + "last_validated_date": "2025-04-11T13:58:56+00:00" + }, + "tests/aws/services/kms/resources/test_kms.py::test_deploy_stack_with_kms": { + "last_validated_date": "2025-04-11T13:59:40+00:00" + }, + "tests/aws/services/kms/resources/test_kms.py::test_kms_key_disabled": { + "last_validated_date": "2025-04-11T13:55:49+00:00" + } +} diff --git c/tests/aws/services/lambda_/resources/test_lambda.snapshot.json i/tests/aws/services/lambda_/resources/test_lambda.snapshot.json new file mode 100644 index 000000000000..c43a947df05e --- /dev/null +++ i/tests/aws/services/lambda_/resources/test_lambda.snapshot.json @@ -0,0 +1,1670 @@ +{ + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { + "recorded-date": "11-04-2025, 14:02:52", + "recorded-content": { + "source_mappings": { + "EventSourceMappings": [ + { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FilterCriteria": { + "Filters": [ + { + "Pattern": { + "eventName": [ + "DELETE" + ] + } + } + ] + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 0, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "updated_source_mappings": { + "EventSourceMappings": [ + { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FilterCriteria": { + "Filters": [ + { + "Pattern": { + "eventName": [ + "MODIFY" + ] + } + } + ] + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 0, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_cfn_function_url": { + "recorded-date": "11-04-2025, 14:06:38", + "recorded-content": { + "url_resource": { + "StackResourceDetail": { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LastUpdatedTimestamp": "timestamp", + "LogicalResourceId": "", + "Metadata": {}, + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Url", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "url_config": { + "AuthType": "NONE", + "CreationTime": "date", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionUrl": "", + "InvokeMode": "BUFFERED", + "LastModifiedTime": "date", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "exception_url_config_nonexistent_version": { + "Error": { + "Code": "ResourceNotFoundException", + "Message": "The resource you requested does not exist." + }, + "Message": "The resource you requested does not exist.", + "Type": "User", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 404 + } + }, + "url_config_arn": { + "AuthType": "NONE", + "CreationTime": "date", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionUrl": "", + "InvokeMode": "BUFFERED", + "LastModifiedTime": "date", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "response_headers": { + "connection": "keep-alive", + "content-length": "17", + "content-type": "application/json", + "date": "date", + "x-amzn-requestid": "", + "x-amzn-trace-id": "x-amzn-trace-id" + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_alias": { + "recorded-date": "11-04-2025, 14:09:16", + "recorded-content": { + "stack_resource_descriptions": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "FunctionAlias", + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Alias", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "LambdaFunction", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "MyFnServiceRole", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "Version", + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Version", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "Alias": { + "AliasArn": "arn::lambda::111111111111:function:", + "Description": "", + "FunctionVersion": "1", + "Name": "", + "RevisionId": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_logging_config": { + "recorded-date": "11-04-2025, 14:10:14", + "recorded-content": { + "stack_resource_descriptions": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "logical-resource-id", + "PhysicalResourceId": "physical-resource-id", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "logical-resource-id", + "PhysicalResourceId": "physical-resource-id", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "logical-resource-id", + "PhysicalResourceId": "physical-resource-id", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Version", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "logging_config": { + "ApplicationLogLevel": "INFO", + "LogFormat": "JSON", + "LogGroup": "/aws/lambda/", + "SystemLogLevel": "INFO" + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_code_signing_config": { + "recorded-date": "11-04-2025, 14:10:41", + "recorded-content": { + "stack_resource_descriptions": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "CodeSigningConfig", + "PhysicalResourceId": "arn::lambda::111111111111:code-signing-config:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::CodeSigningConfig", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "config": { + "CodeSigningConfig": { + "AllowedPublishers": { + "SigningProfileVersionArns": [ + "arn::signer::111111111111:/signing-profiles/test" + ] + }, + "CodeSigningConfigArn": "arn::lambda::111111111111:code-signing-config:", + "CodeSigningConfigId": "", + "CodeSigningPolicies": { + "UntrustedArtifactOnDeployment": "Enforce" + }, + "Description": "Code Signing", + "LastModified": "date" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_event_invoke_config": { + "recorded-date": "11-04-2025, 14:11:24", + "recorded-content": { + "event_invoke_config": { + "DestinationConfig": { + "OnFailure": {}, + "OnSuccess": {} + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "LastModified": "datetime", + "MaximumEventAgeInSeconds": 300, + "MaximumRetryAttempts": 1, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_version": { + "recorded-date": "11-04-2025, 14:12:23", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnVersion7BF8AE5A", + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Version", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "versions_by_fn": { + "Versions": [ + { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function::$LATEST", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "test description", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "1" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_function_version": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "test description", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "1" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { + "recorded-date": "11-04-2025, 14:15:42", + "recorded-content": { + "policy": { + "Policy": { + "Id": "default", + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Resource": "arn::lambda::111111111111:function:", + "Sid": "" + }, + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + }, + "Resource": "arn::lambda::111111111111:function:", + "Sid": "" + } + ], + "Version": "2012-10-17" + }, + "RevisionId": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_function_tags": { + "recorded-date": "11-04-2025, 14:16:35", + "recorded-content": { + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.11", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "Environment": "", + "aws:cloudformation:logical-id": "TestFunction", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "", + "lambda:createdBy": "SAM" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { + "recorded-date": "11-04-2025, 14:17:33", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnAllowInvokeLambdaPermissionsStacktopicF723B1A748672DB5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Permission", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fntopic09ED913A", + "PhysicalResourceId": "arn::sns::111111111111::", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SNS::Subscription", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "topic69831491", + "PhysicalResourceId": "arn::sns::111111111111:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SNS::Topic", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_topic_attributes_result": { + "Attributes": { + "DisplayName": "", + "EffectiveDeliveryPolicy": { + "http": { + "defaultHealthyRetryPolicy": { + "minDelayTarget": 20, + "maxDelayTarget": 20, + "numRetries": 3, + "numMaxDelayRetries": 0, + "numNoDelayRetries": 0, + "numMinDelayRetries": 0, + "backoffFunction": "linear" + }, + "disableSubscriptionOverrides": false, + "defaultRequestPolicy": { + "headerContentType": "text/plain; charset=UTF-8" + } + } + }, + "Owner": "111111111111", + "Policy": { + "Version": "2008-10-17", + "Id": "__default_policy_ID", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "AWS": "*" + }, + "Action": [ + "SNS:GetTopicAttributes", + "SNS:SetTopicAttributes", + "SNS:AddPermission", + "SNS:RemovePermission", + "SNS:DeleteTopic", + "SNS:Subscribe", + "SNS:ListSubscriptionsByTopic", + "SNS:Publish" + ], + "Resource": "arn::sns::111111111111:", + "Condition": { + "StringEquals": { + "AWS:SourceOwner": "111111111111" + } + } + } + ] + }, + "SubscriptionsConfirmed": "0", + "SubscriptionsDeleted": "0", + "SubscriptionsPending": "0", + "TopicArn": "arn::sns::111111111111:" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_policy_result": { + "Policy": { + "Version": "2012-10-17", + "Id": "default", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Service": "sns.amazonaws.com" + }, + "Action": "lambda:InvokeFunction", + "Resource": "arn::lambda::111111111111:function:", + "Condition": { + "ArnLike": { + "AWS:SourceArn": "arn::sns::111111111111:" + } + } + } + ] + }, + "RevisionId": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { + "recorded-date": "11-04-2025, 14:20:33", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Policy", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnSqsEventSourceLambdaSqsSourceStackq2097017B53C3FF8C", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::EventSourceMapping", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "q14836DC8", + "PhysicalResourceId": "https://sqs..amazonaws.com/111111111111/", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SQS::Queue", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "role_policies": { + "policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "sqs:ReceiveMessage", + "sqs:ChangeMessageVisibility", + "sqs:GetQueueUrl", + "sqs:DeleteMessage", + "sqs:GetQueueAttributes" + ], + "Effect": "Allow", + "Resource": "arn::sqs::111111111111:" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", + "RoleName": "", + "ResponseMetadata": "" + } + ] + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_esm_result": { + "BatchSize": 1, + "EventSourceArn": "arn::sqs::111111111111:", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "MaximumBatchingWindowInSeconds": 0, + "State": "Enabled", + "StateTransitionReason": "USER_INITIATED", + "UUID": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_queue_atts_result": { + "Attributes": { + "ApproximateNumberOfMessages": "0", + "ApproximateNumberOfMessagesDelayed": "0", + "ApproximateNumberOfMessagesNotVisible": "0", + "CreatedTimestamp": "timestamp", + "DelaySeconds": "0", + "LastModifiedTimestamp": "timestamp", + "MaximumMessageSize": "262144", + "MessageRetentionPeriod": "345600", + "QueueArn": "arn::sqs::111111111111:", + "ReceiveMessageWaitTimeSeconds": "0", + "SqsManagedSseEnabled": "true", + "VisibilityTimeout": "30" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_role_result": { + "Role": { + "Arn": "arn::iam::111111111111:role/", + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "CreateDate": "datetime", + "Description": "", + "MaxSessionDuration": 3600, + "Path": "/", + "RoleId": "", + "RoleLastUsed": {}, + "RoleName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_attached_role_policies_result": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", + "PolicyName": "AWSLambdaBasicExecutionRole" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_inline_role_policies_result": { + "IsTruncated": false, + "PolicyNames": [ + "fnServiceRoleDefaultPolicy0ED5D3E5" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { + "recorded-date": "11-04-2025, 14:26:48", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnDynamoDBEventSourceLambdaDynamodbSourceStacktable153BBA79064FDF1D", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::EventSourceMapping", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Policy", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "table8235A42E", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::DynamoDB::Table", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "role_policies": { + "policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": "dynamodb:ListStreams", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": "arn::dynamodb::111111111111:table//stream/" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", + "RoleName": "", + "ResponseMetadata": "" + } + ] + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_esm_result": { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 0, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_table_result": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", + "LatestStreamLabel": "", + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamEnabled": true, + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 5, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 5 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_stream_result": { + "StreamDescription": { + "CreationRequestDateTime": "datetime", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "Shards": [ + { + "SequenceNumberRange": { + "StartingSequenceNumber": "starting-sequence-number" + }, + "ShardId": "shard-id" + } + ], + "StreamArn": "arn::dynamodb::111111111111:table//stream/", + "StreamLabel": "", + "StreamStatus": "ENABLED", + "StreamViewType": "NEW_AND_OLD_IMAGES", + "TableName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_role_result": { + "Role": { + "Arn": "arn::iam::111111111111:role/", + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "CreateDate": "datetime", + "Description": "", + "MaxSessionDuration": 3600, + "Path": "/", + "RoleId": "", + "RoleLastUsed": {}, + "RoleName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_attached_role_policies_result": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", + "PolicyName": "AWSLambdaBasicExecutionRole" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_inline_role_policies_result": { + "IsTruncated": false, + "PolicyNames": [ + "fnServiceRoleDefaultPolicy0ED5D3E5" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { + "recorded-date": "11-04-2025, 14:30:11", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnKinesisEventSourceLambdaKinesisSourceStackstream996A3395ED86A30E", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::EventSourceMapping", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Policy", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "stream19075594", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Kinesis::Stream", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "role_policies": { + "policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "kinesis:DescribeStreamSummary", + "kinesis:GetRecords", + "kinesis:GetShardIterator", + "kinesis:ListShards", + "kinesis:SubscribeToShard", + "kinesis:DescribeStream", + "kinesis:ListStreams" + ], + "Effect": "Allow", + "Resource": "arn::kinesis::111111111111:stream/" + }, + { + "Action": "kinesis:DescribeStream", + "Effect": "Allow", + "Resource": "arn::kinesis::111111111111:stream/" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", + "RoleName": "", + "ResponseMetadata": "" + } + ] + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_esm_result": { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::kinesis::111111111111:stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 10, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_stream_result": { + "StreamDescription": { + "EncryptionType": "NONE", + "EnhancedMonitoring": [ + { + "ShardLevelMetrics": [] + } + ], + "HasMoreShards": false, + "RetentionPeriodHours": 24, + "Shards": [ + { + "HashKeyRange": { + "EndingHashKey": "ending_hash", + "StartingHashKey": "starting_hash" + }, + "SequenceNumberRange": { + "StartingSequenceNumber": "starting-sequence-number" + }, + "ShardId": "shard-id" + } + ], + "StreamARN": "arn::kinesis::111111111111:stream/", + "StreamCreationTimestamp": "timestamp", + "StreamModeDetails": { + "StreamMode": "PROVISIONED" + }, + "StreamName": "", + "StreamStatus": "ACTIVE" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_role_result": { + "Role": { + "Arn": "arn::iam::111111111111:role/", + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "CreateDate": "datetime", + "Description": "", + "MaxSessionDuration": 3600, + "Path": "/", + "RoleId": "", + "RoleLastUsed": {}, + "RoleName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_attached_role_policies_result": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", + "PolicyName": "AWSLambdaBasicExecutionRole" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_inline_role_policies_result": { + "IsTruncated": false, + "PolicyNames": [ + "fnServiceRoleDefaultPolicy0ED5D3E5" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { + "recorded-date": "11-04-2025, 14:35:09", + "recorded-content": { + "failed-async-lambda": { + "Messages": [ + { + "Body": {}, + "MD5OfBody": "99914b932bd37a50b983c5e7c90ae93b", + "MessageId": "", + "ReceiptHandle": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_layer_crud": { + "recorded-date": "11-04-2025, 14:36:25", + "recorded-content": { + "layer-name": "", + "cfn-output": { + "LambdaArn": "arn::lambda::111111111111:function:", + "LambdaName": "", + "LayerVersionArn": "arn::lambda::111111111111:layer::1", + "LayerVersionRef": "arn::lambda::111111111111:layer::1" + } + } + } +} diff --git c/tests/aws/services/lambda_/resources/test_lambda.validation.json i/tests/aws/services/lambda_/resources/test_lambda.validation.json new file mode 100644 index 000000000000..ff74b95bef20 --- /dev/null +++ i/tests/aws/services/lambda_/resources/test_lambda.validation.json @@ -0,0 +1,71 @@ +{ + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaDestinations::test_generic_destination_routing[sqs-sqs]": { + "last_validated_date": "2025-04-11T14:32:09+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { + "last_validated_date": "2025-04-11T14:26:48+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { + "last_validated_date": "2025-04-11T14:30:11+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { + "last_validated_date": "2025-04-11T14:17:33+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { + "last_validated_date": "2025-04-11T14:20:33+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_lambda_dynamodb_event_filter": { + "last_validated_date": "2025-04-11T14:23:57+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_cfn_function_url": { + "last_validated_date": "2025-04-11T14:06:38+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_event_invoke_config": { + "last_validated_date": "2025-04-11T14:11:24+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_alias": { + "last_validated_date": "2025-04-11T14:09:16+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { + "last_validated_date": "2025-04-11T14:35:09+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_cfn_run": { + "last_validated_date": "2025-04-11T14:13:17+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_code_signing_config": { + "last_validated_date": "2025-04-11T14:10:41+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_function_tags": { + "last_validated_date": "2025-04-11T14:16:35+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_layer_crud": { + "last_validated_date": "2025-04-11T14:36:25+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_logging_config": { + "last_validated_date": "2025-04-11T14:10:14+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_version": { + "last_validated_date": "2025-04-11T14:12:23+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter": { + "last_validated_date": "2025-04-11T14:01:14+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { + "last_validated_date": "2025-04-11T14:02:52+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { + "last_validated_date": "2025-04-11T14:15:42+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_python_lambda_code_deployed_via_s3": { + "last_validated_date": "2025-04-11T14:33:56+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_update_lambda_function": { + "last_validated_date": "2025-04-11T14:04:27+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_update_lambda_function_name": { + "last_validated_date": "2025-04-11T14:05:45+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_update_lambda_permissions": { + "last_validated_date": "2025-04-11T14:14:19+00:00" + } +} diff --git c/tests/aws/services/logs/resources/test_logs.snapshot.json i/tests/aws/services/logs/resources/test_logs.snapshot.json new file mode 100644 index 000000000000..2632cbe52d53 --- /dev/null +++ i/tests/aws/services/logs/resources/test_logs.snapshot.json @@ -0,0 +1,42 @@ +{ + "tests/aws/services/logs/resources/test_logs.py::test_logstream": { + "recorded-date": "11-04-2025, 14:37:12", + "recorded-content": { + "outputs": { + "LogGroupNameOutput": "", + "LogStreamNameOutput": "" + }, + "describe_log_streams": [ + { + "logStreamName": "", + "creationTime": "timestamp", + "arn": "arn::logs::111111111111:log-group::log-stream:", + "storedBytes": 0 + } + ] + } + }, + "tests/aws/services/logs/resources/test_logs.py::test_cfn_handle_log_group_resource": { + "recorded-date": "11-04-2025, 14:37:35", + "recorded-content": { + "describe_log_groups": { + "logGroups": [ + { + "arn": "arn::logs::111111111111:log-group::*", + "creationTime": "timestamp", + "logGroupArn": "arn::logs::111111111111:log-group:", + "logGroupClass": "STANDARD", + "logGroupName": "", + "metricFilterCount": 0, + "retentionInDays": 731, + "storedBytes": 0 + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/logs/resources/test_logs.validation.json i/tests/aws/services/logs/resources/test_logs.validation.json new file mode 100644 index 000000000000..65e37f1c9a35 --- /dev/null +++ i/tests/aws/services/logs/resources/test_logs.validation.json @@ -0,0 +1,8 @@ +{ + "tests/aws/services/logs/resources/test_logs.py::test_cfn_handle_log_group_resource": { + "last_validated_date": "2025-04-11T14:37:35+00:00" + }, + "tests/aws/services/logs/resources/test_logs.py::test_logstream": { + "last_validated_date": "2025-04-11T14:37:12+00:00" + } +} diff --git c/tests/aws/services/opensearch/resources/test_opensearch.snapshot.json i/tests/aws/services/opensearch/resources/test_opensearch.snapshot.json new file mode 100644 index 000000000000..dc71dbc307fb --- /dev/null +++ i/tests/aws/services/opensearch/resources/test_opensearch.snapshot.json @@ -0,0 +1,128 @@ +{ + "tests/aws/services/opensearch/resources/test_opensearch.py::test_domain_with_alternative_types": { + "recorded-date": "11-04-2025, 14:50:45", + "recorded-content": { + "describe_domain": { + "DomainStatus": { + "AIMLOptions": { + "NaturalLanguageQueryGenerationOptions": { + "CurrentState": "NOT_ENABLED", + "DesiredState": "DISABLED" + } + }, + "ARN": "arn::es::111111111111:domain/test-opensearch-domain", + "AccessPolicies": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "arn::iam::111111111111:root" + }, + "Action": "es:*", + "Resource": "arn::es::111111111111:domain/test-opensearch-domain/*" + } + ] + }, + "AdvancedOptions": { + "override_main_response_version": "true", + "rest.action.multi.allow_explicit_index": "true" + }, + "AdvancedSecurityOptions": { + "AnonymousAuthEnabled": false, + "Enabled": false, + "InternalUserDatabaseEnabled": false + }, + "AutoTuneOptions": { + "State": "ENABLED", + "UseOffPeakWindow": false + }, + "ChangeProgressDetails": { + "ChangeId": "", + "ConfigChangeStatus": "Completed", + "InitiatedBy": "CUSTOMER", + "LastUpdatedTime": "", + "StartTime": "" + }, + "ClusterConfig": { + "ColdStorageOptions": { + "Enabled": false + }, + "DedicatedMasterCount": 3, + "DedicatedMasterEnabled": true, + "DedicatedMasterType": "m5.large.search", + "InstanceCount": 2, + "InstanceType": "m5.large.search", + "MultiAZWithStandbyEnabled": false, + "WarmEnabled": false, + "ZoneAwarenessConfig": { + "AvailabilityZoneCount": 2 + }, + "ZoneAwarenessEnabled": true + }, + "CognitoOptions": { + "Enabled": false + }, + "Created": true, + "Deleted": false, + "DomainEndpointOptions": { + "CustomEndpointEnabled": false, + "EnforceHTTPS": false, + "TLSSecurityPolicy": "Policy-Min-TLS-1-2-2019-07" + }, + "DomainId": "111111111111/test-opensearch-domain", + "DomainName": "test-opensearch-domain", + "DomainProcessingStatus": "Active", + "EBSOptions": { + "EBSEnabled": true, + "Iops": 0, + "VolumeSize": 20, + "VolumeType": "gp2" + }, + "EncryptionAtRestOptions": { + "Enabled": false + }, + "Endpoint": "search-test-opensearch-domain-57fgnrmccspzmfzabq6yahdhc4..es.amazonaws.com", + "EngineVersion": "OpenSearch_1.0", + "IPAddressType": "ipv4", + "IdentityCenterOptions": {}, + "ModifyingProperties": [], + "NodeToNodeEncryptionOptions": { + "Enabled": false + }, + "OffPeakWindowOptions": { + "Enabled": true, + "OffPeakWindow": { + "WindowStartTime": { + "Hours": 20, + "Minutes": 0 + } + } + }, + "Processing": false, + "ServiceSoftwareOptions": { + "AutomatedUpdateDate": "", + "Cancellable": false, + "CurrentVersion": "OpenSearch_1_0_R20241003-P1", + "Description": "There is no software update available for this domain.", + "NewVersion": "", + "OptionalDeployment": true, + "UpdateAvailable": false, + "UpdateStatus": "COMPLETED" + }, + "SnapshotOptions": { + "AutomatedSnapshotStartHour": 0 + }, + "SoftwareUpdateOptions": { + "AutoSoftwareUpdateEnabled": false + }, + "UpgradeProcessing": false + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/opensearch/resources/test_opensearch.validation.json i/tests/aws/services/opensearch/resources/test_opensearch.validation.json new file mode 100644 index 000000000000..6fea836bb231 --- /dev/null +++ i/tests/aws/services/opensearch/resources/test_opensearch.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/opensearch/resources/test_opensearch.py::test_domain_with_alternative_types": { + "last_validated_date": "2025-04-11T14:50:45+00:00" + } +} diff --git c/tests/aws/services/redshift/resources/test_redshift.validation.json i/tests/aws/services/redshift/resources/test_redshift.validation.json new file mode 100644 index 000000000000..602b57193860 --- /dev/null +++ i/tests/aws/services/redshift/resources/test_redshift.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/redshift/resources/test_redshift.py::test_redshift_cluster": { + "last_validated_date": "2025-04-11T15:06:31+00:00" + } +} diff --git c/tests/aws/services/resource_groups/resources/test_resource_groups.snapshot.json i/tests/aws/services/resource_groups/resources/test_resource_groups.snapshot.json new file mode 100644 index 000000000000..3c04c032f052 --- /dev/null +++ i/tests/aws/services/resource_groups/resources/test_resource_groups.snapshot.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/resource_groups/resources/test_resource_groups.py::test_group_defaults": { + "recorded-date": "11-04-2025, 15:08:42", + "recorded-content": { + "resource-group": { + "Group": { + "GroupArn": "arn::resource-groups::111111111111:group/testgroup", + "Name": "testgroup" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/resource_groups/resources/test_resource_groups.validation.json i/tests/aws/services/resource_groups/resources/test_resource_groups.validation.json new file mode 100644 index 000000000000..8b7b46d51083 --- /dev/null +++ i/tests/aws/services/resource_groups/resources/test_resource_groups.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/resource_groups/resources/test_resource_groups.py::test_group_defaults": { + "last_validated_date": "2025-04-11T15:08:42+00:00" + } +} diff --git c/tests/aws/services/route53/resources/test_route53.snapshot.json i/tests/aws/services/route53/resources/test_route53.snapshot.json new file mode 100644 index 000000000000..60789a0e1e19 --- /dev/null +++ i/tests/aws/services/route53/resources/test_route53.snapshot.json @@ -0,0 +1,25 @@ +{ + "tests/aws/services/route53/resources/test_route53.py::test_create_health_check": { + "recorded-date": "11-04-2025, 15:12:56", + "recorded-content": { + "HealthCheck": { + "CallerReference": "", + "HealthCheckConfig": { + "Disabled": false, + "EnableSNI": false, + "FailureThreshold": 3, + "FullyQualifiedDomainName": "localstacktest.com", + "IPAddress": "1.1.1.1", + "Inverted": false, + "MeasureLatency": false, + "Port": 80, + "RequestInterval": 30, + "ResourcePath": "/health", + "Type": "HTTP" + }, + "HealthCheckVersion": 1, + "Id": "" + } + } + } +} diff --git c/tests/aws/services/route53/resources/test_route53.validation.json i/tests/aws/services/route53/resources/test_route53.validation.json new file mode 100644 index 000000000000..3547dcb9bdca --- /dev/null +++ i/tests/aws/services/route53/resources/test_route53.validation.json @@ -0,0 +1,14 @@ +{ + "tests/aws/services/route53/resources/test_route53.py::test_create_health_check": { + "last_validated_date": "2025-04-11T15:12:56+00:00" + }, + "tests/aws/services/route53/resources/test_route53.py::test_create_record_set_via_id": { + "last_validated_date": "2025-04-11T15:09:29+00:00" + }, + "tests/aws/services/route53/resources/test_route53.py::test_create_record_set_via_name": { + "last_validated_date": "2025-04-11T15:10:48+00:00" + }, + "tests/aws/services/route53/resources/test_route53.py::test_create_record_set_without_resource_record": { + "last_validated_date": "2025-04-11T15:12:07+00:00" + } +} diff --git c/tests/aws/services/s3/resources/test_s3.snapshot.json i/tests/aws/services/s3/resources/test_s3.snapshot.json new file mode 100644 index 000000000000..62f14de37b9b --- /dev/null +++ i/tests/aws/services/s3/resources/test_s3.snapshot.json @@ -0,0 +1,176 @@ +{ + "tests/aws/services/s3/resources/test_s3.py::test_bucketpolicy": { + "recorded-date": "11-04-2025, 15:13:39", + "recorded-content": { + "bucket": { + "BucketName": "" + }, + "get-policy-true": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "*" + }, + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Resource": [ + "arn::s3:::", + "arn::s3:::/*" + ] + } + ] + }, + "no-policy": { + "Error": { + "BucketName": "", + "Code": "NoSuchBucketPolicy", + "Message": "The bucket policy does not exist" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 404 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_website_configuration": { + "recorded-date": "11-04-2025, 15:15:00", + "recorded-content": { + "get_bucket_website": { + "ErrorDocument": { + "Key": "error.html" + }, + "IndexDocument": { + "Suffix": "index.html" + }, + "RoutingRules": [ + { + "Condition": { + "HttpErrorCodeReturnedEquals": "404", + "KeyPrefixEquals": "out1/" + }, + "Redirect": { + "ReplaceKeyWith": "redirected.html" + } + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_cors_configuration": { + "recorded-date": "11-04-2025, 15:15:28", + "recorded-content": { + "cors-info-optional": { + "CORSRules": [ + { + "AllowedHeaders": [ + "*", + "x-amz-*" + ], + "AllowedMethods": [ + "GET" + ], + "AllowedOrigins": [ + "*" + ], + "ExposeHeaders": [ + "Date" + ], + "ID": "test-cors-id", + "MaxAgeSeconds": 3600 + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "cors-info-only-required": { + "CORSRules": [ + { + "AllowedMethods": [ + "GET" + ], + "AllowedOrigins": [ + "*" + ], + "MaxAgeSeconds": 0 + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_object_lock_configuration": { + "recorded-date": "11-04-2025, 15:15:56", + "recorded-content": { + "object-lock-info-with-configuration": { + "ObjectLockConfiguration": { + "ObjectLockEnabled": "Enabled", + "Rule": { + "DefaultRetention": { + "Days": 2, + "Mode": "GOVERNANCE" + } + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "object-lock-info-only-enabled": { + "ObjectLockConfiguration": { + "ObjectLockEnabled": "Enabled" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { + "recorded-date": "11-04-2025, 15:17:32", + "recorded-content": { + "get_bucket_notification_configuration": { + "QueueConfigurations": [ + { + "Events": [ + "s3:ObjectCreated:*" + ], + "Id": "", + "QueueArn": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_bucket_notification_configuration_error": { + "Error": { + "BucketName": "", + "Code": "NoSuchBucket", + "Message": "The specified bucket does not exist" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 404 + } + } + } + } +} diff --git c/tests/aws/services/s3/resources/test_s3.validation.json i/tests/aws/services/s3/resources/test_s3.validation.json new file mode 100644 index 000000000000..5e8da552c341 --- /dev/null +++ i/tests/aws/services/s3/resources/test_s3.validation.json @@ -0,0 +1,23 @@ +{ + "tests/aws/services/s3/resources/test_s3.py::test_bucket_autoname": { + "last_validated_date": "2025-04-11T15:14:06+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_bucket_versioning": { + "last_validated_date": "2025-04-11T15:14:33+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_bucketpolicy": { + "last_validated_date": "2025-04-11T15:13:39+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { + "last_validated_date": "2025-04-11T15:17:32+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_cors_configuration": { + "last_validated_date": "2025-04-11T15:15:28+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_object_lock_configuration": { + "last_validated_date": "2025-04-11T15:15:56+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_website_configuration": { + "last_validated_date": "2025-04-11T15:15:00+00:00" + } +} diff --git c/tests/aws/services/secretsmanager/resources/test_secretsmanager.snapshot.json i/tests/aws/services/secretsmanager/resources/test_secretsmanager.snapshot.json new file mode 100644 index 000000000000..cdb8fd95fbb4 --- /dev/null +++ i/tests/aws/services/secretsmanager/resources/test_secretsmanager.snapshot.json @@ -0,0 +1,162 @@ +{ + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { + "recorded-date": "11-04-2025, 15:17:42", + "recorded-content": { + "secret": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "CreatedDate": "datetime", + "Description": "Aurora Password", + "LastChangedDate": "datetime", + "Name": "", + "Tags": [ + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-e7ec9681" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "Secret" + }, + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-e7ec9681/171d1110-16e8-11f0-88d8-0acecb2e8bf9" + } + ], + "VersionIdsToStages": { + "1a836d7c-82af-978c-3dba-7cb1fea10435": [ + "AWSCURRENT" + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { + "recorded-date": "11-04-2025, 15:18:09", + "recorded-content": { + "secret": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "CreatedDate": "datetime", + "Description": "Aurora Password", + "LastChangedDate": "datetime", + "Name": "", + "Tags": [ + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-d766ba9b" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "Secret" + }, + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-d766ba9b/225317a0-16e8-11f0-9083-065d3a105a0f" + } + ], + "VersionIdsToStages": { + "a3717297-a892-6498-b37f-22ac8453bc72": [ + "AWSCURRENT" + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "exception": { + "Error": { + "Code": "ResourceNotFoundException", + "Message": "Secrets Manager can't find the specified secret." + }, + "Message": "Secrets Manager can't find the specified secret.", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 400 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { + "recorded-date": "11-04-2025, 15:18:22", + "recorded-content": { + "outputs": { + "SecretId": "arn::secretsmanager::111111111111:secret:", + "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" + }, + "resource_policy": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "Name": "", + "ResourcePolicy": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "arn::iam::111111111111:root" + }, + "Action": "secretsmanager:ReplicateSecretToRegions", + "Resource": "*" + } + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { + "recorded-date": "11-04-2025, 15:18:45", + "recorded-content": { + "outputs": { + "SecretId": "arn::secretsmanager::111111111111:secret:", + "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" + }, + "resource_policy": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "Name": "", + "ResourcePolicy": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "arn::iam::111111111111:root" + }, + "Action": "secretsmanager:ReplicateSecretToRegions", + "Resource": "*" + } + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { + "recorded-date": "11-04-2025, 15:19:25", + "recorded-content": { + "generated_key": { + "ARN": "", + "CreatedDate": "datetime", + "Name": "", + "SecretString": "secret-string", + "VersionId": "", + "VersionStages": [ + "AWSCURRENT" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/secretsmanager/resources/test_secretsmanager.validation.json i/tests/aws/services/secretsmanager/resources/test_secretsmanager.validation.json new file mode 100644 index 000000000000..667ef3b8904f --- /dev/null +++ i/tests/aws/services/secretsmanager/resources/test_secretsmanager.validation.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { + "last_validated_date": "2025-04-11T15:19:25+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { + "last_validated_date": "2025-04-11T15:18:09+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { + "last_validated_date": "2025-04-11T15:18:45+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { + "last_validated_date": "2025-04-11T15:18:22+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { + "last_validated_date": "2025-04-11T15:17:42+00:00" + } +} diff --git c/tests/aws/services/sns/resources/test_sns.snapshot.json i/tests/aws/services/sns/resources/test_sns.snapshot.json new file mode 100644 index 000000000000..e45b33a49815 --- /dev/null +++ i/tests/aws/services/sns/resources/test_sns.snapshot.json @@ -0,0 +1,116 @@ +{ + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { + "recorded-date": "11-04-2025, 15:19:36", + "recorded-content": { + "get-topic-attrs": { + "Attributes": { + "ContentBasedDeduplication": "true", + "DisplayName": "", + "EffectiveDeliveryPolicy": { + "http": { + "defaultHealthyRetryPolicy": { + "minDelayTarget": 20, + "maxDelayTarget": 20, + "numRetries": 3, + "numMaxDelayRetries": 0, + "numNoDelayRetries": 0, + "numMinDelayRetries": 0, + "backoffFunction": "linear" + }, + "disableSubscriptionOverrides": false, + "defaultRequestPolicy": { + "headerContentType": "text/plain; charset=UTF-8" + } + } + }, + "FifoTopic": "true", + "Owner": "111111111111", + "Policy": { + "Version": "2008-10-17", + "Id": "__default_policy_ID", + "Statement": [ + { + "Sid": "__default_statement_ID", + "Effect": "Allow", + "Principal": { + "AWS": "*" + }, + "Action": [ + "SNS:GetTopicAttributes", + "SNS:SetTopicAttributes", + "SNS:AddPermission", + "SNS:RemovePermission", + "SNS:DeleteTopic", + "SNS:Subscribe", + "SNS:ListSubscriptionsByTopic", + "SNS:Publish" + ], + "Resource": "", + "Condition": { + "StringEquals": { + "AWS:SourceOwner": "111111111111" + } + } + } + ] + }, + "SubscriptionsConfirmed": "0", + "SubscriptionsDeleted": "0", + "SubscriptionsPending": "0", + "TopicArn": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/sns/resources/test_sns.py::test_update_subscription": { + "recorded-date": "11-04-2025, 15:24:35", + "recorded-content": { + "subscription-1": { + "Attributes": { + "ConfirmationWasAuthenticated": "true", + "Endpoint": "arn::sqs::111111111111:", + "Owner": "111111111111", + "PendingConfirmation": "false", + "Protocol": "sqs", + "RawMessageDelivery": "true", + "SubscriptionArn": "arn::sns::111111111111::", + "SubscriptionPrincipal": "arn::iam::111111111111:role/aws-reserved/sso.amazonaws.com//", + "TopicArn": "arn::sns::111111111111:" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "subscription-2": { + "Attributes": { + "ConfirmationWasAuthenticated": "true", + "Endpoint": "arn::sqs::111111111111:", + "Owner": "111111111111", + "PendingConfirmation": "false", + "Protocol": "sqs", + "RawMessageDelivery": "false", + "SubscriptionArn": "arn::sns::111111111111::", + "SubscriptionPrincipal": "arn::iam::111111111111:role/aws-reserved/sso.amazonaws.com//", + "TopicArn": "arn::sns::111111111111:" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_with_attributes": { + "recorded-date": "11-04-2025, 15:24:59", + "recorded-content": { + "topic-archive-policy": { + "MessageRetentionPeriod": "30" + } + } + } +} diff --git c/tests/aws/services/sns/resources/test_sns.validation.json i/tests/aws/services/sns/resources/test_sns.validation.json new file mode 100644 index 000000000000..ed8ceeed4c56 --- /dev/null +++ i/tests/aws/services/sns/resources/test_sns.validation.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/sns/resources/test_sns.py::test_deploy_stack_with_sns_topic": { + "last_validated_date": "2025-04-11T15:24:09+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_subscription": { + "last_validated_date": "2025-04-11T15:21:13+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { + "last_validated_date": "2025-04-11T15:19:36+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_with_attributes": { + "last_validated_date": "2025-04-11T15:24:59+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_update_subscription": { + "last_validated_date": "2025-04-11T15:24:30+00:00" + } +} diff --git c/tests/aws/services/sqs/resources/test_sqs.snapshot.json i/tests/aws/services/sqs/resources/test_sqs.snapshot.json new file mode 100644 index 000000000000..ad0082356aa1 --- /dev/null +++ i/tests/aws/services/sqs/resources/test_sqs.snapshot.json @@ -0,0 +1,119 @@ +{ + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_queue_policy": { + "recorded-date": "11-04-2025, 15:25:38", + "recorded-content": { + "policy": { + "Attributes": { + "Policy": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": "*", + "Action": [ + "sqs:SendMessage", + "sqs:GetQueueAttributes", + "sqs:GetQueueUrl" + ], + "Resource": "" + } + ] + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_cfn_handle_sqs_resource": { + "recorded-date": "11-04-2025, 15:29:51", + "recorded-content": { + "queue": { + "Attributes": { + "ApproximateNumberOfMessages": "0", + "ApproximateNumberOfMessagesDelayed": "0", + "ApproximateNumberOfMessagesNotVisible": "0", + "ContentBasedDeduplication": "false", + "CreatedTimestamp": "timestamp", + "DeduplicationScope": "queue", + "DelaySeconds": "0", + "FifoQueue": "true", + "FifoThroughputLimit": "perQueue", + "LastModifiedTimestamp": "timestamp", + "MaximumMessageSize": "262144", + "MessageRetentionPeriod": "345600", + "QueueArn": "arn::sqs::111111111111:.fifo", + "ReceiveMessageWaitTimeSeconds": "0", + "SqsManagedSseEnabled": "true", + "VisibilityTimeout": "30" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "error": { + "Error": { + "Code": "AWS.SimpleQueueService.NonExistentQueue", + "Message": "The specified queue does not exist.", + "QueryErrorCode": "QueueDoesNotExist", + "Type": "Sender" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 400 + } + } + } + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_queue_no_change": { + "recorded-date": "11-04-2025, 15:30:56", + "recorded-content": { + "outputs-1": { + "QueueArn": "", + "QueueUrl": "" + }, + "outputs-2": { + "QueueArn": "", + "QueueUrl": "" + } + } + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_sqs_queuepolicy": { + "recorded-date": "11-04-2025, 15:32:21", + "recorded-content": { + "policy1": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": "*", + "Action": [ + "sqs:SendMessage", + "sqs:GetQueueAttributes", + "sqs:GetQueueUrl" + ], + "Resource": "arn::sqs::111111111111:" + } + ] + }, + "policy2": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Deny", + "Principal": "*", + "Action": [ + "sqs:SendMessage", + "sqs:GetQueueAttributes", + "sqs:GetQueueUrl" + ], + "Resource": "arn::sqs::111111111111:" + } + ] + } + } + } +} diff --git c/tests/aws/services/sqs/resources/test_sqs.validation.json i/tests/aws/services/sqs/resources/test_sqs.validation.json new file mode 100644 index 000000000000..f67acabdc5af --- /dev/null +++ i/tests/aws/services/sqs/resources/test_sqs.validation.json @@ -0,0 +1,20 @@ +{ + "tests/aws/services/sqs/resources/test_sqs.py::test_cfn_handle_sqs_resource": { + "last_validated_date": "2025-04-11T15:29:51+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_fifo_queue_generates_valid_name": { + "last_validated_date": "2025-04-11T15:26:52+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_non_fifo_queue_generates_valid_name": { + "last_validated_date": "2025-04-11T15:28:05+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_queue_policy": { + "last_validated_date": "2025-04-11T15:25:38+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_queue_no_change": { + "last_validated_date": "2025-04-11T15:30:56+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_sqs_queuepolicy": { + "last_validated_date": "2025-04-11T15:32:21+00:00" + } +} diff --git c/tests/aws/services/ssm/resources/test_ssm.snapshot.json i/tests/aws/services/ssm/resources/test_ssm.snapshot.json new file mode 100644 index 000000000000..3de4b1545830 --- /dev/null +++ i/tests/aws/services/ssm/resources/test_ssm.snapshot.json @@ -0,0 +1,117 @@ +{ + "tests/aws/services/ssm/resources/test_ssm.py::test_parameter_defaults": { + "recorded-date": "11-04-2025, 15:33:11", + "recorded-content": { + "ssm_parameter": { + "Parameter": { + "ARN": "arn::ssm::111111111111:parameter/", + "DataType": "text", + "LastModifiedDate": "", + "Name": "", + "Type": "String", + "Value": "", + "Version": 1 + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "ssm_parameter_not_found": { + "Error": { + "Code": "ParameterNotFound", + "Message": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 400 + } + } + } + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_deploy_patch_baseline": { + "recorded-date": "11-04-2025, 15:34:13", + "recorded-content": { + "patch_baseline": { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LastUpdatedTimestamp": "", + "LogicalResourceId": "myPatchBaseline", + "Metadata": {}, + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SSM::PatchBaseline", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "" + } + } + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_maintenance_window": { + "recorded-date": "11-04-2025, 15:34:30", + "recorded-content": { + "MaintenanceWindow": [ + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchBaselineAML", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::PatchBaseline", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchBaselineAML2", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::PatchBaseline", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchServerMaintenanceWindow", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::MaintenanceWindow", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchServerMaintenanceWindowTarget", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::MaintenanceWindowTarget", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchServerTask", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::MaintenanceWindowTask", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + } + ] + } + } +} diff --git c/tests/aws/services/ssm/resources/test_ssm.validation.json i/tests/aws/services/ssm/resources/test_ssm.validation.json new file mode 100644 index 000000000000..ce2f507d977d --- /dev/null +++ i/tests/aws/services/ssm/resources/test_ssm.validation.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/ssm/resources/test_ssm.py::test_deploy_patch_baseline": { + "last_validated_date": "2025-04-11T15:34:13+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_maintenance_window": { + "last_validated_date": "2025-04-11T15:34:30+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_parameter_defaults": { + "last_validated_date": "2025-04-11T15:33:11+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_update_ssm_parameter_tag": { + "last_validated_date": "2025-04-11T15:33:59+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_update_ssm_parameters": { + "last_validated_date": "2025-04-11T15:33:34+00:00" + } +} diff --git c/tests/aws/services/stepfunctions/resources/test_stepfunctions.snapshot.json i/tests/aws/services/stepfunctions/resources/test_stepfunctions.snapshot.json new file mode 100644 index 000000000000..eb123f78a8c5 --- /dev/null +++ i/tests/aws/services/stepfunctions/resources/test_stepfunctions.snapshot.json @@ -0,0 +1,113 @@ +{ + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { + "recorded-date": "11-04-2025, 15:46:53", + "recorded-content": { + "describe_state_machine_output_on_create": { + "creationDate": "datetime", + "definition": { + "Comment": "step: on create", + "StartAt": "S0", + "States": { + "S0": { + "Type": "Succeed" + } + } + }, + "encryptionConfiguration": { + "type": "AWS_OWNED_KEY" + }, + "loggingConfiguration": { + "includeExecutionData": false, + "level": "OFF" + }, + "name": "", + "roleArn": "", + "stateMachineArn": "", + "status": "ACTIVE", + "tracingConfiguration": { + "enabled": false + }, + "type": "STANDARD", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_state_machine_output_on_update": { + "creationDate": "datetime", + "definition": { + "Comment": "step: on update", + "StartAt": "S0", + "States": { + "S0": { + "Type": "Succeed" + } + } + }, + "encryptionConfiguration": { + "type": "AWS_OWNED_KEY" + }, + "loggingConfiguration": { + "includeExecutionData": false, + "level": "OFF" + }, + "name": "", + "revisionId": "", + "roleArn": "", + "stateMachineArn": "", + "status": "ACTIVE", + "tracingConfiguration": { + "enabled": false + }, + "type": "STANDARD", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { + "recorded-date": "11-04-2025, 15:48:38", + "recorded-content": { + "describe_state_machine_result": { + "creationDate": "datetime", + "definition": { + "StartAt": "S0", + "States": { + "S0": { + "Type": "Pass", + "End": true + } + } + }, + "encryptionConfiguration": { + "type": "AWS_OWNED_KEY" + }, + "loggingConfiguration": { + "destinations": [ + { + "cloudWatchLogsLogGroup": { + "logGroupArn": "" + } + } + ], + "includeExecutionData": true, + "level": "ALL" + }, + "name": "", + "roleArn": "", + "stateMachineArn": "", + "status": "ACTIVE", + "tracingConfiguration": { + "enabled": false + }, + "type": "STANDARD", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/stepfunctions/resources/test_stepfunctions.validation.json i/tests/aws/services/stepfunctions/resources/test_stepfunctions.validation.json new file mode 100644 index 000000000000..43b778f25cf0 --- /dev/null +++ i/tests/aws/services/stepfunctions/resources/test_stepfunctions.validation.json @@ -0,0 +1,20 @@ +{ + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_apigateway_invoke_with_path": { + "last_validated_date": "2025-04-11T15:43:29+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { + "last_validated_date": "2025-04-11T15:46:53+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_cfn_statemachine_with_dependencies": { + "last_validated_date": "2025-04-11T15:46:09+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_nested_statemachine_with_sync2": { + "last_validated_date": "2025-04-11T15:37:41+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { + "last_validated_date": "2025-04-11T15:48:38+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_statemachine_definitionsubstitution": { + "last_validated_date": "2025-04-11T15:35:23+00:00" + } +} diff --git c/tests/aws/templates/dynamodb_global_table.yml i/tests/aws/templates/dynamodb_global_table.yml index eaeb6ef2cbf1..b4f96969909c 100644 --- c/tests/aws/templates/dynamodb_global_table.yml +++ i/tests/aws/templates/dynamodb_global_table.yml @@ -1,3 +1,7 @@ +Parameters: + ReplicaRegion: + Type: String + Resources: Table: Type: AWS::DynamoDB::GlobalTable @@ -10,7 +14,7 @@ Resources: - AttributeName: keyName AttributeType: S Replicas: - - Region: us-east-1 + - Region: !Ref ReplicaRegion Outputs: diff --git c/tests/aws/templates/elasticsearch_domain.yml i/tests/aws/templates/elasticsearch_domain.yml index 99875726daec..e19c76a0ea5b 100644 --- c/tests/aws/templates/elasticsearch_domain.yml +++ i/tests/aws/templates/elasticsearch_domain.yml @@ -18,8 +18,8 @@ Resources: DedicatedMasterEnabled: true InstanceCount: '2' ZoneAwarenessEnabled: true - InstanceType: 'm3.medium.elasticsearch' - DedicatedMasterType: 'm3.medium.elasticsearch' + InstanceType: m5.large.elasticsearch + DedicatedMasterType: m5.large.elasticsearch DedicatedMasterCount: '3' EBSOptions: EBSEnabled: true diff --git c/tests/aws/templates/sfn_apigateway_two_integrations.yaml i/tests/aws/templates/sfn_apigateway_two_integrations.yaml index 687cfd422344..65294361334a 100644 --- c/tests/aws/templates/sfn_apigateway_two_integrations.yaml +++ i/tests/aws/templates/sfn_apigateway_two_integrations.yaml @@ -32,7 +32,7 @@ Resources: - LsFnServiceRoleFE24FAB1 - Arn Handler: index.handler - Runtime: nodejs14.x + Runtime: nodejs22.x DependsOn: - LsFnServiceRoleFE24FAB1 LsFn2ServiceRoleF6685547: @@ -68,7 +68,7 @@ Resources: - LsFn2ServiceRoleF6685547 - Arn Handler: index.handler - Runtime: nodejs14.x + Runtime: nodejs22.x DependsOn: - LsFn2ServiceRoleF6685547 LsApi42D61DD0: --- .../resources/test_cloudwatch.snapshot.json | 115 ++ .../resources/test_cloudwatch.validation.json | 11 + .../dynamodb/resources/test_dynamodb.py | 3 +- .../resources/test_dynamodb.snapshot.json | 384 ++++ .../resources/test_dynamodb.validation.json | 29 + .../ec2/resources/test_ec2.snapshot.json | 303 +++ .../ec2/resources/test_ec2.validation.json | 35 + .../test_elasticsearch.snapshot.json | 321 ++++ .../test_elasticsearch.validation.json | 5 + .../resources/test_events.snapshot.json | 70 + .../resources/test_events.validation.json | 26 + .../resources/test_firehose.snapshot.json | 99 + .../resources/test_firehose.validation.json | 5 + .../resources/test_kinesis.snapshot.json | 287 +++ .../resources/test_kinesis.validation.json | 20 + .../kms/resources/test_kms.snapshot.json | 11 + .../kms/resources/test_kms.validation.json | 11 + .../resources/test_lambda.snapshot.json | 1670 +++++++++++++++++ .../resources/test_lambda.validation.json | 71 + .../logs/resources/test_logs.snapshot.json | 42 + .../logs/resources/test_logs.validation.json | 8 + .../resources/test_opensearch.snapshot.json | 128 ++ .../resources/test_opensearch.validation.json | 5 + .../resources/test_redshift.validation.json | 5 + .../test_resource_groups.snapshot.json | 17 + .../test_resource_groups.validation.json | 5 + .../resources/test_route53.snapshot.json | 25 + .../resources/test_route53.validation.json | 14 + .../s3/resources/test_s3.snapshot.json | 176 ++ .../s3/resources/test_s3.validation.json | 23 + .../test_secretsmanager.snapshot.json | 162 ++ .../test_secretsmanager.validation.json | 17 + .../sns/resources/test_sns.snapshot.json | 116 ++ .../sns/resources/test_sns.validation.json | 17 + .../sqs/resources/test_sqs.snapshot.json | 119 ++ .../sqs/resources/test_sqs.validation.json | 20 + .../ssm/resources/test_ssm.snapshot.json | 117 ++ .../ssm/resources/test_ssm.validation.json | 17 + .../test_stepfunctions.snapshot.json | 113 ++ .../test_stepfunctions.validation.json | 20 + tests/aws/templates/dynamodb_global_table.yml | 6 +- tests/aws/templates/elasticsearch_domain.yml | 4 +- .../sfn_apigateway_two_integrations.yaml | 4 +- 43 files changed, 4650 insertions(+), 6 deletions(-) create mode 100644 tests/aws/services/cloudwatch/resources/test_cloudwatch.snapshot.json create mode 100644 tests/aws/services/cloudwatch/resources/test_cloudwatch.validation.json create mode 100644 tests/aws/services/dynamodb/resources/test_dynamodb.snapshot.json create mode 100644 tests/aws/services/dynamodb/resources/test_dynamodb.validation.json create mode 100644 tests/aws/services/ec2/resources/test_ec2.snapshot.json create mode 100644 tests/aws/services/ec2/resources/test_ec2.validation.json create mode 100644 tests/aws/services/es/resources/test_elasticsearch.snapshot.json create mode 100644 tests/aws/services/es/resources/test_elasticsearch.validation.json create mode 100644 tests/aws/services/events/resources/test_events.snapshot.json create mode 100644 tests/aws/services/events/resources/test_events.validation.json create mode 100644 tests/aws/services/firehose/resources/test_firehose.snapshot.json create mode 100644 tests/aws/services/firehose/resources/test_firehose.validation.json create mode 100644 tests/aws/services/kinesis/resources/test_kinesis.snapshot.json create mode 100644 tests/aws/services/kinesis/resources/test_kinesis.validation.json create mode 100644 tests/aws/services/kms/resources/test_kms.snapshot.json create mode 100644 tests/aws/services/kms/resources/test_kms.validation.json create mode 100644 tests/aws/services/lambda_/resources/test_lambda.snapshot.json create mode 100644 tests/aws/services/lambda_/resources/test_lambda.validation.json create mode 100644 tests/aws/services/logs/resources/test_logs.snapshot.json create mode 100644 tests/aws/services/logs/resources/test_logs.validation.json create mode 100644 tests/aws/services/opensearch/resources/test_opensearch.snapshot.json create mode 100644 tests/aws/services/opensearch/resources/test_opensearch.validation.json create mode 100644 tests/aws/services/redshift/resources/test_redshift.validation.json create mode 100644 tests/aws/services/resource_groups/resources/test_resource_groups.snapshot.json create mode 100644 tests/aws/services/resource_groups/resources/test_resource_groups.validation.json create mode 100644 tests/aws/services/route53/resources/test_route53.snapshot.json create mode 100644 tests/aws/services/route53/resources/test_route53.validation.json create mode 100644 tests/aws/services/s3/resources/test_s3.snapshot.json create mode 100644 tests/aws/services/s3/resources/test_s3.validation.json create mode 100644 tests/aws/services/secretsmanager/resources/test_secretsmanager.snapshot.json create mode 100644 tests/aws/services/secretsmanager/resources/test_secretsmanager.validation.json create mode 100644 tests/aws/services/sns/resources/test_sns.snapshot.json create mode 100644 tests/aws/services/sns/resources/test_sns.validation.json create mode 100644 tests/aws/services/sqs/resources/test_sqs.snapshot.json create mode 100644 tests/aws/services/sqs/resources/test_sqs.validation.json create mode 100644 tests/aws/services/ssm/resources/test_ssm.snapshot.json create mode 100644 tests/aws/services/ssm/resources/test_ssm.validation.json create mode 100644 tests/aws/services/stepfunctions/resources/test_stepfunctions.snapshot.json create mode 100644 tests/aws/services/stepfunctions/resources/test_stepfunctions.validation.json diff --git a/tests/aws/services/cloudwatch/resources/test_cloudwatch.snapshot.json b/tests/aws/services/cloudwatch/resources/test_cloudwatch.snapshot.json new file mode 100644 index 0000000000000..967da1cec049e --- /dev/null +++ b/tests/aws/services/cloudwatch/resources/test_cloudwatch.snapshot.json @@ -0,0 +1,115 @@ +{ + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_creation": { + "recorded-date": "11-04-2025, 12:11:07", + "recorded-content": { + "alarm_outputs": { + "AlarmArnFromAtt": "arn::cloudwatch::111111111111:alarm:", + "AlarmName": "" + } + } + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_composite_alarm_creation": { + "recorded-date": "11-04-2025, 12:12:14", + "recorded-content": { + "composite_alarm": [ + { + "ActionsEnabled": true, + "AlarmActions": [ + "arn::sns::111111111111:" + ], + "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighResourceUsage", + "AlarmConfigurationUpdatedTimestamp": "timestamp", + "AlarmDescription": "Indicates that the system resource usage is high while no known deployment is in progress", + "AlarmName": "HighResourceUsage", + "AlarmRule": "(ALARM(HighCPUUsage) OR ALARM(HighMemoryUsage))", + "InsufficientDataActions": [], + "OKActions": [], + "StateReason": "arn::cloudwatch::111111111111:alarm:HighResourceUsage was created and its alarm rule evaluates to OK", + "StateReasonData": { + "triggeringAlarms": [ + { + "arn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", + "state": { + "value": "INSUFFICIENT_DATA", + "timestamp": "date" + } + }, + { + "arn": "arn::cloudwatch::111111111111:alarm:HighCPUUsage", + "state": { + "value": "INSUFFICIENT_DATA", + "timestamp": "date" + } + } + ] + }, + "StateUpdatedTimestamp": "timestamp", + "StateValue": "OK", + "StateTransitionedTimestamp": "timestamp" + } + ], + "metric_alarm": [ + { + "AlarmName": "HighMemoryUsage", + "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", + "AlarmDescription": "Memory usage is high", + "AlarmConfigurationUpdatedTimestamp": "timestamp", + "ActionsEnabled": true, + "OKActions": [], + "AlarmActions": [], + "InsufficientDataActions": [], + "StateValue": "INSUFFICIENT_DATA", + "StateReason": "Unchecked: Initial alarm creation", + "StateUpdatedTimestamp": "timestamp", + "MetricName": "MemoryUsage", + "Namespace": "CustomNamespace", + "Statistic": "Average", + "Dimensions": [], + "Period": 60, + "EvaluationPeriods": 1, + "Threshold": 65.0, + "ComparisonOperator": "GreaterThanThreshold", + "TreatMissingData": "breaching", + "StateTransitionedTimestamp": "timestamp" + } + ] + } + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_ext_statistic": { + "recorded-date": "11-04-2025, 12:12:29", + "recorded-content": { + "simple_alarm": [ + { + "AlarmName": "", + "AlarmArn": "arn::cloudwatch::111111111111:alarm:", + "AlarmDescription": "uses extended statistic", + "AlarmConfigurationUpdatedTimestamp": "timestamp", + "ActionsEnabled": true, + "OKActions": [], + "AlarmActions": [], + "InsufficientDataActions": [], + "StateValue": "INSUFFICIENT_DATA", + "StateReason": "Unchecked: Initial alarm creation", + "StateUpdatedTimestamp": "timestamp", + "MetricName": "Duration", + "Namespace": "", + "ExtendedStatistic": "p99", + "Dimensions": [ + { + "Name": "FunctionName", + "Value": "my-function" + } + ], + "Period": 300, + "Unit": "Count", + "EvaluationPeriods": 3, + "DatapointsToAlarm": 3, + "Threshold": 10.0, + "ComparisonOperator": "GreaterThanOrEqualToThreshold", + "TreatMissingData": "ignore", + "StateTransitionedTimestamp": "timestamp" + } + ] + } + } +} diff --git a/tests/aws/services/cloudwatch/resources/test_cloudwatch.validation.json b/tests/aws/services/cloudwatch/resources/test_cloudwatch.validation.json new file mode 100644 index 0000000000000..69fc7229f9881 --- /dev/null +++ b/tests/aws/services/cloudwatch/resources/test_cloudwatch.validation.json @@ -0,0 +1,11 @@ +{ + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_creation": { + "last_validated_date": "2025-04-11T12:11:07+00:00" + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_alarm_ext_statistic": { + "last_validated_date": "2025-04-11T12:12:29+00:00" + }, + "tests/aws/services/cloudwatch/resources/test_cloudwatch.py::test_composite_alarm_creation": { + "last_validated_date": "2025-04-11T12:12:14+00:00" + } +} diff --git a/tests/aws/services/dynamodb/resources/test_dynamodb.py b/tests/aws/services/dynamodb/resources/test_dynamodb.py index 8aa572c62bf08..43c0bb7ecc768 100644 --- a/tests/aws/services/dynamodb/resources/test_dynamodb.py +++ b/tests/aws/services/dynamodb/resources/test_dynamodb.py @@ -123,12 +123,13 @@ def test_billing_mode_as_conditional(deploy_cfn_template, snapshot, aws_client, "$..Table.Replicas", ] ) -def test_global_table(deploy_cfn_template, snapshot, aws_client): +def test_global_table(deploy_cfn_template, snapshot, aws_client, region_name): snapshot.add_transformer(snapshot.transform.dynamodb_api()) stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../templates/dynamodb_global_table.yml" ), + parameters={"ReplicaRegion": region_name}, ) snapshot.add_transformer(snapshot.transform.key_value("TableName", "table-name")) response = aws_client.dynamodb.describe_table(TableName=stack.outputs["TableName"]) diff --git a/tests/aws/services/dynamodb/resources/test_dynamodb.snapshot.json b/tests/aws/services/dynamodb/resources/test_dynamodb.snapshot.json new file mode 100644 index 0000000000000..1bb2728747acb --- /dev/null +++ b/tests/aws/services/dynamodb/resources/test_dynamodb.snapshot.json @@ -0,0 +1,384 @@ +{ + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_default_name_for_table": { + "recorded-date": "11-04-2025, 12:15:43", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "keyName", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "keyName", + "KeyType": "HASH" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 5, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 5 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_tags_of_resource": { + "Tags": [ + { + "Key": "TagKey1", + "Value": "TagValue1" + }, + { + "Key": "TagKey2", + "Value": "TagValue2" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { + "recorded-date": "11-04-2025, 12:16:18", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", + "LatestStreamLabel": "", + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamEnabled": true, + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 5, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 5 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { + "recorded-date": "11-04-2025, 12:16:53", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingModeSummary": { + "BillingMode": "PAY_PER_REQUEST", + "LastUpdateToPayPerRequestDateTime": "datetime" + }, + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", + "LatestStreamLabel": "", + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "StreamSpecification": { + "StreamEnabled": true, + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table": { + "recorded-date": "11-04-2025, 12:37:54", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "keyName", + "AttributeType": "S" + } + ], + "BillingModeSummary": { + "BillingMode": "PAY_PER_REQUEST", + "LastUpdateToPayPerRequestDateTime": "datetime" + }, + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "keyName", + "KeyType": "HASH" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_ttl_cdk": { + "recorded-date": "11-04-2025, 12:41:43", + "recorded-content": { + "table": { + "TimeToLiveDescription": { + "AttributeName": "expire_at", + "TimeToLiveStatus": "ENABLED" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { + "recorded-date": "11-04-2025, 12:42:04", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "pk", + "AttributeType": "S" + }, + { + "AttributeName": "sk", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "pk", + "KeyType": "HASH" + }, + { + "AttributeName": "sk", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 1, + "WriteCapacityUnits": 1 + }, + "SSEDescription": { + "KMSMasterKeyArn": "", + "SSEType": "KMS", + "Status": "ENABLED" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 1, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 1 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { + "recorded-date": "11-04-2025, 12:42:49", + "recorded-content": { + "table_description": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "gsi1pk", + "AttributeType": "S" + }, + { + "AttributeName": "gsi1sk", + "AttributeType": "S" + }, + { + "AttributeName": "pk", + "AttributeType": "S" + }, + { + "AttributeName": "sk", + "AttributeType": "S" + } + ], + "BillingModeSummary": { + "BillingMode": "PAY_PER_REQUEST", + "LastUpdateToPayPerRequestDateTime": "datetime" + }, + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "GlobalSecondaryIndexes": [ + { + "IndexArn": "arn::dynamodb::111111111111:table//index/GSI1", + "IndexName": "GSI1", + "IndexSizeBytes": 0, + "IndexStatus": "ACTIVE", + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "gsi1pk", + "KeyType": "HASH" + }, + { + "AttributeName": "gsi1sk", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + } + ], + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "pk", + "KeyType": "HASH" + }, + { + "AttributeName": "sk", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 0, + "WriteCapacityUnits": 0 + }, + "SSEDescription": { + "KMSMasterKeyArn": "", + "SSEType": "KMS", + "Status": "ENABLED" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableClassSummary": { + "TableClass": "STANDARD" + }, + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 12000, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 4000 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/dynamodb/resources/test_dynamodb.validation.json b/tests/aws/services/dynamodb/resources/test_dynamodb.validation.json new file mode 100644 index 0000000000000..a29ab85e13d48 --- /dev/null +++ b/tests/aws/services/dynamodb/resources/test_dynamodb.validation.json @@ -0,0 +1,29 @@ +{ + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { + "last_validated_date": "2025-04-11T12:16:53+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { + "last_validated_date": "2025-04-11T12:16:18+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_default_name_for_table": { + "last_validated_date": "2025-04-11T12:15:43+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_deploy_stack_with_dynamodb_table": { + "last_validated_date": "2025-04-11T12:14:03+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table": { + "last_validated_date": "2025-04-11T12:37:54+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { + "last_validated_date": "2025-04-11T12:42:49+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_globalindex_read_write_provisioned_throughput_dynamodb_table": { + "last_validated_date": "2025-04-11T12:14:46+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { + "last_validated_date": "2025-04-11T12:42:04+00:00" + }, + "tests/aws/services/dynamodb/resources/test_dynamodb.py::test_ttl_cdk": { + "last_validated_date": "2025-04-11T12:41:43+00:00" + } +} diff --git a/tests/aws/services/ec2/resources/test_ec2.snapshot.json b/tests/aws/services/ec2/resources/test_ec2.snapshot.json new file mode 100644 index 0000000000000..5860c71ea0285 --- /dev/null +++ b/tests/aws/services/ec2/resources/test_ec2.snapshot.json @@ -0,0 +1,303 @@ +{ + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { + "recorded-date": "11-04-2025, 12:43:43", + "recorded-content": { + "tags": { + "Name": "Suspicious Route Table" + }, + "route_table": { + "Associations": [], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "10.0.0.0/16", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "VpcId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation": { + "recorded-date": "11-04-2025, 12:44:23", + "recorded-content": { + "tags": { + "Name": "Suspicious Route table" + }, + "route_table": { + "Associations": [], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "10.0.0.0/16", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "VpcId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { + "recorded-date": "11-04-2025, 12:46:42", + "recorded-content": { + "route_table": { + "Associations": [ + { + "AssociationState": { + "State": "associated" + }, + "Main": false, + "RouteTableAssociationId": "", + "RouteTableId": "", + "SubnetId": "" + }, + { + "AssociationState": { + "State": "associated" + }, + "Main": false, + "RouteTableAssociationId": "", + "RouteTableId": "", + "SubnetId": "" + } + ], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "100.0.0.0/20", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "Tags": [ + { + "Key": "env", + "Value": "production" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "RouteTable" + }, + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-0daec207" + }, + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-0daec207/f031e3b0-16d2-11f0-b66d-0aa58e870677" + } + ], + "VpcId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { + "recorded-date": "11-04-2025, 12:47:30", + "recorded-content": { + "outputs": { + "IdAttachment": "", + "RefAttachment": "" + }, + "description": { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LastUpdatedTimestamp": "", + "LogicalResourceId": "Gateway", + "Metadata": {}, + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::EC2::InternetGateway", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_dhcp_options": { + "recorded-date": "11-04-2025, 12:47:51", + "recorded-content": { + "description": { + "DhcpConfigurations": [ + { + "Key": "domain-name", + "Values": [ + { + "Value": "example.com" + } + ] + }, + { + "Key": "domain-name-servers", + "Values": [ + { + "Value": "AmazonProvidedDNS" + } + ] + }, + { + "Key": "netbios-name-servers", + "Values": [ + { + "Value": "10.2.5.1" + } + ] + }, + { + "Key": "netbios-node-type", + "Values": [ + { + "Value": "2" + } + ] + }, + { + "Key": "ntp-servers", + "Values": [ + { + "Value": "10.2.5.1" + } + ] + } + ], + "DhcpOptionsId": "", + "OwnerId": "111111111111", + "Tags": [ + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-c8574f52/254932b0-16d3-11f0-bbb9-02c9293d2a15" + }, + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-c8574f52" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "myDhcpOptions" + }, + { + "Key": "project", + "Value": "123" + } + ] + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_transit_gateway_attachment": { + "recorded-date": "11-04-2025, 12:52:34", + "recorded-content": { + "attachment": { + "Association": { + "State": "associated", + "TransitGatewayRouteTableId": "" + }, + "CreationTime": "", + "ResourceId": "", + "ResourceOwnerId": "111111111111", + "ResourceType": "vpc", + "State": "available", + "Tags": [ + { + "Key": "Name", + "Value": "example-tag" + } + ], + "TransitGatewayAttachmentId": "", + "TransitGatewayId": "", + "TransitGatewayOwnerId": "111111111111" + }, + "gateway": { + "CreationTime": "", + "Description": "TGW Route Integration Test", + "Options": { + "AmazonSideAsn": 65000, + "AssociationDefaultRouteTableId": "", + "AutoAcceptSharedAttachments": "disable", + "DefaultRouteTableAssociation": "enable", + "DefaultRouteTablePropagation": "enable", + "DnsSupport": "enable", + "MulticastSupport": "disable", + "PropagationDefaultRouteTableId": "", + "SecurityGroupReferencingSupport": "disable", + "VpnEcmpSupport": "enable" + }, + "OwnerId": "111111111111", + "State": "available", + "Tags": [ + { + "Key": "Application", + "Value": "arn::cloudformation::111111111111:stack/stack-dc38ff33/3089c090-16d3-11f0-9212-0a8f5c4c7c8b" + } + ], + "TransitGatewayArn": "arn::ec2::111111111111:transit-gateway/", + "TransitGatewayId": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_vpc_with_route_table": { + "recorded-date": "11-04-2025, 12:53:14", + "recorded-content": { + "route_table": { + "RouteTables": [ + { + "Associations": [], + "OwnerId": "111111111111", + "PropagatingVgws": [], + "RouteTableId": "", + "Routes": [ + { + "DestinationCidrBlock": "100.0.0.0/20", + "GatewayId": "local", + "Origin": "CreateRouteTable", + "State": "active" + } + ], + "Tags": { + "aws:cloudformation:logical-id": "RouteTable", + "aws:cloudformation:stack-id": "", + "aws:cloudformation:stack-name": "", + "env": "production" + }, + "VpcId": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { + "recorded-date": "11-04-2025, 12:53:44", + "recorded-content": { + "references": { + "SGWithVpcIdGroupId": "", + "SGWithVpcIdRef": "", + "SGWithoutVpcIdGroupId": "", + "SGWithoutVpcIdRef": "" + } + } + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_keypair_create_import": { + "recorded-date": "11-04-2025, 12:53:59", + "recorded-content": { + "outputs": { + "GeneratedKeyPairFingerprint": "", + "GeneratedKeyPairName": "", + "ImportedKeyPairFingerprint": "4LmcYnyBOqlloHZ5TKAxfa8BgMK2wL6WeOOTvXVdhmw=", + "ImportedKeyPairName": "" + } + } + } +} diff --git a/tests/aws/services/ec2/resources/test_ec2.validation.json b/tests/aws/services/ec2/resources/test_ec2.validation.json new file mode 100644 index 0000000000000..b0b60ff51972d --- /dev/null +++ b/tests/aws/services/ec2/resources/test_ec2.validation.json @@ -0,0 +1,35 @@ +{ + "tests/aws/services/ec2/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { + "last_validated_date": "2025-04-11T12:46:42+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_cfn_with_multiple_route_tables": { + "last_validated_date": "2025-04-11T12:45:59+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_dhcp_options": { + "last_validated_date": "2025-04-11T12:47:51+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { + "last_validated_date": "2025-04-11T12:53:44+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { + "last_validated_date": "2025-04-11T12:47:30+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_keypair_create_import": { + "last_validated_date": "2025-04-11T12:53:59+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation": { + "last_validated_date": "2025-04-11T12:44:23+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { + "last_validated_date": "2025-04-11T12:43:43+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_transit_gateway_attachment": { + "last_validated_date": "2025-04-11T12:52:34+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_vpc_creates_default_sg": { + "last_validated_date": "2025-04-11T12:45:01+00:00" + }, + "tests/aws/services/ec2/resources/test_ec2.py::test_vpc_with_route_table": { + "last_validated_date": "2025-04-11T12:53:14+00:00" + } +} diff --git a/tests/aws/services/es/resources/test_elasticsearch.snapshot.json b/tests/aws/services/es/resources/test_elasticsearch.snapshot.json new file mode 100644 index 0000000000000..f07ef9ab1b7b1 --- /dev/null +++ b/tests/aws/services/es/resources/test_elasticsearch.snapshot.json @@ -0,0 +1,321 @@ +{ + "tests/aws/services/es/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { + "recorded-date": "11-04-2025, 13:26:11", + "recorded-content": { + "domain": { + "DomainStatus": { + "ARN": "arn::es::111111111111:domain/", + "AccessPolicies": "", + "AdvancedOptions": { + "override_main_response_version": "false", + "rest.action.multi.allow_explicit_index": "true" + }, + "AdvancedSecurityOptions": { + "AnonymousAuthEnabled": false, + "Enabled": false, + "InternalUserDatabaseEnabled": false + }, + "AutoTuneOptions": { + "State": "ENABLED" + }, + "ChangeProgressDetails": { + "ChangeId": "", + "ConfigChangeStatus": "ApplyingChanges", + "InitiatedBy": "CUSTOMER", + "LastUpdatedTime": "", + "StartTime": "" + }, + "CognitoOptions": { + "Enabled": false + }, + "Created": true, + "Deleted": false, + "DomainEndpointOptions": { + "CustomEndpointEnabled": false, + "EnforceHTTPS": false, + "TLSSecurityPolicy": "" + }, + "DomainId": "111111111111/", + "DomainName": "", + "DomainProcessingStatus": "Creating", + "EBSOptions": { + "EBSEnabled": true, + "Iops": 0, + "VolumeSize": 20, + "VolumeType": "gp2" + }, + "ElasticsearchClusterConfig": { + "ColdStorageOptions": { + "Enabled": false + }, + "DedicatedMasterCount": 3, + "DedicatedMasterEnabled": true, + "DedicatedMasterType": "m5.large.elasticsearch", + "InstanceCount": 2, + "InstanceType": "m5.large.elasticsearch", + "WarmEnabled": false, + "ZoneAwarenessConfig": { + "AvailabilityZoneCount": 2 + }, + "ZoneAwarenessEnabled": true + }, + "ElasticsearchVersion": "7.10", + "EncryptionAtRestOptions": { + "Enabled": false + }, + "Endpoint": "search--zeyfj6devtz4d3bvfl2yam7co4..es.amazonaws.com", + "ModifyingProperties": [ + { + "ActiveValue": "", + "Name": "AIMLOptions.NaturalLanguageQueryGenerationOptions", + "PendingValue": { + "CurrentState": "NOT_ENABLED", + "DesiredState": "DISABLED" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "AdvancedOptions", + "PendingValue": { + "override_main_response_version": "false", + "rest.action.multi.allow_explicit_index": "true" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.AnonymousAuthDisableDate", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.AnonymousAuthEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.InternalUserDatabaseEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.JWTOptions", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.MasterUserOptions", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "AdvancedSecurityOptions.SAMLOptions", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.ColdStorageOptions", + "PendingValue": { + "Enabled": false + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.DedicatedMasterCount", + "PendingValue": "3", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.DedicatedMasterEnabled", + "PendingValue": "true", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.DedicatedMasterType", + "PendingValue": "m5.large.elasticsearch", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.InstanceCount", + "PendingValue": "2", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.InstanceType", + "PendingValue": "m5.large.elasticsearch", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.MultiAZWithStandbyEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmCount", + "PendingValue": "", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmEnabled", + "PendingValue": "false", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmStorage", + "PendingValue": "", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.WarmType", + "PendingValue": "", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchClusterConfig.ZoneAwarenessEnabled", + "PendingValue": "true", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "ElasticsearchVersion", + "PendingValue": "7.10", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "IPAddressType", + "PendingValue": "ipv4", + "ValueType": "PLAIN_TEXT" + }, + { + "ActiveValue": "", + "Name": "TAGS", + "PendingValue": { + "k1": "v1", + "k2": "v2" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "DomainEndpointOptions", + "PendingValue": { + "CustomEndpointEnabled": false, + "EnforceHTTPS": false, + "TLSSecurityPolicy": "" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "EBSOptions", + "PendingValue": { + "EBSEnabled": true, + "Iops": 0, + "VolumeSize": 20, + "VolumeType": "gp2" + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "EncryptionAtRestOptions", + "PendingValue": { + "Enabled": false + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "NodeToNodeEncryptionOptions", + "PendingValue": { + "Enabled": false + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "OffPeakWindowOptions", + "PendingValue": { + "Enabled": true, + "OffPeakWindow": { + "WindowStartTime": { + "Hours": 20, + "Minutes": 0 + } + } + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "SnapshotOptions", + "PendingValue": { + "AutomatedSnapshotStartHour": 0 + }, + "ValueType": "STRINGIFIED_JSON" + }, + { + "ActiveValue": "", + "Name": "SoftwareUpdateOptions", + "PendingValue": { + "AutoSoftwareUpdateEnabled": false + }, + "ValueType": "STRINGIFIED_JSON" + } + ], + "NodeToNodeEncryptionOptions": { + "Enabled": false + }, + "Processing": false, + "ServiceSoftwareOptions": { + "AutomatedUpdateDate": "", + "Cancellable": false, + "CurrentVersion": "", + "Description": "", + "NewVersion": "", + "OptionalDeployment": true, + "UpdateAvailable": false, + "UpdateStatus": "COMPLETED" + }, + "SnapshotOptions": { + "AutomatedSnapshotStartHour": 0 + }, + "UpgradeProcessing": false + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "tags": [ + { + "Key": "k1", + "Value": "v1" + }, + { + "Key": "k2", + "Value": "v2" + } + ] + } + } +} diff --git a/tests/aws/services/es/resources/test_elasticsearch.validation.json b/tests/aws/services/es/resources/test_elasticsearch.validation.json new file mode 100644 index 0000000000000..e4addb3cb5bd0 --- /dev/null +++ b/tests/aws/services/es/resources/test_elasticsearch.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/es/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { + "last_validated_date": "2025-04-11T13:26:11+00:00" + } +} diff --git a/tests/aws/services/events/resources/test_events.snapshot.json b/tests/aws/services/events/resources/test_events.snapshot.json new file mode 100644 index 0000000000000..66001b7719cc9 --- /dev/null +++ b/tests/aws/services/events/resources/test_events.snapshot.json @@ -0,0 +1,70 @@ +{ + "tests/aws/services/events/resources/test_events.py::test_event_rule_creation_without_target": { + "recorded-date": "11-04-2025, 13:44:58", + "recorded-content": { + "describe_rule": { + "Arn": "arn::events::111111111111:rule/event-rule-name", + "CreatedBy": "111111111111", + "EventBusName": "default", + "Name": "event-rule-name", + "ScheduleExpression": "cron(0 1 * * ? *)", + "State": "ENABLED", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/events/resources/test_events.py::test_rule_properties": { + "recorded-date": "11-04-2025, 13:46:46", + "recorded-content": { + "outputs": { + "RuleWithNameArn": "arn::events::111111111111:rule//", + "RuleWithNameRef": "|", + "RuleWithoutBusArn": "arn::events::111111111111:rule/", + "RuleWithoutBusRef": "", + "RuleWithoutNameArn": "arn::events::111111111111:rule//", + "RuleWithoutNameRef": "|" + } + } + }, + "tests/aws/services/events/resources/test_events.py::test_rule_pattern_transformation": { + "recorded-date": "11-04-2025, 13:48:40", + "recorded-content": { + "rule": { + "Arn": "arn::events::111111111111:rule/", + "CreatedBy": "111111111111", + "EventBusName": "default", + "EventPattern": { + "detail-type": [ + "Object Created" + ], + "source": [ + "aws.s3" + ], + "detail": { + "bucket": { + "name": [ + "test-s3-bucket" + ] + }, + "object": { + "key": [ + { + "suffix": "/test.json" + } + ] + } + } + }, + "Name": "", + "State": "ENABLED", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/events/resources/test_events.validation.json b/tests/aws/services/events/resources/test_events.validation.json new file mode 100644 index 0000000000000..0006fbb2fbce5 --- /dev/null +++ b/tests/aws/services/events/resources/test_events.validation.json @@ -0,0 +1,26 @@ +{ + "tests/aws/services/events/resources/test_events.py::test_cfn_event_api_destination_resource": { + "last_validated_date": "2025-04-11T13:41:35+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_cfn_event_bus_resource": { + "last_validated_date": "2025-04-11T13:46:03+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_event_rule_creation_without_target": { + "last_validated_date": "2025-04-11T13:44:58+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_event_rule_to_logs": { + "last_validated_date": "2025-04-11T13:43:43+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_eventbus_policies": { + "last_validated_date": "2025-04-11T13:41:58+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_eventbus_policy_statement": { + "last_validated_date": "2025-04-11T13:42:17+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_rule_pattern_transformation": { + "last_validated_date": "2025-04-11T13:48:40+00:00" + }, + "tests/aws/services/events/resources/test_events.py::test_rule_properties": { + "last_validated_date": "2025-04-11T13:46:46+00:00" + } +} diff --git a/tests/aws/services/firehose/resources/test_firehose.snapshot.json b/tests/aws/services/firehose/resources/test_firehose.snapshot.json new file mode 100644 index 0000000000000..ebacb6668b824 --- /dev/null +++ b/tests/aws/services/firehose/resources/test_firehose.snapshot.json @@ -0,0 +1,99 @@ +{ + "tests/aws/services/firehose/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { + "recorded-date": "11-04-2025, 13:50:16", + "recorded-content": { + "outputs": { + "deliveryStreamRef": "" + }, + "delivery_stream": { + "DeliveryStreamDescription": { + "CreateTimestamp": "", + "DeliveryStreamARN": "arn::firehose::111111111111:deliverystream/", + "DeliveryStreamName": "", + "DeliveryStreamStatus": "ACTIVE", + "DeliveryStreamType": "KinesisStreamAsSource", + "Destinations": [ + { + "DestinationId": "destinationId-000000000001", + "ExtendedS3DestinationDescription": { + "BucketARN": "arn::s3:::", + "BufferingHints": { + "IntervalInSeconds": 60, + "SizeInMBs": 64 + }, + "CloudWatchLoggingOptions": { + "Enabled": false + }, + "CompressionFormat": "UNCOMPRESSED", + "DataFormatConversionConfiguration": { + "Enabled": false + }, + "DynamicPartitioningConfiguration": { + "Enabled": true, + "RetryOptions": { + "DurationInSeconds": 300 + } + }, + "EncryptionConfiguration": { + "NoEncryptionConfig": "NoEncryption" + }, + "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", + "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", + "ProcessingConfiguration": { + "Enabled": true, + "Processors": [ + { + "Parameters": [ + { + "ParameterName": "MetadataExtractionQuery", + "ParameterValue": "{s3Prefix: .tableName}" + }, + { + "ParameterName": "JsonParsingEngine", + "ParameterValue": "JQ-1.6" + } + ], + "Type": "MetadataExtraction" + } + ] + }, + "RoleARN": "arn::iam::111111111111:role/", + "S3BackupMode": "Disabled" + }, + "S3DestinationDescription": { + "BucketARN": "arn::s3:::", + "BufferingHints": { + "IntervalInSeconds": 60, + "SizeInMBs": 64 + }, + "CloudWatchLoggingOptions": { + "Enabled": false + }, + "CompressionFormat": "UNCOMPRESSED", + "EncryptionConfiguration": { + "NoEncryptionConfig": "NoEncryption" + }, + "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", + "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", + "RoleARN": "arn::iam::111111111111:role/" + } + } + ], + "HasMoreDestinations": false, + "Source": { + "KinesisStreamSourceDescription": { + "DeliveryStartTimestamp": "", + "KinesisStreamARN": "arn::kinesis::111111111111:stream/", + "RoleARN": "arn::iam::111111111111:role/" + } + }, + "VersionId": "1" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/firehose/resources/test_firehose.validation.json b/tests/aws/services/firehose/resources/test_firehose.validation.json new file mode 100644 index 0000000000000..89cf631d43799 --- /dev/null +++ b/tests/aws/services/firehose/resources/test_firehose.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/firehose/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { + "last_validated_date": "2025-04-11T13:50:16+00:00" + } +} diff --git a/tests/aws/services/kinesis/resources/test_kinesis.snapshot.json b/tests/aws/services/kinesis/resources/test_kinesis.snapshot.json new file mode 100644 index 0000000000000..d51f95105d0b9 --- /dev/null +++ b/tests/aws/services/kinesis/resources/test_kinesis.snapshot.json @@ -0,0 +1,287 @@ +{ + "tests/aws/services/kinesis/resources/test_kinesis.py::test_stream_creation": { + "recorded-date": "11-04-2025, 13:51:24", + "recorded-content": { + "stack_output": { + "StreamArnFromAtt": "arn::kinesis::111111111111:stream/", + "StreamNameFromRef": "" + }, + "resource_description": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "TestStream", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Kinesis::Stream", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "stream_description": { + "StreamDescription": { + "EncryptionType": "NONE", + "EnhancedMonitoring": [ + { + "ShardLevelMetrics": [] + } + ], + "HasMoreShards": false, + "RetentionPeriodHours": 24, + "Shards": [ + { + "HashKeyRange": { + "EndingHashKey": "", + "StartingHashKey": "starting_hash" + }, + "SequenceNumberRange": { + "StartingSequenceNumber": "" + }, + "ShardId": "shard-id" + } + ], + "StreamARN": "arn::kinesis::111111111111:stream/", + "StreamCreationTimestamp": "timestamp", + "StreamModeDetails": { + "StreamMode": "PROVISIONED" + }, + "StreamName": "", + "StreamStatus": "ACTIVE" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_default_parameters_kinesis": { + "recorded-date": "11-04-2025, 13:51:47", + "recorded-content": { + "describe_stream": { + "StreamDescription": { + "EncryptionType": "NONE", + "EnhancedMonitoring": [ + { + "ShardLevelMetrics": [] + } + ], + "HasMoreShards": false, + "RetentionPeriodHours": 24, + "Shards": [ + { + "HashKeyRange": { + "EndingHashKey": "ending_hash", + "StartingHashKey": "starting_hash" + }, + "SequenceNumberRange": { + "StartingSequenceNumber": "" + }, + "ShardId": "" + } + ], + "StreamARN": "arn::kinesis::111111111111:stream/", + "StreamCreationTimestamp": "timestamp", + "StreamModeDetails": { + "StreamMode": "PROVISIONED" + }, + "StreamName": "", + "StreamStatus": "ACTIVE" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_cfn_handle_kinesis_firehose_resources": { + "recorded-date": "11-04-2025, 13:53:36", + "recorded-content": {} + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_describe_template": { + "recorded-date": "11-04-2025, 13:53:38", + "recorded-content": { + "get_template_summary_by_url": { + "Capabilities": [ + "CAPABILITY_NAMED_IAM" + ], + "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", + "Parameters": [ + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisRoleName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "DeliveryStreamName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisStreamName", + "ParameterType": "String" + } + ], + "ResourceIdentifierSummaries": [ + { + "LogicalResourceIds": [ + "MyBucket" + ], + "ResourceIdentifiers": [ + "BucketName" + ], + "ResourceType": "AWS::S3::Bucket" + }, + { + "LogicalResourceIds": [ + "MyRole" + ], + "ResourceIdentifiers": [ + "RoleName" + ], + "ResourceType": "AWS::IAM::Role" + }, + { + "LogicalResourceIds": [ + "KinesisStream" + ], + "ResourceIdentifiers": [ + "Name" + ], + "ResourceType": "AWS::Kinesis::Stream" + }, + { + "LogicalResourceIds": [ + "DeliveryStream" + ], + "ResourceIdentifiers": [ + "DeliveryStreamName" + ], + "ResourceType": "AWS::KinesisFirehose::DeliveryStream" + } + ], + "ResourceTypes": [ + "AWS::Kinesis::Stream", + "AWS::IAM::Role", + "AWS::S3::Bucket", + "AWS::KinesisFirehose::DeliveryStream" + ], + "Version": "2010-09-09", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_template_summary_by_body": { + "Capabilities": [ + "CAPABILITY_NAMED_IAM" + ], + "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", + "Parameters": [ + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisRoleName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "DeliveryStreamName", + "ParameterType": "String" + }, + { + "NoEcho": false, + "ParameterConstraints": {}, + "ParameterKey": "KinesisStreamName", + "ParameterType": "String" + } + ], + "ResourceIdentifierSummaries": [ + { + "LogicalResourceIds": [ + "MyBucket" + ], + "ResourceIdentifiers": [ + "BucketName" + ], + "ResourceType": "AWS::S3::Bucket" + }, + { + "LogicalResourceIds": [ + "MyRole" + ], + "ResourceIdentifiers": [ + "RoleName" + ], + "ResourceType": "AWS::IAM::Role" + }, + { + "LogicalResourceIds": [ + "KinesisStream" + ], + "ResourceIdentifiers": [ + "Name" + ], + "ResourceType": "AWS::Kinesis::Stream" + }, + { + "LogicalResourceIds": [ + "DeliveryStream" + ], + "ResourceIdentifiers": [ + "DeliveryStreamName" + ], + "ResourceType": "AWS::KinesisFirehose::DeliveryStream" + } + ], + "ResourceTypes": [ + "AWS::Kinesis::Stream", + "AWS::IAM::Role", + "AWS::S3::Bucket", + "AWS::KinesisFirehose::DeliveryStream" + ], + "Version": "2010-09-09", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { + "recorded-date": "11-04-2025, 13:54:36", + "recorded-content": { + "describe_kinesis_streaming_destination": { + "KinesisDataStreamDestinations": [ + { + "DestinationStatus": "ACTIVE", + "StreamArn": "arn::kinesis::111111111111:stream/EventStream" + } + ], + "TableName": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_kinesis_stream_consumer_creations": { + "recorded-date": "11-04-2025, 13:55:24", + "recorded-content": {} + } +} diff --git a/tests/aws/services/kinesis/resources/test_kinesis.validation.json b/tests/aws/services/kinesis/resources/test_kinesis.validation.json new file mode 100644 index 0000000000000..9ffaa3e4a9c7a --- /dev/null +++ b/tests/aws/services/kinesis/resources/test_kinesis.validation.json @@ -0,0 +1,20 @@ +{ + "tests/aws/services/kinesis/resources/test_kinesis.py::test_cfn_handle_kinesis_firehose_resources": { + "last_validated_date": "2025-04-11T13:53:36+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_default_parameters_kinesis": { + "last_validated_date": "2025-04-11T13:51:39+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_describe_template": { + "last_validated_date": "2025-04-11T13:53:38+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { + "last_validated_date": "2025-04-11T13:54:15+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_kinesis_stream_consumer_creations": { + "last_validated_date": "2025-04-11T13:55:03+00:00" + }, + "tests/aws/services/kinesis/resources/test_kinesis.py::test_stream_creation": { + "last_validated_date": "2025-04-11T13:51:16+00:00" + } +} diff --git a/tests/aws/services/kms/resources/test_kms.snapshot.json b/tests/aws/services/kms/resources/test_kms.snapshot.json new file mode 100644 index 0000000000000..35b2b1942143c --- /dev/null +++ b/tests/aws/services/kms/resources/test_kms.snapshot.json @@ -0,0 +1,11 @@ +{ + "tests/aws/services/kms/resources/test_kms.py::test_cfn_with_kms_resources": { + "recorded-date": "11-04-2025, 13:58:56", + "recorded-content": { + "stack-outputs": { + "KeyAlias": "", + "KeyArn": "arn::kms::111111111111:key/" + } + } + } +} diff --git a/tests/aws/services/kms/resources/test_kms.validation.json b/tests/aws/services/kms/resources/test_kms.validation.json new file mode 100644 index 0000000000000..b0c14417616e0 --- /dev/null +++ b/tests/aws/services/kms/resources/test_kms.validation.json @@ -0,0 +1,11 @@ +{ + "tests/aws/services/kms/resources/test_kms.py::test_cfn_with_kms_resources": { + "last_validated_date": "2025-04-11T13:58:56+00:00" + }, + "tests/aws/services/kms/resources/test_kms.py::test_deploy_stack_with_kms": { + "last_validated_date": "2025-04-11T13:59:40+00:00" + }, + "tests/aws/services/kms/resources/test_kms.py::test_kms_key_disabled": { + "last_validated_date": "2025-04-11T13:55:49+00:00" + } +} diff --git a/tests/aws/services/lambda_/resources/test_lambda.snapshot.json b/tests/aws/services/lambda_/resources/test_lambda.snapshot.json new file mode 100644 index 0000000000000..c43a947df05e2 --- /dev/null +++ b/tests/aws/services/lambda_/resources/test_lambda.snapshot.json @@ -0,0 +1,1670 @@ +{ + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { + "recorded-date": "11-04-2025, 14:02:52", + "recorded-content": { + "source_mappings": { + "EventSourceMappings": [ + { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FilterCriteria": { + "Filters": [ + { + "Pattern": { + "eventName": [ + "DELETE" + ] + } + } + ] + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 0, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "updated_source_mappings": { + "EventSourceMappings": [ + { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FilterCriteria": { + "Filters": [ + { + "Pattern": { + "eventName": [ + "MODIFY" + ] + } + } + ] + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 0, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_cfn_function_url": { + "recorded-date": "11-04-2025, 14:06:38", + "recorded-content": { + "url_resource": { + "StackResourceDetail": { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LastUpdatedTimestamp": "timestamp", + "LogicalResourceId": "", + "Metadata": {}, + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Url", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "url_config": { + "AuthType": "NONE", + "CreationTime": "date", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionUrl": "", + "InvokeMode": "BUFFERED", + "LastModifiedTime": "date", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "exception_url_config_nonexistent_version": { + "Error": { + "Code": "ResourceNotFoundException", + "Message": "The resource you requested does not exist." + }, + "Message": "The resource you requested does not exist.", + "Type": "User", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 404 + } + }, + "url_config_arn": { + "AuthType": "NONE", + "CreationTime": "date", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionUrl": "", + "InvokeMode": "BUFFERED", + "LastModifiedTime": "date", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "response_headers": { + "connection": "keep-alive", + "content-length": "17", + "content-type": "application/json", + "date": "date", + "x-amzn-requestid": "", + "x-amzn-trace-id": "x-amzn-trace-id" + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_alias": { + "recorded-date": "11-04-2025, 14:09:16", + "recorded-content": { + "stack_resource_descriptions": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "FunctionAlias", + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Alias", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "LambdaFunction", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "MyFnServiceRole", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "Version", + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Version", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "Alias": { + "AliasArn": "arn::lambda::111111111111:function:", + "Description": "", + "FunctionVersion": "1", + "Name": "", + "RevisionId": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_logging_config": { + "recorded-date": "11-04-2025, 14:10:14", + "recorded-content": { + "stack_resource_descriptions": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "logical-resource-id", + "PhysicalResourceId": "physical-resource-id", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "logical-resource-id", + "PhysicalResourceId": "physical-resource-id", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "logical-resource-id", + "PhysicalResourceId": "physical-resource-id", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Version", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "logging_config": { + "ApplicationLogLevel": "INFO", + "LogFormat": "JSON", + "LogGroup": "/aws/lambda/", + "SystemLogLevel": "INFO" + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_code_signing_config": { + "recorded-date": "11-04-2025, 14:10:41", + "recorded-content": { + "stack_resource_descriptions": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "CodeSigningConfig", + "PhysicalResourceId": "arn::lambda::111111111111:code-signing-config:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::CodeSigningConfig", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "config": { + "CodeSigningConfig": { + "AllowedPublishers": { + "SigningProfileVersionArns": [ + "arn::signer::111111111111:/signing-profiles/test" + ] + }, + "CodeSigningConfigArn": "arn::lambda::111111111111:code-signing-config:", + "CodeSigningConfigId": "", + "CodeSigningPolicies": { + "UntrustedArtifactOnDeployment": "Enforce" + }, + "Description": "Code Signing", + "LastModified": "date" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_event_invoke_config": { + "recorded-date": "11-04-2025, 14:11:24", + "recorded-content": { + "event_invoke_config": { + "DestinationConfig": { + "OnFailure": {}, + "OnSuccess": {} + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "LastModified": "datetime", + "MaximumEventAgeInSeconds": 300, + "MaximumRetryAttempts": 1, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_version": { + "recorded-date": "11-04-2025, 14:12:23", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnVersion7BF8AE5A", + "PhysicalResourceId": "arn::lambda::111111111111:function:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Version", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "versions_by_fn": { + "Versions": [ + { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function::$LATEST", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "test description", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "1" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_function_version": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "test description", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "1" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { + "recorded-date": "11-04-2025, 14:15:42", + "recorded-content": { + "policy": { + "Policy": { + "Id": "default", + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Resource": "arn::lambda::111111111111:function:", + "Sid": "" + }, + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + }, + "Resource": "arn::lambda::111111111111:function:", + "Sid": "" + } + ], + "Version": "2012-10-17" + }, + "RevisionId": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_function_tags": { + "recorded-date": "11-04-2025, 14:16:35", + "recorded-content": { + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.11", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "Environment": "", + "aws:cloudformation:logical-id": "TestFunction", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "", + "lambda:createdBy": "SAM" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { + "recorded-date": "11-04-2025, 14:17:33", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnAllowInvokeLambdaPermissionsStacktopicF723B1A748672DB5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Permission", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fntopic09ED913A", + "PhysicalResourceId": "arn::sns::111111111111::", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SNS::Subscription", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "topic69831491", + "PhysicalResourceId": "arn::sns::111111111111:", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SNS::Topic", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_topic_attributes_result": { + "Attributes": { + "DisplayName": "", + "EffectiveDeliveryPolicy": { + "http": { + "defaultHealthyRetryPolicy": { + "minDelayTarget": 20, + "maxDelayTarget": 20, + "numRetries": 3, + "numMaxDelayRetries": 0, + "numNoDelayRetries": 0, + "numMinDelayRetries": 0, + "backoffFunction": "linear" + }, + "disableSubscriptionOverrides": false, + "defaultRequestPolicy": { + "headerContentType": "text/plain; charset=UTF-8" + } + } + }, + "Owner": "111111111111", + "Policy": { + "Version": "2008-10-17", + "Id": "__default_policy_ID", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "AWS": "*" + }, + "Action": [ + "SNS:GetTopicAttributes", + "SNS:SetTopicAttributes", + "SNS:AddPermission", + "SNS:RemovePermission", + "SNS:DeleteTopic", + "SNS:Subscribe", + "SNS:ListSubscriptionsByTopic", + "SNS:Publish" + ], + "Resource": "arn::sns::111111111111:", + "Condition": { + "StringEquals": { + "AWS:SourceOwner": "111111111111" + } + } + } + ] + }, + "SubscriptionsConfirmed": "0", + "SubscriptionsDeleted": "0", + "SubscriptionsPending": "0", + "TopicArn": "arn::sns::111111111111:" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_policy_result": { + "Policy": { + "Version": "2012-10-17", + "Id": "default", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Service": "sns.amazonaws.com" + }, + "Action": "lambda:InvokeFunction", + "Resource": "arn::lambda::111111111111:function:", + "Condition": { + "ArnLike": { + "AWS:SourceArn": "arn::sns::111111111111:" + } + } + } + ] + }, + "RevisionId": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { + "recorded-date": "11-04-2025, 14:20:33", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Policy", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnSqsEventSourceLambdaSqsSourceStackq2097017B53C3FF8C", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::EventSourceMapping", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "q14836DC8", + "PhysicalResourceId": "https://sqs..amazonaws.com/111111111111/", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SQS::Queue", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "role_policies": { + "policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "sqs:ReceiveMessage", + "sqs:ChangeMessageVisibility", + "sqs:GetQueueUrl", + "sqs:DeleteMessage", + "sqs:GetQueueAttributes" + ], + "Effect": "Allow", + "Resource": "arn::sqs::111111111111:" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", + "RoleName": "", + "ResponseMetadata": "" + } + ] + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_esm_result": { + "BatchSize": 1, + "EventSourceArn": "arn::sqs::111111111111:", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "MaximumBatchingWindowInSeconds": 0, + "State": "Enabled", + "StateTransitionReason": "USER_INITIATED", + "UUID": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_queue_atts_result": { + "Attributes": { + "ApproximateNumberOfMessages": "0", + "ApproximateNumberOfMessagesDelayed": "0", + "ApproximateNumberOfMessagesNotVisible": "0", + "CreatedTimestamp": "timestamp", + "DelaySeconds": "0", + "LastModifiedTimestamp": "timestamp", + "MaximumMessageSize": "262144", + "MessageRetentionPeriod": "345600", + "QueueArn": "arn::sqs::111111111111:", + "ReceiveMessageWaitTimeSeconds": "0", + "SqsManagedSseEnabled": "true", + "VisibilityTimeout": "30" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_role_result": { + "Role": { + "Arn": "arn::iam::111111111111:role/", + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "CreateDate": "datetime", + "Description": "", + "MaxSessionDuration": 3600, + "Path": "/", + "RoleId": "", + "RoleLastUsed": {}, + "RoleName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_attached_role_policies_result": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", + "PolicyName": "AWSLambdaBasicExecutionRole" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_inline_role_policies_result": { + "IsTruncated": false, + "PolicyNames": [ + "fnServiceRoleDefaultPolicy0ED5D3E5" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { + "recorded-date": "11-04-2025, 14:26:48", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnDynamoDBEventSourceLambdaDynamodbSourceStacktable153BBA79064FDF1D", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::EventSourceMapping", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Policy", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "table8235A42E", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::DynamoDB::Table", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "role_policies": { + "policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": "dynamodb:ListStreams", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": "arn::dynamodb::111111111111:table//stream/" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", + "RoleName": "", + "ResponseMetadata": "" + } + ] + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_esm_result": { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 0, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_table_result": { + "Table": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "CreationDateTime": "datetime", + "DeletionProtectionEnabled": false, + "ItemCount": 0, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", + "LatestStreamLabel": "", + "ProvisionedThroughput": { + "NumberOfDecreasesToday": 0, + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamEnabled": true, + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableArn": "arn::dynamodb::111111111111:table/", + "TableId": "", + "TableName": "", + "TableSizeBytes": 0, + "TableStatus": "ACTIVE", + "WarmThroughput": { + "ReadUnitsPerSecond": 5, + "Status": "ACTIVE", + "WriteUnitsPerSecond": 5 + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_stream_result": { + "StreamDescription": { + "CreationRequestDateTime": "datetime", + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "Shards": [ + { + "SequenceNumberRange": { + "StartingSequenceNumber": "starting-sequence-number" + }, + "ShardId": "shard-id" + } + ], + "StreamArn": "arn::dynamodb::111111111111:table//stream/", + "StreamLabel": "", + "StreamStatus": "ENABLED", + "StreamViewType": "NEW_AND_OLD_IMAGES", + "TableName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_role_result": { + "Role": { + "Arn": "arn::iam::111111111111:role/", + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "CreateDate": "datetime", + "Description": "", + "MaxSessionDuration": 3600, + "Path": "/", + "RoleId": "", + "RoleLastUsed": {}, + "RoleName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_attached_role_policies_result": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", + "PolicyName": "AWSLambdaBasicExecutionRole" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_inline_role_policies_result": { + "IsTruncated": false, + "PolicyNames": [ + "fnServiceRoleDefaultPolicy0ED5D3E5" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { + "recorded-date": "11-04-2025, 14:30:11", + "recorded-content": { + "stack_resources": { + "StackResources": [ + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fn5FF616E3", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::Function", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnKinesisEventSourceLambdaKinesisSourceStackstream996A3395ED86A30E", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Lambda::EventSourceMapping", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRole5D180AFD", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Role", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::IAM::Policy", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + }, + { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LogicalResourceId": "stream19075594", + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::Kinesis::Stream", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "", + "Timestamp": "timestamp" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "role_policies": { + "policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "kinesis:DescribeStreamSummary", + "kinesis:GetRecords", + "kinesis:GetShardIterator", + "kinesis:ListShards", + "kinesis:SubscribeToShard", + "kinesis:DescribeStream", + "kinesis:ListStreams" + ], + "Effect": "Allow", + "Resource": "arn::kinesis::111111111111:stream/" + }, + { + "Action": "kinesis:DescribeStream", + "Effect": "Allow", + "Resource": "arn::kinesis::111111111111:stream/" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", + "RoleName": "", + "ResponseMetadata": "" + } + ] + }, + "get_function_result": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.9", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "fn5FF616E3", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_esm_result": { + "BatchSize": 1, + "BisectBatchOnFunctionError": false, + "DestinationConfig": { + "OnFailure": {} + }, + "EventSourceArn": "arn::kinesis::111111111111:stream/", + "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionResponseTypes": [], + "LastModified": "datetime", + "LastProcessingResult": "No records processed", + "MaximumBatchingWindowInSeconds": 10, + "MaximumRecordAgeInSeconds": -1, + "MaximumRetryAttempts": -1, + "ParallelizationFactor": 1, + "StartingPosition": "TRIM_HORIZON", + "State": "Enabled", + "StateTransitionReason": "User action", + "TumblingWindowInSeconds": 0, + "UUID": "", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_stream_result": { + "StreamDescription": { + "EncryptionType": "NONE", + "EnhancedMonitoring": [ + { + "ShardLevelMetrics": [] + } + ], + "HasMoreShards": false, + "RetentionPeriodHours": 24, + "Shards": [ + { + "HashKeyRange": { + "EndingHashKey": "ending_hash", + "StartingHashKey": "starting_hash" + }, + "SequenceNumberRange": { + "StartingSequenceNumber": "starting-sequence-number" + }, + "ShardId": "shard-id" + } + ], + "StreamARN": "arn::kinesis::111111111111:stream/", + "StreamCreationTimestamp": "timestamp", + "StreamModeDetails": { + "StreamMode": "PROVISIONED" + }, + "StreamName": "", + "StreamStatus": "ACTIVE" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_role_result": { + "Role": { + "Arn": "arn::iam::111111111111:role/", + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "CreateDate": "datetime", + "Description": "", + "MaxSessionDuration": 3600, + "Path": "/", + "RoleId": "", + "RoleLastUsed": {}, + "RoleName": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_attached_role_policies_result": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", + "PolicyName": "AWSLambdaBasicExecutionRole" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "list_inline_role_policies_result": { + "IsTruncated": false, + "PolicyNames": [ + "fnServiceRoleDefaultPolicy0ED5D3E5" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { + "recorded-date": "11-04-2025, 14:35:09", + "recorded-content": { + "failed-async-lambda": { + "Messages": [ + { + "Body": {}, + "MD5OfBody": "99914b932bd37a50b983c5e7c90ae93b", + "MessageId": "", + "ReceiptHandle": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_layer_crud": { + "recorded-date": "11-04-2025, 14:36:25", + "recorded-content": { + "layer-name": "", + "cfn-output": { + "LambdaArn": "arn::lambda::111111111111:function:", + "LambdaName": "", + "LayerVersionArn": "arn::lambda::111111111111:layer::1", + "LayerVersionRef": "arn::lambda::111111111111:layer::1" + } + } + } +} diff --git a/tests/aws/services/lambda_/resources/test_lambda.validation.json b/tests/aws/services/lambda_/resources/test_lambda.validation.json new file mode 100644 index 0000000000000..ff74b95bef204 --- /dev/null +++ b/tests/aws/services/lambda_/resources/test_lambda.validation.json @@ -0,0 +1,71 @@ +{ + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaDestinations::test_generic_destination_routing[sqs-sqs]": { + "last_validated_date": "2025-04-11T14:32:09+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { + "last_validated_date": "2025-04-11T14:26:48+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { + "last_validated_date": "2025-04-11T14:30:11+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { + "last_validated_date": "2025-04-11T14:17:33+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { + "last_validated_date": "2025-04-11T14:20:33+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::TestCfnLambdaIntegrations::test_lambda_dynamodb_event_filter": { + "last_validated_date": "2025-04-11T14:23:57+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_cfn_function_url": { + "last_validated_date": "2025-04-11T14:06:38+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_event_invoke_config": { + "last_validated_date": "2025-04-11T14:11:24+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_alias": { + "last_validated_date": "2025-04-11T14:09:16+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { + "last_validated_date": "2025-04-11T14:35:09+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_cfn_run": { + "last_validated_date": "2025-04-11T14:13:17+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_code_signing_config": { + "last_validated_date": "2025-04-11T14:10:41+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_function_tags": { + "last_validated_date": "2025-04-11T14:16:35+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_layer_crud": { + "last_validated_date": "2025-04-11T14:36:25+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_logging_config": { + "last_validated_date": "2025-04-11T14:10:14+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_version": { + "last_validated_date": "2025-04-11T14:12:23+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter": { + "last_validated_date": "2025-04-11T14:01:14+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { + "last_validated_date": "2025-04-11T14:02:52+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { + "last_validated_date": "2025-04-11T14:15:42+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_python_lambda_code_deployed_via_s3": { + "last_validated_date": "2025-04-11T14:33:56+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_update_lambda_function": { + "last_validated_date": "2025-04-11T14:04:27+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_update_lambda_function_name": { + "last_validated_date": "2025-04-11T14:05:45+00:00" + }, + "tests/aws/services/lambda_/resources/test_lambda.py::test_update_lambda_permissions": { + "last_validated_date": "2025-04-11T14:14:19+00:00" + } +} diff --git a/tests/aws/services/logs/resources/test_logs.snapshot.json b/tests/aws/services/logs/resources/test_logs.snapshot.json new file mode 100644 index 0000000000000..2632cbe52d530 --- /dev/null +++ b/tests/aws/services/logs/resources/test_logs.snapshot.json @@ -0,0 +1,42 @@ +{ + "tests/aws/services/logs/resources/test_logs.py::test_logstream": { + "recorded-date": "11-04-2025, 14:37:12", + "recorded-content": { + "outputs": { + "LogGroupNameOutput": "", + "LogStreamNameOutput": "" + }, + "describe_log_streams": [ + { + "logStreamName": "", + "creationTime": "timestamp", + "arn": "arn::logs::111111111111:log-group::log-stream:", + "storedBytes": 0 + } + ] + } + }, + "tests/aws/services/logs/resources/test_logs.py::test_cfn_handle_log_group_resource": { + "recorded-date": "11-04-2025, 14:37:35", + "recorded-content": { + "describe_log_groups": { + "logGroups": [ + { + "arn": "arn::logs::111111111111:log-group::*", + "creationTime": "timestamp", + "logGroupArn": "arn::logs::111111111111:log-group:", + "logGroupClass": "STANDARD", + "logGroupName": "", + "metricFilterCount": 0, + "retentionInDays": 731, + "storedBytes": 0 + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/logs/resources/test_logs.validation.json b/tests/aws/services/logs/resources/test_logs.validation.json new file mode 100644 index 0000000000000..65e37f1c9a35f --- /dev/null +++ b/tests/aws/services/logs/resources/test_logs.validation.json @@ -0,0 +1,8 @@ +{ + "tests/aws/services/logs/resources/test_logs.py::test_cfn_handle_log_group_resource": { + "last_validated_date": "2025-04-11T14:37:35+00:00" + }, + "tests/aws/services/logs/resources/test_logs.py::test_logstream": { + "last_validated_date": "2025-04-11T14:37:12+00:00" + } +} diff --git a/tests/aws/services/opensearch/resources/test_opensearch.snapshot.json b/tests/aws/services/opensearch/resources/test_opensearch.snapshot.json new file mode 100644 index 0000000000000..dc71dbc307fb9 --- /dev/null +++ b/tests/aws/services/opensearch/resources/test_opensearch.snapshot.json @@ -0,0 +1,128 @@ +{ + "tests/aws/services/opensearch/resources/test_opensearch.py::test_domain_with_alternative_types": { + "recorded-date": "11-04-2025, 14:50:45", + "recorded-content": { + "describe_domain": { + "DomainStatus": { + "AIMLOptions": { + "NaturalLanguageQueryGenerationOptions": { + "CurrentState": "NOT_ENABLED", + "DesiredState": "DISABLED" + } + }, + "ARN": "arn::es::111111111111:domain/test-opensearch-domain", + "AccessPolicies": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "arn::iam::111111111111:root" + }, + "Action": "es:*", + "Resource": "arn::es::111111111111:domain/test-opensearch-domain/*" + } + ] + }, + "AdvancedOptions": { + "override_main_response_version": "true", + "rest.action.multi.allow_explicit_index": "true" + }, + "AdvancedSecurityOptions": { + "AnonymousAuthEnabled": false, + "Enabled": false, + "InternalUserDatabaseEnabled": false + }, + "AutoTuneOptions": { + "State": "ENABLED", + "UseOffPeakWindow": false + }, + "ChangeProgressDetails": { + "ChangeId": "", + "ConfigChangeStatus": "Completed", + "InitiatedBy": "CUSTOMER", + "LastUpdatedTime": "", + "StartTime": "" + }, + "ClusterConfig": { + "ColdStorageOptions": { + "Enabled": false + }, + "DedicatedMasterCount": 3, + "DedicatedMasterEnabled": true, + "DedicatedMasterType": "m5.large.search", + "InstanceCount": 2, + "InstanceType": "m5.large.search", + "MultiAZWithStandbyEnabled": false, + "WarmEnabled": false, + "ZoneAwarenessConfig": { + "AvailabilityZoneCount": 2 + }, + "ZoneAwarenessEnabled": true + }, + "CognitoOptions": { + "Enabled": false + }, + "Created": true, + "Deleted": false, + "DomainEndpointOptions": { + "CustomEndpointEnabled": false, + "EnforceHTTPS": false, + "TLSSecurityPolicy": "Policy-Min-TLS-1-2-2019-07" + }, + "DomainId": "111111111111/test-opensearch-domain", + "DomainName": "test-opensearch-domain", + "DomainProcessingStatus": "Active", + "EBSOptions": { + "EBSEnabled": true, + "Iops": 0, + "VolumeSize": 20, + "VolumeType": "gp2" + }, + "EncryptionAtRestOptions": { + "Enabled": false + }, + "Endpoint": "search-test-opensearch-domain-57fgnrmccspzmfzabq6yahdhc4..es.amazonaws.com", + "EngineVersion": "OpenSearch_1.0", + "IPAddressType": "ipv4", + "IdentityCenterOptions": {}, + "ModifyingProperties": [], + "NodeToNodeEncryptionOptions": { + "Enabled": false + }, + "OffPeakWindowOptions": { + "Enabled": true, + "OffPeakWindow": { + "WindowStartTime": { + "Hours": 20, + "Minutes": 0 + } + } + }, + "Processing": false, + "ServiceSoftwareOptions": { + "AutomatedUpdateDate": "", + "Cancellable": false, + "CurrentVersion": "OpenSearch_1_0_R20241003-P1", + "Description": "There is no software update available for this domain.", + "NewVersion": "", + "OptionalDeployment": true, + "UpdateAvailable": false, + "UpdateStatus": "COMPLETED" + }, + "SnapshotOptions": { + "AutomatedSnapshotStartHour": 0 + }, + "SoftwareUpdateOptions": { + "AutoSoftwareUpdateEnabled": false + }, + "UpgradeProcessing": false + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/opensearch/resources/test_opensearch.validation.json b/tests/aws/services/opensearch/resources/test_opensearch.validation.json new file mode 100644 index 0000000000000..6fea836bb2317 --- /dev/null +++ b/tests/aws/services/opensearch/resources/test_opensearch.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/opensearch/resources/test_opensearch.py::test_domain_with_alternative_types": { + "last_validated_date": "2025-04-11T14:50:45+00:00" + } +} diff --git a/tests/aws/services/redshift/resources/test_redshift.validation.json b/tests/aws/services/redshift/resources/test_redshift.validation.json new file mode 100644 index 0000000000000..602b571938606 --- /dev/null +++ b/tests/aws/services/redshift/resources/test_redshift.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/redshift/resources/test_redshift.py::test_redshift_cluster": { + "last_validated_date": "2025-04-11T15:06:31+00:00" + } +} diff --git a/tests/aws/services/resource_groups/resources/test_resource_groups.snapshot.json b/tests/aws/services/resource_groups/resources/test_resource_groups.snapshot.json new file mode 100644 index 0000000000000..3c04c032f0527 --- /dev/null +++ b/tests/aws/services/resource_groups/resources/test_resource_groups.snapshot.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/resource_groups/resources/test_resource_groups.py::test_group_defaults": { + "recorded-date": "11-04-2025, 15:08:42", + "recorded-content": { + "resource-group": { + "Group": { + "GroupArn": "arn::resource-groups::111111111111:group/testgroup", + "Name": "testgroup" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/resource_groups/resources/test_resource_groups.validation.json b/tests/aws/services/resource_groups/resources/test_resource_groups.validation.json new file mode 100644 index 0000000000000..8b7b46d51083d --- /dev/null +++ b/tests/aws/services/resource_groups/resources/test_resource_groups.validation.json @@ -0,0 +1,5 @@ +{ + "tests/aws/services/resource_groups/resources/test_resource_groups.py::test_group_defaults": { + "last_validated_date": "2025-04-11T15:08:42+00:00" + } +} diff --git a/tests/aws/services/route53/resources/test_route53.snapshot.json b/tests/aws/services/route53/resources/test_route53.snapshot.json new file mode 100644 index 0000000000000..60789a0e1e19d --- /dev/null +++ b/tests/aws/services/route53/resources/test_route53.snapshot.json @@ -0,0 +1,25 @@ +{ + "tests/aws/services/route53/resources/test_route53.py::test_create_health_check": { + "recorded-date": "11-04-2025, 15:12:56", + "recorded-content": { + "HealthCheck": { + "CallerReference": "", + "HealthCheckConfig": { + "Disabled": false, + "EnableSNI": false, + "FailureThreshold": 3, + "FullyQualifiedDomainName": "localstacktest.com", + "IPAddress": "1.1.1.1", + "Inverted": false, + "MeasureLatency": false, + "Port": 80, + "RequestInterval": 30, + "ResourcePath": "/health", + "Type": "HTTP" + }, + "HealthCheckVersion": 1, + "Id": "" + } + } + } +} diff --git a/tests/aws/services/route53/resources/test_route53.validation.json b/tests/aws/services/route53/resources/test_route53.validation.json new file mode 100644 index 0000000000000..3547dcb9bdca7 --- /dev/null +++ b/tests/aws/services/route53/resources/test_route53.validation.json @@ -0,0 +1,14 @@ +{ + "tests/aws/services/route53/resources/test_route53.py::test_create_health_check": { + "last_validated_date": "2025-04-11T15:12:56+00:00" + }, + "tests/aws/services/route53/resources/test_route53.py::test_create_record_set_via_id": { + "last_validated_date": "2025-04-11T15:09:29+00:00" + }, + "tests/aws/services/route53/resources/test_route53.py::test_create_record_set_via_name": { + "last_validated_date": "2025-04-11T15:10:48+00:00" + }, + "tests/aws/services/route53/resources/test_route53.py::test_create_record_set_without_resource_record": { + "last_validated_date": "2025-04-11T15:12:07+00:00" + } +} diff --git a/tests/aws/services/s3/resources/test_s3.snapshot.json b/tests/aws/services/s3/resources/test_s3.snapshot.json new file mode 100644 index 0000000000000..62f14de37b9b3 --- /dev/null +++ b/tests/aws/services/s3/resources/test_s3.snapshot.json @@ -0,0 +1,176 @@ +{ + "tests/aws/services/s3/resources/test_s3.py::test_bucketpolicy": { + "recorded-date": "11-04-2025, 15:13:39", + "recorded-content": { + "bucket": { + "BucketName": "" + }, + "get-policy-true": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "*" + }, + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Resource": [ + "arn::s3:::", + "arn::s3:::/*" + ] + } + ] + }, + "no-policy": { + "Error": { + "BucketName": "", + "Code": "NoSuchBucketPolicy", + "Message": "The bucket policy does not exist" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 404 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_website_configuration": { + "recorded-date": "11-04-2025, 15:15:00", + "recorded-content": { + "get_bucket_website": { + "ErrorDocument": { + "Key": "error.html" + }, + "IndexDocument": { + "Suffix": "index.html" + }, + "RoutingRules": [ + { + "Condition": { + "HttpErrorCodeReturnedEquals": "404", + "KeyPrefixEquals": "out1/" + }, + "Redirect": { + "ReplaceKeyWith": "redirected.html" + } + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_cors_configuration": { + "recorded-date": "11-04-2025, 15:15:28", + "recorded-content": { + "cors-info-optional": { + "CORSRules": [ + { + "AllowedHeaders": [ + "*", + "x-amz-*" + ], + "AllowedMethods": [ + "GET" + ], + "AllowedOrigins": [ + "*" + ], + "ExposeHeaders": [ + "Date" + ], + "ID": "test-cors-id", + "MaxAgeSeconds": 3600 + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "cors-info-only-required": { + "CORSRules": [ + { + "AllowedMethods": [ + "GET" + ], + "AllowedOrigins": [ + "*" + ], + "MaxAgeSeconds": 0 + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_object_lock_configuration": { + "recorded-date": "11-04-2025, 15:15:56", + "recorded-content": { + "object-lock-info-with-configuration": { + "ObjectLockConfiguration": { + "ObjectLockEnabled": "Enabled", + "Rule": { + "DefaultRetention": { + "Days": 2, + "Mode": "GOVERNANCE" + } + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "object-lock-info-only-enabled": { + "ObjectLockConfiguration": { + "ObjectLockEnabled": "Enabled" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/s3/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { + "recorded-date": "11-04-2025, 15:17:32", + "recorded-content": { + "get_bucket_notification_configuration": { + "QueueConfigurations": [ + { + "Events": [ + "s3:ObjectCreated:*" + ], + "Id": "", + "QueueArn": "" + } + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_bucket_notification_configuration_error": { + "Error": { + "BucketName": "", + "Code": "NoSuchBucket", + "Message": "The specified bucket does not exist" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 404 + } + } + } + } +} diff --git a/tests/aws/services/s3/resources/test_s3.validation.json b/tests/aws/services/s3/resources/test_s3.validation.json new file mode 100644 index 0000000000000..5e8da552c3410 --- /dev/null +++ b/tests/aws/services/s3/resources/test_s3.validation.json @@ -0,0 +1,23 @@ +{ + "tests/aws/services/s3/resources/test_s3.py::test_bucket_autoname": { + "last_validated_date": "2025-04-11T15:14:06+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_bucket_versioning": { + "last_validated_date": "2025-04-11T15:14:33+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_bucketpolicy": { + "last_validated_date": "2025-04-11T15:13:39+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { + "last_validated_date": "2025-04-11T15:17:32+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_cors_configuration": { + "last_validated_date": "2025-04-11T15:15:28+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_object_lock_configuration": { + "last_validated_date": "2025-04-11T15:15:56+00:00" + }, + "tests/aws/services/s3/resources/test_s3.py::test_website_configuration": { + "last_validated_date": "2025-04-11T15:15:00+00:00" + } +} diff --git a/tests/aws/services/secretsmanager/resources/test_secretsmanager.snapshot.json b/tests/aws/services/secretsmanager/resources/test_secretsmanager.snapshot.json new file mode 100644 index 0000000000000..cdb8fd95fbb45 --- /dev/null +++ b/tests/aws/services/secretsmanager/resources/test_secretsmanager.snapshot.json @@ -0,0 +1,162 @@ +{ + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { + "recorded-date": "11-04-2025, 15:17:42", + "recorded-content": { + "secret": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "CreatedDate": "datetime", + "Description": "Aurora Password", + "LastChangedDate": "datetime", + "Name": "", + "Tags": [ + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-e7ec9681" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "Secret" + }, + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-e7ec9681/171d1110-16e8-11f0-88d8-0acecb2e8bf9" + } + ], + "VersionIdsToStages": { + "1a836d7c-82af-978c-3dba-7cb1fea10435": [ + "AWSCURRENT" + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { + "recorded-date": "11-04-2025, 15:18:09", + "recorded-content": { + "secret": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "CreatedDate": "datetime", + "Description": "Aurora Password", + "LastChangedDate": "datetime", + "Name": "", + "Tags": [ + { + "Key": "aws:cloudformation:stack-name", + "Value": "stack-d766ba9b" + }, + { + "Key": "aws:cloudformation:logical-id", + "Value": "Secret" + }, + { + "Key": "aws:cloudformation:stack-id", + "Value": "arn::cloudformation::111111111111:stack/stack-d766ba9b/225317a0-16e8-11f0-9083-065d3a105a0f" + } + ], + "VersionIdsToStages": { + "a3717297-a892-6498-b37f-22ac8453bc72": [ + "AWSCURRENT" + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "exception": { + "Error": { + "Code": "ResourceNotFoundException", + "Message": "Secrets Manager can't find the specified secret." + }, + "Message": "Secrets Manager can't find the specified secret.", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 400 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { + "recorded-date": "11-04-2025, 15:18:22", + "recorded-content": { + "outputs": { + "SecretId": "arn::secretsmanager::111111111111:secret:", + "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" + }, + "resource_policy": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "Name": "", + "ResourcePolicy": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "arn::iam::111111111111:root" + }, + "Action": "secretsmanager:ReplicateSecretToRegions", + "Resource": "*" + } + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { + "recorded-date": "11-04-2025, 15:18:45", + "recorded-content": { + "outputs": { + "SecretId": "arn::secretsmanager::111111111111:secret:", + "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" + }, + "resource_policy": { + "ARN": "arn::secretsmanager::111111111111:secret:", + "Name": "", + "ResourcePolicy": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "AWS": "arn::iam::111111111111:root" + }, + "Action": "secretsmanager:ReplicateSecretToRegions", + "Resource": "*" + } + ] + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { + "recorded-date": "11-04-2025, 15:19:25", + "recorded-content": { + "generated_key": { + "ARN": "", + "CreatedDate": "datetime", + "Name": "", + "SecretString": "secret-string", + "VersionId": "", + "VersionStages": [ + "AWSCURRENT" + ], + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/secretsmanager/resources/test_secretsmanager.validation.json b/tests/aws/services/secretsmanager/resources/test_secretsmanager.validation.json new file mode 100644 index 0000000000000..667ef3b8904f8 --- /dev/null +++ b/tests/aws/services/secretsmanager/resources/test_secretsmanager.validation.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { + "last_validated_date": "2025-04-11T15:19:25+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { + "last_validated_date": "2025-04-11T15:18:09+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { + "last_validated_date": "2025-04-11T15:18:45+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { + "last_validated_date": "2025-04-11T15:18:22+00:00" + }, + "tests/aws/services/secretsmanager/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { + "last_validated_date": "2025-04-11T15:17:42+00:00" + } +} diff --git a/tests/aws/services/sns/resources/test_sns.snapshot.json b/tests/aws/services/sns/resources/test_sns.snapshot.json new file mode 100644 index 0000000000000..e45b33a498159 --- /dev/null +++ b/tests/aws/services/sns/resources/test_sns.snapshot.json @@ -0,0 +1,116 @@ +{ + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { + "recorded-date": "11-04-2025, 15:19:36", + "recorded-content": { + "get-topic-attrs": { + "Attributes": { + "ContentBasedDeduplication": "true", + "DisplayName": "", + "EffectiveDeliveryPolicy": { + "http": { + "defaultHealthyRetryPolicy": { + "minDelayTarget": 20, + "maxDelayTarget": 20, + "numRetries": 3, + "numMaxDelayRetries": 0, + "numNoDelayRetries": 0, + "numMinDelayRetries": 0, + "backoffFunction": "linear" + }, + "disableSubscriptionOverrides": false, + "defaultRequestPolicy": { + "headerContentType": "text/plain; charset=UTF-8" + } + } + }, + "FifoTopic": "true", + "Owner": "111111111111", + "Policy": { + "Version": "2008-10-17", + "Id": "__default_policy_ID", + "Statement": [ + { + "Sid": "__default_statement_ID", + "Effect": "Allow", + "Principal": { + "AWS": "*" + }, + "Action": [ + "SNS:GetTopicAttributes", + "SNS:SetTopicAttributes", + "SNS:AddPermission", + "SNS:RemovePermission", + "SNS:DeleteTopic", + "SNS:Subscribe", + "SNS:ListSubscriptionsByTopic", + "SNS:Publish" + ], + "Resource": "", + "Condition": { + "StringEquals": { + "AWS:SourceOwner": "111111111111" + } + } + } + ] + }, + "SubscriptionsConfirmed": "0", + "SubscriptionsDeleted": "0", + "SubscriptionsPending": "0", + "TopicArn": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/sns/resources/test_sns.py::test_update_subscription": { + "recorded-date": "11-04-2025, 15:24:35", + "recorded-content": { + "subscription-1": { + "Attributes": { + "ConfirmationWasAuthenticated": "true", + "Endpoint": "arn::sqs::111111111111:", + "Owner": "111111111111", + "PendingConfirmation": "false", + "Protocol": "sqs", + "RawMessageDelivery": "true", + "SubscriptionArn": "arn::sns::111111111111::", + "SubscriptionPrincipal": "arn::iam::111111111111:role/aws-reserved/sso.amazonaws.com//", + "TopicArn": "arn::sns::111111111111:" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "subscription-2": { + "Attributes": { + "ConfirmationWasAuthenticated": "true", + "Endpoint": "arn::sqs::111111111111:", + "Owner": "111111111111", + "PendingConfirmation": "false", + "Protocol": "sqs", + "RawMessageDelivery": "false", + "SubscriptionArn": "arn::sns::111111111111::", + "SubscriptionPrincipal": "arn::iam::111111111111:role/aws-reserved/sso.amazonaws.com//", + "TopicArn": "arn::sns::111111111111:" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_with_attributes": { + "recorded-date": "11-04-2025, 15:24:59", + "recorded-content": { + "topic-archive-policy": { + "MessageRetentionPeriod": "30" + } + } + } +} diff --git a/tests/aws/services/sns/resources/test_sns.validation.json b/tests/aws/services/sns/resources/test_sns.validation.json new file mode 100644 index 0000000000000..ed8ceeed4c569 --- /dev/null +++ b/tests/aws/services/sns/resources/test_sns.validation.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/sns/resources/test_sns.py::test_deploy_stack_with_sns_topic": { + "last_validated_date": "2025-04-11T15:24:09+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_subscription": { + "last_validated_date": "2025-04-11T15:21:13+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { + "last_validated_date": "2025-04-11T15:19:36+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_sns_topic_with_attributes": { + "last_validated_date": "2025-04-11T15:24:59+00:00" + }, + "tests/aws/services/sns/resources/test_sns.py::test_update_subscription": { + "last_validated_date": "2025-04-11T15:24:30+00:00" + } +} diff --git a/tests/aws/services/sqs/resources/test_sqs.snapshot.json b/tests/aws/services/sqs/resources/test_sqs.snapshot.json new file mode 100644 index 0000000000000..ad0082356aa13 --- /dev/null +++ b/tests/aws/services/sqs/resources/test_sqs.snapshot.json @@ -0,0 +1,119 @@ +{ + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_queue_policy": { + "recorded-date": "11-04-2025, 15:25:38", + "recorded-content": { + "policy": { + "Attributes": { + "Policy": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": "*", + "Action": [ + "sqs:SendMessage", + "sqs:GetQueueAttributes", + "sqs:GetQueueUrl" + ], + "Resource": "" + } + ] + } + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_cfn_handle_sqs_resource": { + "recorded-date": "11-04-2025, 15:29:51", + "recorded-content": { + "queue": { + "Attributes": { + "ApproximateNumberOfMessages": "0", + "ApproximateNumberOfMessagesDelayed": "0", + "ApproximateNumberOfMessagesNotVisible": "0", + "ContentBasedDeduplication": "false", + "CreatedTimestamp": "timestamp", + "DeduplicationScope": "queue", + "DelaySeconds": "0", + "FifoQueue": "true", + "FifoThroughputLimit": "perQueue", + "LastModifiedTimestamp": "timestamp", + "MaximumMessageSize": "262144", + "MessageRetentionPeriod": "345600", + "QueueArn": "arn::sqs::111111111111:.fifo", + "ReceiveMessageWaitTimeSeconds": "0", + "SqsManagedSseEnabled": "true", + "VisibilityTimeout": "30" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "error": { + "Error": { + "Code": "AWS.SimpleQueueService.NonExistentQueue", + "Message": "The specified queue does not exist.", + "QueryErrorCode": "QueueDoesNotExist", + "Type": "Sender" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 400 + } + } + } + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_queue_no_change": { + "recorded-date": "11-04-2025, 15:30:56", + "recorded-content": { + "outputs-1": { + "QueueArn": "", + "QueueUrl": "" + }, + "outputs-2": { + "QueueArn": "", + "QueueUrl": "" + } + } + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_sqs_queuepolicy": { + "recorded-date": "11-04-2025, 15:32:21", + "recorded-content": { + "policy1": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": "*", + "Action": [ + "sqs:SendMessage", + "sqs:GetQueueAttributes", + "sqs:GetQueueUrl" + ], + "Resource": "arn::sqs::111111111111:" + } + ] + }, + "policy2": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Deny", + "Principal": "*", + "Action": [ + "sqs:SendMessage", + "sqs:GetQueueAttributes", + "sqs:GetQueueUrl" + ], + "Resource": "arn::sqs::111111111111:" + } + ] + } + } + } +} diff --git a/tests/aws/services/sqs/resources/test_sqs.validation.json b/tests/aws/services/sqs/resources/test_sqs.validation.json new file mode 100644 index 0000000000000..f67acabdc5afb --- /dev/null +++ b/tests/aws/services/sqs/resources/test_sqs.validation.json @@ -0,0 +1,20 @@ +{ + "tests/aws/services/sqs/resources/test_sqs.py::test_cfn_handle_sqs_resource": { + "last_validated_date": "2025-04-11T15:29:51+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_fifo_queue_generates_valid_name": { + "last_validated_date": "2025-04-11T15:26:52+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_non_fifo_queue_generates_valid_name": { + "last_validated_date": "2025-04-11T15:28:05+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_sqs_queue_policy": { + "last_validated_date": "2025-04-11T15:25:38+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_queue_no_change": { + "last_validated_date": "2025-04-11T15:30:56+00:00" + }, + "tests/aws/services/sqs/resources/test_sqs.py::test_update_sqs_queuepolicy": { + "last_validated_date": "2025-04-11T15:32:21+00:00" + } +} diff --git a/tests/aws/services/ssm/resources/test_ssm.snapshot.json b/tests/aws/services/ssm/resources/test_ssm.snapshot.json new file mode 100644 index 0000000000000..3de4b15458306 --- /dev/null +++ b/tests/aws/services/ssm/resources/test_ssm.snapshot.json @@ -0,0 +1,117 @@ +{ + "tests/aws/services/ssm/resources/test_ssm.py::test_parameter_defaults": { + "recorded-date": "11-04-2025, 15:33:11", + "recorded-content": { + "ssm_parameter": { + "Parameter": { + "ARN": "arn::ssm::111111111111:parameter/", + "DataType": "text", + "LastModifiedDate": "", + "Name": "", + "Type": "String", + "Value": "", + "Version": 1 + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "ssm_parameter_not_found": { + "Error": { + "Code": "ParameterNotFound", + "Message": "" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 400 + } + } + } + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_deploy_patch_baseline": { + "recorded-date": "11-04-2025, 15:34:13", + "recorded-content": { + "patch_baseline": { + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + }, + "LastUpdatedTimestamp": "", + "LogicalResourceId": "myPatchBaseline", + "Metadata": {}, + "PhysicalResourceId": "", + "ResourceStatus": "CREATE_COMPLETE", + "ResourceType": "AWS::SSM::PatchBaseline", + "StackId": "arn::cloudformation::111111111111:stack//", + "StackName": "" + } + } + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_maintenance_window": { + "recorded-date": "11-04-2025, 15:34:30", + "recorded-content": { + "MaintenanceWindow": [ + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchBaselineAML", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::PatchBaseline", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchBaselineAML2", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::PatchBaseline", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchServerMaintenanceWindow", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::MaintenanceWindow", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchServerMaintenanceWindowTarget", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::MaintenanceWindowTarget", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + }, + { + "StackName": "", + "StackId": "arn::cloudformation::111111111111:stack//", + "LogicalResourceId": "PatchServerTask", + "PhysicalResourceId": "", + "ResourceType": "AWS::SSM::MaintenanceWindowTask", + "Timestamp": "", + "ResourceStatus": "CREATE_COMPLETE", + "DriftInformation": { + "StackResourceDriftStatus": "NOT_CHECKED" + } + } + ] + } + } +} diff --git a/tests/aws/services/ssm/resources/test_ssm.validation.json b/tests/aws/services/ssm/resources/test_ssm.validation.json new file mode 100644 index 0000000000000..ce2f507d977dd --- /dev/null +++ b/tests/aws/services/ssm/resources/test_ssm.validation.json @@ -0,0 +1,17 @@ +{ + "tests/aws/services/ssm/resources/test_ssm.py::test_deploy_patch_baseline": { + "last_validated_date": "2025-04-11T15:34:13+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_maintenance_window": { + "last_validated_date": "2025-04-11T15:34:30+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_parameter_defaults": { + "last_validated_date": "2025-04-11T15:33:11+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_update_ssm_parameter_tag": { + "last_validated_date": "2025-04-11T15:33:59+00:00" + }, + "tests/aws/services/ssm/resources/test_ssm.py::test_update_ssm_parameters": { + "last_validated_date": "2025-04-11T15:33:34+00:00" + } +} diff --git a/tests/aws/services/stepfunctions/resources/test_stepfunctions.snapshot.json b/tests/aws/services/stepfunctions/resources/test_stepfunctions.snapshot.json new file mode 100644 index 0000000000000..eb123f78a8c51 --- /dev/null +++ b/tests/aws/services/stepfunctions/resources/test_stepfunctions.snapshot.json @@ -0,0 +1,113 @@ +{ + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { + "recorded-date": "11-04-2025, 15:46:53", + "recorded-content": { + "describe_state_machine_output_on_create": { + "creationDate": "datetime", + "definition": { + "Comment": "step: on create", + "StartAt": "S0", + "States": { + "S0": { + "Type": "Succeed" + } + } + }, + "encryptionConfiguration": { + "type": "AWS_OWNED_KEY" + }, + "loggingConfiguration": { + "includeExecutionData": false, + "level": "OFF" + }, + "name": "", + "roleArn": "", + "stateMachineArn": "", + "status": "ACTIVE", + "tracingConfiguration": { + "enabled": false + }, + "type": "STANDARD", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "describe_state_machine_output_on_update": { + "creationDate": "datetime", + "definition": { + "Comment": "step: on update", + "StartAt": "S0", + "States": { + "S0": { + "Type": "Succeed" + } + } + }, + "encryptionConfiguration": { + "type": "AWS_OWNED_KEY" + }, + "loggingConfiguration": { + "includeExecutionData": false, + "level": "OFF" + }, + "name": "", + "revisionId": "", + "roleArn": "", + "stateMachineArn": "", + "status": "ACTIVE", + "tracingConfiguration": { + "enabled": false + }, + "type": "STANDARD", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { + "recorded-date": "11-04-2025, 15:48:38", + "recorded-content": { + "describe_state_machine_result": { + "creationDate": "datetime", + "definition": { + "StartAt": "S0", + "States": { + "S0": { + "Type": "Pass", + "End": true + } + } + }, + "encryptionConfiguration": { + "type": "AWS_OWNED_KEY" + }, + "loggingConfiguration": { + "destinations": [ + { + "cloudWatchLogsLogGroup": { + "logGroupArn": "" + } + } + ], + "includeExecutionData": true, + "level": "ALL" + }, + "name": "", + "roleArn": "", + "stateMachineArn": "", + "status": "ACTIVE", + "tracingConfiguration": { + "enabled": false + }, + "type": "STANDARD", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/stepfunctions/resources/test_stepfunctions.validation.json b/tests/aws/services/stepfunctions/resources/test_stepfunctions.validation.json new file mode 100644 index 0000000000000..43b778f25cf0c --- /dev/null +++ b/tests/aws/services/stepfunctions/resources/test_stepfunctions.validation.json @@ -0,0 +1,20 @@ +{ + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_apigateway_invoke_with_path": { + "last_validated_date": "2025-04-11T15:43:29+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { + "last_validated_date": "2025-04-11T15:46:53+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_cfn_statemachine_with_dependencies": { + "last_validated_date": "2025-04-11T15:46:09+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_nested_statemachine_with_sync2": { + "last_validated_date": "2025-04-11T15:37:41+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { + "last_validated_date": "2025-04-11T15:48:38+00:00" + }, + "tests/aws/services/stepfunctions/resources/test_stepfunctions.py::test_statemachine_definitionsubstitution": { + "last_validated_date": "2025-04-11T15:35:23+00:00" + } +} diff --git a/tests/aws/templates/dynamodb_global_table.yml b/tests/aws/templates/dynamodb_global_table.yml index eaeb6ef2cbf17..b4f96969909c6 100644 --- a/tests/aws/templates/dynamodb_global_table.yml +++ b/tests/aws/templates/dynamodb_global_table.yml @@ -1,3 +1,7 @@ +Parameters: + ReplicaRegion: + Type: String + Resources: Table: Type: AWS::DynamoDB::GlobalTable @@ -10,7 +14,7 @@ Resources: - AttributeName: keyName AttributeType: S Replicas: - - Region: us-east-1 + - Region: !Ref ReplicaRegion Outputs: diff --git a/tests/aws/templates/elasticsearch_domain.yml b/tests/aws/templates/elasticsearch_domain.yml index 99875726daeca..e19c76a0ea5b9 100644 --- a/tests/aws/templates/elasticsearch_domain.yml +++ b/tests/aws/templates/elasticsearch_domain.yml @@ -18,8 +18,8 @@ Resources: DedicatedMasterEnabled: true InstanceCount: '2' ZoneAwarenessEnabled: true - InstanceType: 'm3.medium.elasticsearch' - DedicatedMasterType: 'm3.medium.elasticsearch' + InstanceType: m5.large.elasticsearch + DedicatedMasterType: m5.large.elasticsearch DedicatedMasterCount: '3' EBSOptions: EBSEnabled: true diff --git a/tests/aws/templates/sfn_apigateway_two_integrations.yaml b/tests/aws/templates/sfn_apigateway_two_integrations.yaml index 687cfd422344e..65294361334ab 100644 --- a/tests/aws/templates/sfn_apigateway_two_integrations.yaml +++ b/tests/aws/templates/sfn_apigateway_two_integrations.yaml @@ -32,7 +32,7 @@ Resources: - LsFnServiceRoleFE24FAB1 - Arn Handler: index.handler - Runtime: nodejs14.x + Runtime: nodejs22.x DependsOn: - LsFnServiceRoleFE24FAB1 LsFn2ServiceRoleF6685547: @@ -68,7 +68,7 @@ Resources: - LsFn2ServiceRoleF6685547 - Arn Handler: index.handler - Runtime: nodejs14.x + Runtime: nodejs22.x DependsOn: - LsFn2ServiceRoleF6685547 LsApi42D61DD0: From 38f1bb4db1ed2cba6f1d68def236895f80707a3b Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 16:59:21 +0100 Subject: [PATCH 05/13] Remove old snapshots diff --git c/tests/aws/services/cloudformation/resources/test_apigateway.snapshot.json i/tests/aws/services/cloudformation/resources/test_apigateway.snapshot.json deleted file mode 100644 index e14201655265..000000000000 --- c/tests/aws/services/cloudformation/resources/test_apigateway.snapshot.json +++ /dev/null @@ -1,795 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_integration": { - "recorded-date": "15-07-2025, 19:28:45", - "recorded-content": { - "rest_api": { - "apiKeySource": "HEADER", - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "method": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "GET", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "connectionType": "INTERNET", - "httpMethod": "GET", - "integrationResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent,X-Amzn-Trace-Id'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,POST'", - "method.response.header.Access-Control-Allow-Origin": "'*'" - }, - "statusCode": "200" - } - }, - "passthroughBehavior": "WHEN_NO_MATCH", - "timeoutInMillis": 29000, - "type": "HTTP_PROXY", - "uri": "http://www.example.com" - }, - "methodResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Headers": true, - "method.response.header.Access-Control-Allow-Methods": true, - "method.response.header.Access-Control-Allow-Origin": true - }, - "statusCode": "200" - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_api_gateway_with_policy_as_dict": { - "recorded-date": "15-07-2025, 19:30:54", - "recorded-content": { - "rest-api": { - "apiKeySource": "HEADER", - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "policy": { - "Statement": [ - { - "Action": "*", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Resource": "*", - "Sid": "AllowInvokeAPI" - } - ], - "Version": "2012-10-17" - }, - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "MyApi", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_from_s3_swagger": { - "recorded-date": "15-07-2025, 20:30:26", - "recorded-content": { - "rest-api": { - "apiKeySource": "HEADER", - "binaryMediaTypes": [ - "application/pdf", - "image/gif", - "image/jpg", - "image/png" - ], - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "REGIONAL" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "ApiGatewayRestApi", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "version": "1.0.0", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "resources": { - "items": [ - { - "id": "", - "path": "/" - }, - { - "id": "", - "parentId": "", - "path": "/pets", - "pathPart": "pets", - "resourceMethods": { - "GET": {} - } - }, - { - "id": "", - "parentId": "", - "path": "/pets/{petId}", - "pathPart": "{petId}", - "resourceMethods": { - "GET": {} - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-stage": { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "createdDate": "datetime", - "deploymentId": "", - "description": "Test Stage 123", - "lastUpdatedDate": "datetime", - "methodSettings": { - "*/*": { - "cacheDataEncrypted": false, - "cacheTtlInSeconds": 300, - "cachingEnabled": false, - "dataTraceEnabled": true, - "loggingLevel": "ERROR", - "metricsEnabled": true, - "requireAuthorizationForCacheControl": true, - "throttlingBurstLimit": 5000, - "throttlingRateLimit": 10000.0, - "unauthorizedCacheControlHeaderStrategy": "SUCCEED_WITH_RESPONSE_HEADER" - } - }, - "stageName": "local", - "tags": { - "aws:cloudformation:logical-id": "ApiGWStage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "tracingEnabled": true, - "variables": { - "TestCasing": "myvar", - "testCasingTwo": "myvar2", - "testlowcasing": "myvar3" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_models": { - "recorded-date": "21-06-2024, 00:09:05", - "recorded-content": { - "get-resources": { - "items": [ - { - "id": "", - "path": "/" - }, - { - "id": "", - "parentId": "", - "path": "/validated", - "pathPart": "validated", - "resourceMethods": { - "ANY": {} - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-models": { - "items": [ - { - "contentType": "application/json", - "description": "This is a default empty schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object" - } - }, - { - "contentType": "application/json", - "description": "This is a default error schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - }, - { - "contentType": "application/json", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "", - "type": "object", - "properties": { - "integer_field": { - "type": "number" - }, - "string_field": { - "type": "string" - } - }, - "required": [ - "string_field", - "integer_field" - ] - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-request-validators": { - "items": [ - { - "id": "", - "name": "", - "validateRequestBody": true, - "validateRequestParameters": false - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-method-any": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "ANY", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "integrationResponses": { - "200": { - "statusCode": "200" - } - }, - "passthroughBehavior": "NEVER", - "requestTemplates": { - "application/json": { - "statusCode": 200 - } - }, - "timeoutInMillis": 29000, - "type": "MOCK" - }, - "methodResponses": { - "200": { - "statusCode": "200" - } - }, - "requestModels": { - "application/json": "" - }, - "requestValidatorId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_with_apigateway_resources": { - "recorded-date": "20-06-2024, 23:54:26", - "recorded-content": { - "get-method-post": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "POST", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "integrationResponses": { - "202": { - "responseTemplates": { - "application/json": { - "operation": "celeste_account_create", - "data": { - "key": "123e4567-e89b-12d3-a456-426614174000", - "secret": "123e4567-e89b-12d3-a456-426614174000" - } - } - }, - "selectionPattern": "2\\d{2}", - "statusCode": "202" - }, - "404": { - "responseTemplates": { - "application/json": { - "message": "Not Found" - } - }, - "selectionPattern": "404", - "statusCode": "404" - }, - "500": { - "responseTemplates": { - "application/json": { - "message": "Unknown " - } - }, - "selectionPattern": "5\\d{2}", - "statusCode": "500" - } - }, - "passthroughBehavior": "WHEN_NO_TEMPLATES", - "requestTemplates": { - "application/json": "" - }, - "timeoutInMillis": 29000, - "type": "MOCK" - }, - "methodResponses": { - "202": { - "responseModels": { - "application/json": "" - }, - "statusCode": "202" - }, - "500": { - "responseModels": { - "application/json": "" - }, - "statusCode": "500" - } - }, - "operationName": "create_account", - "requestParameters": { - "method.request.path.account": true - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-models": { - "items": [ - { - "contentType": "application/json", - "description": "This is a default empty schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object" - } - }, - { - "contentType": "application/json", - "description": "This is a default error schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - }, - { - "contentType": "application/json", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "AccountCreate", - "type": "object", - "properties": { - "field": { - "type": "string" - }, - "email": { - "format": "email", - "type": "string" - } - } - } - }, - { - "contentType": "application/json", - "id": "", - "name": "", - "schema": {} - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_rest_api_serverless_ref_resolving": { - "recorded-date": "06-07-2023, 21:01:08", - "recorded-content": { - "get-resources": { - "items": [ - { - "id": "", - "path": "/", - "resourceMethods": { - "GET": {}, - "OPTIONS": {} - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-authorizers": { - "items": [ - { - "authType": "custom", - "authorizerUri": "", - "id": "", - "identitySource": "method.request.header.Authorization", - "name": "", - "type": "TOKEN" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-method-GET": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "GET", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "httpMethod": "POST", - "passthroughBehavior": "WHEN_NO_MATCH", - "timeoutInMillis": 29000, - "type": "AWS_PROXY", - "uri": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-method-OPTIONS": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "OPTIONS", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "integrationResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Credentials": "'true'", - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,Authorization,x-test-header'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,POST,GET,PUT'", - "method.response.header.Access-Control-Allow-Origin": "'http://localhost:8000'" - }, - "responseTemplates": { - "application/json": {} - }, - "statusCode": "200" - } - }, - "passthroughBehavior": "WHEN_NO_MATCH", - "requestTemplates": { - "application/json": { - "statusCode": 200 - } - }, - "timeoutInMillis": 29000, - "type": "MOCK" - }, - "methodResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Credentials": false, - "method.response.header.Access-Control-Allow-Headers": false, - "method.response.header.Access-Control-Allow-Methods": false, - "method.response.header.Access-Control-Allow-Origin": false - }, - "statusCode": "200" - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_usage_plan": { - "recorded-date": "13-09-2024, 09:57:21", - "recorded-content": { - "usage-plan": { - "apiStages": [ - { - "apiId": "", - "stage": "" - } - ], - "id": "", - "name": "", - "quota": { - "limit": 5000, - "offset": 0, - "period": "MONTH" - }, - "tags": { - "aws:cloudformation:logical-id": "UsagePlan", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "test": "value1", - "test2": "hardcoded" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated-usage-plan": { - "apiStages": [ - { - "apiId": "", - "stage": "" - } - ], - "id": "", - "name": "", - "quota": { - "limit": 7000, - "offset": 0, - "period": "MONTH" - }, - "tags": { - "aws:cloudformation:logical-id": "UsagePlan", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "test": "value-updated", - "test2": "hardcoded" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_apigateway_stage": { - "recorded-date": "07-11-2024, 05:35:20", - "recorded-content": { - "created-stage": { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "createdDate": "datetime", - "deploymentId": "", - "lastUpdatedDate": "datetime", - "methodSettings": {}, - "stageName": "dev", - "tags": { - "aws:cloudformation:logical-id": "Stage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "tracingEnabled": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated-stage": { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "createdDate": "datetime", - "deploymentId": "", - "lastUpdatedDate": "datetime", - "methodSettings": {}, - "stageName": "dev", - "tags": { - "aws:cloudformation:logical-id": "Stage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "tracingEnabled": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_swagger_import": { - "recorded-date": "05-05-2025, 14:23:13", - "recorded-content": { - "imported-api": { - "apiKeySource": "HEADER", - "binaryMediaTypes": [ - "*/*" - ], - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "Api", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "version": "1.0" - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_rest_api": { - "recorded-date": "05-05-2025, 14:50:14", - "recorded-content": { - "rest-api": { - "apiKeySource": "HEADER", - "binaryMediaTypes": [ - "image/jpg", - "image/png" - ], - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "DemoApi_dev", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_apigateway_deployment_canary_settings": { - "recorded-date": "23-07-2025, 23:07:05", - "recorded-content": { - "get-stages": { - "item": [ - { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "canarySettings": { - "deploymentId": "", - "percentTraffic": 50.0, - "stageVariableOverrides": { - "lambdaAlias": "Dev" - }, - "useStageCache": false - }, - "createdDate": "datetime", - "deploymentId": "", - "lastUpdatedDate": "datetime", - "methodSettings": {}, - "stageName": "prod", - "tags": { - "aws:cloudformation:logical-id": "Stage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "tracingEnabled": false, - "variables": { - "lambdaAlias": "Prod" - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-deployments": { - "items": [ - { - "createdDate": "datetime", - "description": "basic deployment", - "id": "" - }, - { - "createdDate": "datetime", - "description": "canary description", - "id": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_apigateway.validation.json i/tests/aws/services/cloudformation/resources/test_apigateway.validation.json deleted file mode 100644 index 4008e85bfca4..000000000000 --- c/tests/aws/services/cloudformation/resources/test_apigateway.validation.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_apigateway.py::TestServerlessApigwLambda::test_serverless_like_deployment_with_update": { - "last_validated_date": "2024-02-19T08:55:12+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_api_gateway_with_policy_as_dict": { - "last_validated_date": "2025-07-15T19:30:59+00:00", - "durations_in_seconds": { - "setup": 0.47, - "call": 11.81, - "teardown": 4.71, - "total": 16.99 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_apigateway_deployment_canary_settings": { - "last_validated_date": "2025-07-23T23:07:16+00:00", - "durations_in_seconds": { - "setup": 0.44, - "call": 22.5, - "teardown": 11.11, - "total": 34.05 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_rest_api": { - "last_validated_date": "2025-05-05T14:50:14+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_swagger_import": { - "last_validated_date": "2025-05-05T14:23:13+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_from_s3_swagger": { - "last_validated_date": "2025-07-15T20:30:33+00:00", - "durations_in_seconds": { - "setup": 1.02, - "call": 18.79, - "teardown": 8.1, - "total": 27.91 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_integration": { - "last_validated_date": "2025-07-15T19:28:58+00:00", - "durations_in_seconds": { - "setup": 0.46, - "call": 26.77, - "teardown": 13.21, - "total": 40.44 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_models": { - "last_validated_date": "2024-06-21T00:09:05+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_with_apigateway_resources": { - "last_validated_date": "2024-06-20T23:54:26+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_rest_api_serverless_ref_resolving": { - "last_validated_date": "2023-07-06T19:01:08+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_apigateway_stage": { - "last_validated_date": "2024-11-07T05:35:20+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_usage_plan": { - "last_validated_date": "2024-09-13T09:57:21+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_cloudwatch.snapshot.json i/tests/aws/services/cloudformation/resources/test_cloudwatch.snapshot.json deleted file mode 100644 index 8a0c497877d0..000000000000 --- c/tests/aws/services/cloudformation/resources/test_cloudwatch.snapshot.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_creation": { - "recorded-date": "25-09-2023, 10:28:42", - "recorded-content": { - "alarm_outputs": { - "AlarmArnFromAtt": "arn::cloudwatch::111111111111:alarm:", - "AlarmName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_composite_alarm_creation": { - "recorded-date": "16-07-2024, 10:41:22", - "recorded-content": { - "composite_alarm": [ - { - "ActionsEnabled": true, - "AlarmActions": [ - "arn::sns::111111111111:" - ], - "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighResourceUsage", - "AlarmConfigurationUpdatedTimestamp": "timestamp", - "AlarmDescription": "Indicates that the system resource usage is high while no known deployment is in progress", - "AlarmName": "HighResourceUsage", - "AlarmRule": "(ALARM(HighCPUUsage) OR ALARM(HighMemoryUsage))", - "InsufficientDataActions": [], - "OKActions": [], - "StateReason": "arn::cloudwatch::111111111111:alarm:HighResourceUsage was created and its alarm rule evaluates to OK", - "StateReasonData": { - "triggeringAlarms": [ - { - "arn": "arn::cloudwatch::111111111111:alarm:HighCPUUsage", - "state": { - "value": "INSUFFICIENT_DATA", - "timestamp": "date" - } - }, - { - "arn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", - "state": { - "value": "INSUFFICIENT_DATA", - "timestamp": "date" - } - } - ] - }, - "StateUpdatedTimestamp": "timestamp", - "StateValue": "OK", - "StateTransitionedTimestamp": "timestamp" - } - ], - "metric_alarm": [ - { - "AlarmName": "HighMemoryUsage", - "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", - "AlarmDescription": "Memory usage is high", - "AlarmConfigurationUpdatedTimestamp": "timestamp", - "ActionsEnabled": true, - "OKActions": [], - "AlarmActions": [], - "InsufficientDataActions": [], - "StateValue": "INSUFFICIENT_DATA", - "StateReason": "Unchecked: Initial alarm creation", - "StateUpdatedTimestamp": "timestamp", - "MetricName": "MemoryUsage", - "Namespace": "CustomNamespace", - "Statistic": "Average", - "Dimensions": [], - "Period": 60, - "EvaluationPeriods": 1, - "Threshold": 65.0, - "ComparisonOperator": "GreaterThanThreshold", - "TreatMissingData": "breaching", - "StateTransitionedTimestamp": "timestamp" - } - ] - } - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_no_statistic": { - "recorded-date": "27-11-2023, 10:08:09", - "recorded-content": {} - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_ext_statistic": { - "recorded-date": "27-11-2023, 10:09:46", - "recorded-content": { - "simple_alarm": [ - { - "AlarmName": "", - "AlarmArn": "arn::cloudwatch::111111111111:alarm:", - "AlarmDescription": "uses extended statistic", - "AlarmConfigurationUpdatedTimestamp": "timestamp", - "ActionsEnabled": true, - "OKActions": [], - "AlarmActions": [], - "InsufficientDataActions": [], - "StateValue": "INSUFFICIENT_DATA", - "StateReason": "Unchecked: Initial alarm creation", - "StateUpdatedTimestamp": "timestamp", - "MetricName": "Duration", - "Namespace": "", - "ExtendedStatistic": "p99", - "Dimensions": [ - { - "Name": "FunctionName", - "Value": "my-function" - } - ], - "Period": 300, - "Unit": "Count", - "EvaluationPeriods": 3, - "DatapointsToAlarm": 3, - "Threshold": 10.0, - "ComparisonOperator": "GreaterThanOrEqualToThreshold", - "TreatMissingData": "ignore", - "StateTransitionedTimestamp": "timestamp" - } - ] - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_cloudwatch.validation.json i/tests/aws/services/cloudformation/resources/test_cloudwatch.validation.json deleted file mode 100644 index 73801e4f3c74..000000000000 --- c/tests/aws/services/cloudformation/resources/test_cloudwatch.validation.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_creation": { - "last_validated_date": "2023-09-25T08:28:42+00:00" - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_ext_statistic": { - "last_validated_date": "2023-11-27T09:09:46+00:00" - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_composite_alarm_creation": { - "last_validated_date": "2024-07-16T10:43:30+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_dynamodb.snapshot.json i/tests/aws/services/cloudformation/resources/test_dynamodb.snapshot.json deleted file mode 100644 index 3f6efc6628fb..000000000000 --- c/tests/aws/services/cloudformation/resources/test_dynamodb.snapshot.json +++ /dev/null @@ -1,349 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_default_name_for_table": { - "recorded-date": "28-08-2023, 12:34:19", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "keyName", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "keyName", - "KeyType": "HASH" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_tags_of_resource": { - "Tags": [ - { - "Key": "TagKey1", - "Value": "TagValue1" - }, - { - "Key": "TagKey2", - "Value": "TagValue2" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { - "recorded-date": "28-08-2023, 12:34:41", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", - "LatestStreamLabel": "", - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamEnabled": true, - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { - "recorded-date": "28-08-2023, 12:35:02", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingModeSummary": { - "BillingMode": "PAY_PER_REQUEST", - "LastUpdateToPayPerRequestDateTime": "datetime" - }, - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", - "LatestStreamLabel": "", - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - }, - "StreamSpecification": { - "StreamEnabled": true, - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table": { - "recorded-date": "01-12-2023, 12:54:13", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "keyName", - "AttributeType": "S" - } - ], - "BillingModeSummary": { - "BillingMode": "PAY_PER_REQUEST", - "LastUpdateToPayPerRequestDateTime": "datetime" - }, - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "keyName", - "KeyType": "HASH" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_ttl_cdk": { - "recorded-date": "14-02-2024, 13:29:07", - "recorded-content": { - "table": { - "TimeToLiveDescription": { - "AttributeName": "expire_at", - "TimeToLiveStatus": "ENABLED" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { - "recorded-date": "12-03-2024, 15:42:18", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "pk", - "AttributeType": "S" - }, - { - "AttributeName": "sk", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "pk", - "KeyType": "HASH" - }, - { - "AttributeName": "sk", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 1, - "WriteCapacityUnits": 1 - }, - "SSEDescription": { - "KMSMasterKeyArn": "", - "SSEType": "KMS", - "Status": "ENABLED" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { - "recorded-date": "12-03-2024, 15:44:36", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "gsi1pk", - "AttributeType": "S" - }, - { - "AttributeName": "gsi1sk", - "AttributeType": "S" - }, - { - "AttributeName": "pk", - "AttributeType": "S" - }, - { - "AttributeName": "sk", - "AttributeType": "S" - } - ], - "BillingModeSummary": { - "BillingMode": "PAY_PER_REQUEST", - "LastUpdateToPayPerRequestDateTime": "datetime" - }, - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "GlobalSecondaryIndexes": [ - { - "IndexArn": "arn::dynamodb::111111111111:table//index/GSI1", - "IndexName": "GSI1", - "IndexSizeBytes": 0, - "IndexStatus": "ACTIVE", - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "gsi1pk", - "KeyType": "HASH" - }, - { - "AttributeName": "gsi1sk", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - } - } - ], - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "pk", - "KeyType": "HASH" - }, - { - "AttributeName": "sk", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - }, - "SSEDescription": { - "KMSMasterKeyArn": "", - "SSEType": "KMS", - "Status": "ENABLED" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableClassSummary": { - "TableClass": "STANDARD" - }, - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_dynamodb.validation.json i/tests/aws/services/cloudformation/resources/test_dynamodb.validation.json deleted file mode 100644 index fc40777d4d84..000000000000 --- c/tests/aws/services/cloudformation/resources/test_dynamodb.validation.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { - "last_validated_date": "2023-08-28T10:35:02+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { - "last_validated_date": "2023-08-28T10:34:41+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_default_name_for_table": { - "last_validated_date": "2023-08-28T10:34:19+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table": { - "last_validated_date": "2023-12-01T11:54:13+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { - "last_validated_date": "2024-03-12T15:44:36+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { - "last_validated_date": "2024-03-12T15:42:18+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_ttl_cdk": { - "last_validated_date": "2024-02-14T13:29:07+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_ec2.snapshot.json i/tests/aws/services/cloudformation/resources/test_ec2.snapshot.json deleted file mode 100644 index bbdc8564773b..000000000000 --- c/tests/aws/services/cloudformation/resources/test_ec2.snapshot.json +++ /dev/null @@ -1,310 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { - "recorded-date": "13-02-2023, 17:13:41", - "recorded-content": { - "outputs": { - "IdAttachment": "", - "RefAttachment": "" - }, - "description": { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LastUpdatedTimestamp": "timestamp", - "LogicalResourceId": "Gateway", - "Metadata": {}, - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::EC2::InternetGateway", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_dhcp_options": { - "recorded-date": "19-10-2023, 14:51:28", - "recorded-content": { - "description": { - "DhcpConfigurations": [ - { - "Key": "domain-name", - "Values": [ - { - "Value": "example.com" - } - ] - }, - { - "Key": "domain-name-servers", - "Values": [ - { - "Value": "AmazonProvidedDNS" - } - ] - }, - { - "Key": "netbios-name-servers", - "Values": [ - { - "Value": "10.2.5.1" - } - ] - }, - { - "Key": "netbios-node-type", - "Values": [ - { - "Value": "2" - } - ] - }, - { - "Key": "ntp-servers", - "Values": [ - { - "Value": "10.2.5.1" - } - ] - } - ], - "DhcpOptionsId": "", - "OwnerId": "111111111111", - "Tags": [ - { - "Key": "project", - "Value": "123" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "myDhcpOptions" - }, - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-698b113f" - }, - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-698b113f/d892a0f0-6eb8-11ee-ab19-0a5372e03565" - } - ] - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_transit_gateway_attachment": { - "recorded-date": "08-04-2025, 10:51:02", - "recorded-content": { - "attachment": { - "Association": { - "State": "associated", - "TransitGatewayRouteTableId": "" - }, - "CreationTime": "datetime", - "ResourceId": "", - "ResourceOwnerId": "111111111111", - "ResourceType": "vpc", - "State": "available", - "Tags": [ - { - "Key": "Name", - "Value": "example-tag" - } - ], - "TransitGatewayAttachmentId": "", - "TransitGatewayId": "", - "TransitGatewayOwnerId": "111111111111" - }, - "gateway": { - "CreationTime": "datetime", - "Description": "TGW Route Integration Test", - "Options": { - "AmazonSideAsn": 65000, - "AssociationDefaultRouteTableId": "", - "AutoAcceptSharedAttachments": "disable", - "DefaultRouteTableAssociation": "enable", - "DefaultRouteTablePropagation": "enable", - "DnsSupport": "enable", - "MulticastSupport": "disable", - "PropagationDefaultRouteTableId": "", - "SecurityGroupReferencingSupport": "disable", - "VpnEcmpSupport": "enable" - }, - "OwnerId": "111111111111", - "State": "available", - "Tags": [ - { - "Key": "Application", - "Value": "arn::cloudformation::111111111111:stack/stack-31597705/521e4e40-ecce-11ee-806c-0affc1ff51e7" - } - ], - "TransitGatewayArn": "arn::ec2::111111111111:transit-gateway/", - "TransitGatewayId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_with_route_table": { - "recorded-date": "19-06-2024, 16:48:31", - "recorded-content": { - "route_table": { - "RouteTables": [ - { - "Associations": [], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "100.0.0.0/20", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "Tags": { - "aws:cloudformation:logical-id": "RouteTable", - "aws:cloudformation:stack-id": "", - "aws:cloudformation:stack-name": "", - "env": "production" - }, - "VpcId": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { - "recorded-date": "01-07-2024, 20:10:52", - "recorded-content": { - "tags": { - "Name": "Suspicious Route Table" - }, - "route_table": { - "Associations": [], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "10.0.0.0/16", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "VpcId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation": { - "recorded-date": "01-07-2024, 20:13:48", - "recorded-content": { - "tags": { - "Name": "Suspicious Route table" - }, - "route_table": { - "Associations": [], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "10.0.0.0/16", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "VpcId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { - "recorded-date": "02-07-2024, 15:29:41", - "recorded-content": { - "route_table": { - "Associations": [ - { - "AssociationState": { - "State": "associated" - }, - "Main": false, - "RouteTableAssociationId": "", - "RouteTableId": "", - "SubnetId": "" - }, - { - "AssociationState": { - "State": "associated" - }, - "Main": false, - "RouteTableAssociationId": "", - "RouteTableId": "", - "SubnetId": "" - } - ], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "100.0.0.0/20", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "Tags": [ - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-2264231d/d12f4090-3887-11ef-ba9f-0e78e2279133" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "RouteTable" - }, - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-2264231d" - }, - { - "Key": "env", - "Value": "production" - } - ], - "VpcId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { - "recorded-date": "19-07-2024, 15:53:16", - "recorded-content": { - "references": { - "SGWithVpcIdGroupId": "", - "SGWithVpcIdRef": "", - "SGWithoutVpcIdGroupId": "", - "SGWithoutVpcIdRef": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_keypair_create_import": { - "recorded-date": "12-08-2024, 21:51:36", - "recorded-content": { - "outputs": { - "GeneratedKeyPairFingerprint": "", - "GeneratedKeyPairName": "", - "ImportedKeyPairFingerprint": "4LmcYnyBOqlloHZ5TKAxfa8BgMK2wL6WeOOTvXVdhmw=", - "ImportedKeyPairName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_gateway_attachment": { - "recorded-date": "18-07-2025, 20:52:38", - "recorded-content": { - "attachment-1-ref": "IGW|", - "attachment-2-ref": "VGW|" - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_ec2.validation.json i/tests/aws/services/cloudformation/resources/test_ec2.validation.json deleted file mode 100644 index f02183886320..000000000000 --- c/tests/aws/services/cloudformation/resources/test_ec2.validation.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ec2.py::test_cfn_update_ec2_instance_type": { - "last_validated_date": "2024-06-19T19:56:42+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { - "last_validated_date": "2024-07-02T15:29:41+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_dhcp_options": { - "last_validated_date": "2023-10-19T12:51:28+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { - "last_validated_date": "2024-07-19T15:53:16+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { - "last_validated_date": "2023-02-13T16:13:41+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_keypair_create_import": { - "last_validated_date": "2024-08-12T21:51:36+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation": { - "last_validated_date": "2024-07-01T20:13:48+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { - "last_validated_date": "2024-07-01T20:10:52+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_transit_gateway_attachment": { - "last_validated_date": "2025-04-08T10:51:02+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_creates_default_sg": { - "last_validated_date": "2024-04-01T11:21:54+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_gateway_attachment": { - "last_validated_date": "2025-07-18T20:50:13+00:00", - "durations_in_seconds": { - "setup": 1.21, - "call": 24.77, - "teardown": 6.47, - "total": 32.45 - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_with_route_table": { - "last_validated_date": "2024-06-19T16:48:31+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_elasticsearch.snapshot.json i/tests/aws/services/cloudformation/resources/test_elasticsearch.snapshot.json deleted file mode 100644 index 68c60ae22ea8..000000000000 --- c/tests/aws/services/cloudformation/resources/test_elasticsearch.snapshot.json +++ /dev/null @@ -1,312 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { - "recorded-date": "02-07-2024, 17:30:21", - "recorded-content": { - "domain": { - "DomainStatus": { - "ARN": "arn::es::111111111111:domain/", - "AccessPolicies": "", - "AdvancedOptions": { - "override_main_response_version": "false", - "rest.action.multi.allow_explicit_index": "true" - }, - "AdvancedSecurityOptions": { - "AnonymousAuthEnabled": false, - "Enabled": false, - "InternalUserDatabaseEnabled": false - }, - "AutoTuneOptions": { - "State": "ENABLED" - }, - "ChangeProgressDetails": { - "ChangeId": "", - "ConfigChangeStatus": "ApplyingChanges", - "InitiatedBy": "CUSTOMER", - "LastUpdatedTime": "datetime", - "StartTime": "datetime" - }, - "CognitoOptions": { - "Enabled": false - }, - "Created": true, - "Deleted": false, - "DomainEndpointOptions": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "" - }, - "DomainId": "111111111111/", - "DomainName": "", - "DomainProcessingStatus": "Creating", - "EBSOptions": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 20, - "VolumeType": "gp2" - }, - "ElasticsearchClusterConfig": { - "ColdStorageOptions": { - "Enabled": false - }, - "DedicatedMasterCount": 3, - "DedicatedMasterEnabled": true, - "DedicatedMasterType": "m3.medium.elasticsearch", - "InstanceCount": 2, - "InstanceType": "m3.medium.elasticsearch", - "WarmEnabled": false, - "ZoneAwarenessConfig": { - "AvailabilityZoneCount": 2 - }, - "ZoneAwarenessEnabled": true - }, - "ElasticsearchVersion": "7.10", - "EncryptionAtRestOptions": { - "Enabled": false - }, - "Endpoint": "search--4kyrgtn4a3gwrja6k4o7nvcrha..es.amazonaws.com", - "ModifyingProperties": [ - { - "ActiveValue": "", - "Name": "AdvancedOptions", - "PendingValue": { - "override_main_response_version": "false", - "rest.action.multi.allow_explicit_index": "true" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.AnonymousAuthDisableDate", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.AnonymousAuthEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.InternalUserDatabaseEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.JWTOptions", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.MasterUserOptions", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.SAMLOptions", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.ColdStorageOptions", - "PendingValue": { - "Enabled": false - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.DedicatedMasterCount", - "PendingValue": "3", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.DedicatedMasterEnabled", - "PendingValue": "true", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.DedicatedMasterType", - "PendingValue": "m3.medium.elasticsearch", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.InstanceCount", - "PendingValue": "2", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.InstanceType", - "PendingValue": "m3.medium.elasticsearch", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.MultiAZWithStandbyEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmCount", - "PendingValue": "", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmStorage", - "PendingValue": "", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmType", - "PendingValue": "", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.ZoneAwarenessEnabled", - "PendingValue": "true", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchVersion", - "PendingValue": "7.10", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "IPAddressType", - "PendingValue": "ipv4", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "TAGS", - "PendingValue": { - "k1": "v1", - "k2": "v2" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "DomainEndpointOptions", - "PendingValue": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "EBSOptions", - "PendingValue": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 20, - "VolumeType": "gp2" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "EncryptionAtRestOptions", - "PendingValue": { - "Enabled": false - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "NodeToNodeEncryptionOptions", - "PendingValue": { - "Enabled": false - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "OffPeakWindowOptions", - "PendingValue": { - "Enabled": true, - "OffPeakWindow": { - "WindowStartTime": { - "Hours": 2, - "Minutes": 0 - } - } - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "SnapshotOptions", - "PendingValue": { - "AutomatedSnapshotStartHour": 0 - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "SoftwareUpdateOptions", - "PendingValue": { - "AutoSoftwareUpdateEnabled": false - }, - "ValueType": "STRINGIFIED_JSON" - } - ], - "NodeToNodeEncryptionOptions": { - "Enabled": false - }, - "Processing": false, - "ServiceSoftwareOptions": { - "AutomatedUpdateDate": "datetime", - "Cancellable": false, - "CurrentVersion": "", - "Description": "", - "NewVersion": "", - "OptionalDeployment": true, - "UpdateAvailable": false, - "UpdateStatus": "COMPLETED" - }, - "SnapshotOptions": { - "AutomatedSnapshotStartHour": 0 - }, - "UpgradeProcessing": false - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "tags": [ - { - "Key": "k1", - "Value": "v1" - }, - { - "Key": "k2", - "Value": "v2" - } - ] - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_elasticsearch.validation.json i/tests/aws/services/cloudformation/resources/test_elasticsearch.validation.json deleted file mode 100644 index 9d7316454a5d..000000000000 --- c/tests/aws/services/cloudformation/resources/test_elasticsearch.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { - "last_validated_date": "2024-07-02T17:30:21+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_events.snapshot.json i/tests/aws/services/cloudformation/resources/test_events.snapshot.json deleted file mode 100644 index 5d8d88bbf327..000000000000 --- c/tests/aws/services/cloudformation/resources/test_events.snapshot.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_properties": { - "recorded-date": "01-12-2023, 15:03:52", - "recorded-content": { - "outputs": { - "RuleWithNameArn": "arn::events::111111111111:rule//", - "RuleWithNameRef": "|", - "RuleWithoutBusArn": "arn::events::111111111111:rule/", - "RuleWithoutBusRef": "", - "RuleWithoutNameArn": "arn::events::111111111111:rule//", - "RuleWithoutNameRef": "|" - } - } - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_pattern_transformation": { - "recorded-date": "08-11-2024, 15:49:06", - "recorded-content": { - "rule": { - "Arn": "arn::events::111111111111:rule/", - "CreatedBy": "111111111111", - "EventBusName": "default", - "EventPattern": { - "detail-type": [ - "Object Created" - ], - "source": [ - "aws.s3" - ], - "detail": { - "bucket": { - "name": [ - "test-s3-bucket" - ] - }, - "object": { - "key": [ - { - "suffix": "/test.json" - } - ] - } - } - }, - "Name": "", - "State": "ENABLED", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_event_rule_creation_without_target": { - "recorded-date": "22-01-2025, 14:15:04", - "recorded-content": { - "describe_rule": { - "Arn": "arn::events::111111111111:rule/event-rule-name", - "CreatedBy": "111111111111", - "EventBusName": "default", - "Name": "event-rule-name", - "ScheduleExpression": "cron(0 1 * * ? *)", - "State": "ENABLED", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_events.validation.json i/tests/aws/services/cloudformation/resources/test_events.validation.json deleted file mode 100644 index 522c90d76178..000000000000 --- c/tests/aws/services/cloudformation/resources/test_events.validation.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_events.py::test_cfn_event_api_destination_resource": { - "last_validated_date": "2024-04-16T06:36:56+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_event_rule_creation_without_target": { - "last_validated_date": "2025-01-22T14:15:04+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_eventbus_policy_statement": { - "last_validated_date": "2024-11-14T21:46:23+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_pattern_transformation": { - "last_validated_date": "2024-11-08T15:49:06+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_properties": { - "last_validated_date": "2023-12-01T14:03:52+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_firehose.snapshot.json i/tests/aws/services/cloudformation/resources/test_firehose.snapshot.json deleted file mode 100644 index 60c18238d4a2..000000000000 --- c/tests/aws/services/cloudformation/resources/test_firehose.snapshot.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { - "recorded-date": "14-09-2022, 11:19:29", - "recorded-content": { - "outputs": { - "deliveryStreamRef": "" - }, - "delivery_stream": { - "DeliveryStreamDescription": { - "CreateTimestamp": "timestamp", - "DeliveryStreamARN": "arn::firehose::111111111111:deliverystream/", - "DeliveryStreamName": "", - "DeliveryStreamStatus": "ACTIVE", - "DeliveryStreamType": "KinesisStreamAsSource", - "Destinations": [ - { - "DestinationId": "destinationId-000000000001", - "ExtendedS3DestinationDescription": { - "BucketARN": "arn::s3:::", - "BufferingHints": { - "IntervalInSeconds": 60, - "SizeInMBs": 64 - }, - "CloudWatchLoggingOptions": { - "Enabled": false - }, - "CompressionFormat": "UNCOMPRESSED", - "DataFormatConversionConfiguration": { - "Enabled": false - }, - "DynamicPartitioningConfiguration": { - "Enabled": true, - "RetryOptions": { - "DurationInSeconds": 300 - } - }, - "EncryptionConfiguration": { - "NoEncryptionConfig": "NoEncryption" - }, - "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", - "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", - "ProcessingConfiguration": { - "Enabled": true, - "Processors": [ - { - "Parameters": [ - { - "ParameterName": "MetadataExtractionQuery", - "ParameterValue": "{s3Prefix: .tableName}" - }, - { - "ParameterName": "JsonParsingEngine", - "ParameterValue": "JQ-1.6" - } - ], - "Type": "MetadataExtraction" - } - ] - }, - "RoleARN": "arn::iam::111111111111:role/", - "S3BackupMode": "Disabled" - }, - "S3DestinationDescription": { - "BucketARN": "arn::s3:::", - "BufferingHints": { - "IntervalInSeconds": 60, - "SizeInMBs": 64 - }, - "CloudWatchLoggingOptions": { - "Enabled": false - }, - "CompressionFormat": "UNCOMPRESSED", - "EncryptionConfiguration": { - "NoEncryptionConfig": "NoEncryption" - }, - "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", - "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", - "RoleARN": "arn::iam::111111111111:role/" - } - } - ], - "HasMoreDestinations": false, - "Source": { - "KinesisStreamSourceDescription": { - "DeliveryStartTimestamp": "timestamp", - "KinesisStreamARN": "arn::kinesis::111111111111:stream/", - "RoleARN": "arn::iam::111111111111:role/" - } - }, - "VersionId": "1" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_firehose.validation.json i/tests/aws/services/cloudformation/resources/test_firehose.validation.json deleted file mode 100644 index 00fb017ef9f1..000000000000 --- c/tests/aws/services/cloudformation/resources/test_firehose.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { - "last_validated_date": "2022-09-14T09:19:29+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_kinesis.snapshot.json i/tests/aws/services/cloudformation/resources/test_kinesis.snapshot.json deleted file mode 100644 index 9c1a3369a5d5..000000000000 --- c/tests/aws/services/cloudformation/resources/test_kinesis.snapshot.json +++ /dev/null @@ -1,279 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_stream_creation": { - "recorded-date": "12-09-2022, 14:11:29", - "recorded-content": { - "stack_output": { - "StreamArnFromAtt": "arn::kinesis::111111111111:stream/", - "StreamNameFromRef": "" - }, - "resource_description": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "TestStream", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Kinesis::Stream", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stream_description": { - "StreamDescription": { - "EncryptionType": "NONE", - "EnhancedMonitoring": [ - { - "ShardLevelMetrics": [] - } - ], - "HasMoreShards": false, - "RetentionPeriodHours": 24, - "Shards": [ - { - "HashKeyRange": { - "EndingHashKey": "", - "StartingHashKey": "0" - }, - "SequenceNumberRange": { - "StartingSequenceNumber": "" - }, - "ShardId": "shard-id" - } - ], - "StreamARN": "arn::kinesis::111111111111:stream/", - "StreamCreationTimestamp": "timestamp", - "StreamModeDetails": { - "StreamMode": "PROVISIONED" - }, - "StreamName": "", - "StreamStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_describe_template": { - "recorded-date": "22-05-2023, 09:25:32", - "recorded-content": { - "get_template_summary_by_url": { - "Capabilities": [ - "CAPABILITY_NAMED_IAM" - ], - "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", - "Parameters": [ - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisRoleName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "DeliveryStreamName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisStreamName", - "ParameterType": "String" - } - ], - "ResourceIdentifierSummaries": [ - { - "LogicalResourceIds": [ - "MyBucket" - ], - "ResourceIdentifiers": [ - "BucketName" - ], - "ResourceType": "AWS::S3::Bucket" - }, - { - "LogicalResourceIds": [ - "MyRole" - ], - "ResourceIdentifiers": [ - "RoleName" - ], - "ResourceType": "AWS::IAM::Role" - }, - { - "LogicalResourceIds": [ - "KinesisStream" - ], - "ResourceIdentifiers": [ - "Name" - ], - "ResourceType": "AWS::Kinesis::Stream" - }, - { - "LogicalResourceIds": [ - "DeliveryStream" - ], - "ResourceIdentifiers": [ - "DeliveryStreamName" - ], - "ResourceType": "AWS::KinesisFirehose::DeliveryStream" - } - ], - "ResourceTypes": [ - "AWS::Kinesis::Stream", - "AWS::IAM::Role", - "AWS::S3::Bucket", - "AWS::KinesisFirehose::DeliveryStream" - ], - "Version": "2010-09-09", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_template_summary_by_body": { - "Capabilities": [ - "CAPABILITY_NAMED_IAM" - ], - "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", - "Parameters": [ - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisRoleName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "DeliveryStreamName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisStreamName", - "ParameterType": "String" - } - ], - "ResourceIdentifierSummaries": [ - { - "LogicalResourceIds": [ - "MyBucket" - ], - "ResourceIdentifiers": [ - "BucketName" - ], - "ResourceType": "AWS::S3::Bucket" - }, - { - "LogicalResourceIds": [ - "MyRole" - ], - "ResourceIdentifiers": [ - "RoleName" - ], - "ResourceType": "AWS::IAM::Role" - }, - { - "LogicalResourceIds": [ - "KinesisStream" - ], - "ResourceIdentifiers": [ - "Name" - ], - "ResourceType": "AWS::Kinesis::Stream" - }, - { - "LogicalResourceIds": [ - "DeliveryStream" - ], - "ResourceIdentifiers": [ - "DeliveryStreamName" - ], - "ResourceType": "AWS::KinesisFirehose::DeliveryStream" - } - ], - "ResourceTypes": [ - "AWS::Kinesis::Stream", - "AWS::IAM::Role", - "AWS::S3::Bucket", - "AWS::KinesisFirehose::DeliveryStream" - ], - "Version": "2010-09-09", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_default_parameters_kinesis": { - "recorded-date": "02-07-2024, 18:59:10", - "recorded-content": { - "describe_stream": { - "StreamDescription": { - "EncryptionType": "NONE", - "EnhancedMonitoring": [ - { - "ShardLevelMetrics": [] - } - ], - "HasMoreShards": false, - "RetentionPeriodHours": 24, - "Shards": [ - { - "HashKeyRange": { - "EndingHashKey": "340282366920938463463374607431768211455", - "StartingHashKey": "0" - }, - "SequenceNumberRange": { - "StartingSequenceNumber": "" - }, - "ShardId": "" - } - ], - "StreamARN": "arn::kinesis::111111111111:stream/", - "StreamCreationTimestamp": "timestamp", - "StreamModeDetails": { - "StreamMode": "PROVISIONED" - }, - "StreamName": "", - "StreamStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { - "recorded-date": "02-07-2024, 19:48:27", - "recorded-content": { - "describe_kinesis_streaming_destination": { - "KinesisDataStreamDestinations": [ - { - "DestinationStatus": "ACTIVE", - "StreamArn": "arn::kinesis::111111111111:stream/EventStream" - } - ], - "TableName": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_kinesis.validation.json i/tests/aws/services/cloudformation/resources/test_kinesis.validation.json deleted file mode 100644 index d77666738707..000000000000 --- c/tests/aws/services/cloudformation/resources/test_kinesis.validation.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_cfn_handle_kinesis_firehose_resources": { - "last_validated_date": "2024-07-02T19:10:35+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_default_parameters_kinesis": { - "last_validated_date": "2024-07-02T18:59:10+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_describe_template": { - "last_validated_date": "2023-05-22T07:25:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { - "last_validated_date": "2024-07-02T19:48:27+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_stream_creation": { - "last_validated_date": "2022-09-12T12:11:29+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_kms.snapshot.json i/tests/aws/services/cloudformation/resources/test_kms.snapshot.json deleted file mode 100644 index 02881db4ddba..000000000000 --- c/tests/aws/services/cloudformation/resources/test_kms.snapshot.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kms.py::test_cfn_with_kms_resources": { - "recorded-date": "29-05-2023, 15:45:17", - "recorded-content": { - "stack-outputs": { - "KeyAlias": "", - "KeyArn": "arn::kms::111111111111:key/" - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_kms.validation.json i/tests/aws/services/cloudformation/resources/test_kms.validation.json deleted file mode 100644 index b15d0a6ab48f..000000000000 --- c/tests/aws/services/cloudformation/resources/test_kms.validation.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kms.py::test_cfn_with_kms_resources": { - "last_validated_date": "2023-05-29T13:45:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kms.py::test_deploy_stack_with_kms": { - "last_validated_date": "2024-07-02T20:23:47+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kms.py::test_kms_key_disabled": { - "last_validated_date": "2024-07-02T20:12:46+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_lambda.snapshot.json i/tests/aws/services/cloudformation/resources/test_lambda.snapshot.json deleted file mode 100644 index 484f94d6b489..000000000000 --- c/tests/aws/services/cloudformation/resources/test_lambda.snapshot.json +++ /dev/null @@ -1,1892 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_lambda.py::test_cfn_function_url": { - "recorded-date": "16-04-2024, 08:16:02", - "recorded-content": { - "url_resource": { - "StackResourceDetail": { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LastUpdatedTimestamp": "timestamp", - "LogicalResourceId": "", - "Metadata": {}, - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Url", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "url_config": { - "AuthType": "NONE", - "CreationTime": "date", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionUrl": "", - "InvokeMode": "BUFFERED", - "LastModifiedTime": "date", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "exception_url_config_nonexistent_version": { - "Error": { - "Code": "ResourceNotFoundException", - "Message": "The resource you requested does not exist." - }, - "Message": "The resource you requested does not exist.", - "Type": "User", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 404 - } - }, - "url_config_arn": { - "AuthType": "NONE", - "CreationTime": "date", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionUrl": "", - "InvokeMode": "BUFFERED", - "LastModifiedTime": "date", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "response_headers": { - "connection": "keep-alive", - "content-length": "17", - "content-type": "application/json", - "date": "date", - "x-amzn-requestid": "", - "x-amzn-trace-id": "x-amzn-trace-id" - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_alias": { - "recorded-date": "07-05-2025, 15:39:26", - "recorded-content": { - "invoke_result": { - "ExecutedVersion": "1", - "Payload": { - "function_version": "1", - "initialization_type": null - }, - "StatusCode": 200, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stack_resource_descriptions": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "FunctionAlias", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Alias", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "LambdaFunction", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "MyFnServiceRole", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "Version", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "Alias": { - "AliasArn": "arn::lambda::111111111111:function:", - "Description": "", - "FunctionVersion": "1", - "Name": "", - "RevisionId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "provisioned_concurrency_config": { - "AllocatedProvisionedConcurrentExecutions": 1, - "AvailableProvisionedConcurrentExecutions": 1, - "LastModified": "date", - "RequestedProvisionedConcurrentExecutions": 1, - "Status": "READY", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { - "recorded-date": "09-04-2024, 07:26:03", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnAllowInvokeLambdaPermissionsStacktopicF723B1A748672DB5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Permission", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fntopic09ED913A", - "PhysicalResourceId": "arn::sns::111111111111::", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SNS::Subscription", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "topic69831491", - "PhysicalResourceId": "arn::sns::111111111111:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SNS::Topic", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_topic_attributes_result": { - "Attributes": { - "DisplayName": "", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_policy_result": { - "Policy": { - "Version": "2012-10-17", - "Id": "default", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": "sns.amazonaws.com" - }, - "Action": "lambda:InvokeFunction", - "Resource": "arn::lambda::111111111111:function:", - "Condition": { - "ArnLike": { - "AWS:SourceArn": "arn::sns::111111111111:" - } - } - } - ] - }, - "RevisionId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { - "recorded-date": "30-10-2024, 14:48:16", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Policy", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnSqsEventSourceLambdaSqsSourceStackq2097017B53C3FF8C", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::EventSourceMapping", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "q14836DC8", - "PhysicalResourceId": "https://sqs..amazonaws.com/111111111111/", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SQS::Queue", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "role_policies": { - "policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "sqs:ReceiveMessage", - "sqs:ChangeMessageVisibility", - "sqs:GetQueueUrl", - "sqs:DeleteMessage", - "sqs:GetQueueAttributes" - ], - "Effect": "Allow", - "Resource": "arn::sqs::111111111111:" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", - "RoleName": "", - "ResponseMetadata": "" - } - ] - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_esm_result": { - "BatchSize": 1, - "EventSourceArn": "arn::sqs::111111111111:", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "MaximumBatchingWindowInSeconds": 0, - "State": "Enabled", - "StateTransitionReason": "USER_INITIATED", - "UUID": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_queue_atts_result": { - "Attributes": { - "ApproximateNumberOfMessages": "0", - "ApproximateNumberOfMessagesDelayed": "0", - "ApproximateNumberOfMessagesNotVisible": "0", - "CreatedTimestamp": "timestamp", - "DelaySeconds": "0", - "LastModifiedTimestamp": "timestamp", - "MaximumMessageSize": "262144", - "MessageRetentionPeriod": "345600", - "QueueArn": "arn::sqs::111111111111:", - "ReceiveMessageWaitTimeSeconds": "0", - "SqsManagedSseEnabled": "true", - "VisibilityTimeout": "30" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_role_result": { - "Role": { - "Arn": "arn::iam::111111111111:role/", - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "CreateDate": "datetime", - "Description": "", - "MaxSessionDuration": 3600, - "Path": "/", - "RoleId": "", - "RoleLastUsed": {}, - "RoleName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_attached_role_policies_result": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "PolicyName": "AWSLambdaBasicExecutionRole" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_inline_role_policies_result": { - "IsTruncated": false, - "PolicyNames": [ - "fnServiceRoleDefaultPolicy0ED5D3E5" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_code_signing_config": { - "recorded-date": "09-04-2024, 07:19:51", - "recorded-content": { - "stack_resource_descriptions": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "CodeSigningConfig", - "PhysicalResourceId": "arn::lambda::111111111111:code-signing-config:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::CodeSigningConfig", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "config": { - "CodeSigningConfig": { - "AllowedPublishers": { - "SigningProfileVersionArns": [ - "arn::signer::111111111111:/signing-profiles/test" - ] - }, - "CodeSigningConfigArn": "arn::lambda::111111111111:code-signing-config:", - "CodeSigningConfigId": "", - "CodeSigningPolicies": { - "UntrustedArtifactOnDeployment": "Enforce" - }, - "Description": "Code Signing", - "LastModified": "date" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_event_invoke_config": { - "recorded-date": "09-04-2024, 07:20:36", - "recorded-content": { - "event_invoke_config": { - "DestinationConfig": { - "OnFailure": {}, - "OnSuccess": {} - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "LastModified": "datetime", - "MaximumEventAgeInSeconds": 300, - "MaximumRetryAttempts": 1, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version": { - "recorded-date": "07-05-2025, 13:19:10", - "recorded-content": { - "invoke_result": { - "ExecutedVersion": "1", - "Payload": { - "function_version": "1" - }, - "StatusCode": 200, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnVersion7BF8AE5A", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "versions_by_fn": { - "Versions": [ - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function::$LATEST", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function_version": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { - "recorded-date": "12-10-2024, 10:46:17", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnDynamoDBEventSourceLambdaDynamodbSourceStacktable153BBA79064FDF1D", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::EventSourceMapping", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Policy", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "table8235A42E", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::DynamoDB::Table", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "role_policies": { - "policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": "dynamodb:ListStreams", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": "arn::dynamodb::111111111111:table//stream/" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", - "RoleName": "", - "ResponseMetadata": "" - } - ] - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_esm_result": { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 0, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_table_result": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", - "LatestStreamLabel": "", - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamEnabled": true, - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_stream_result": { - "StreamDescription": { - "CreationRequestDateTime": "datetime", - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "Shards": [ - { - "SequenceNumberRange": { - "StartingSequenceNumber": "starting-sequence-number" - }, - "ShardId": "shard-id" - } - ], - "StreamArn": "arn::dynamodb::111111111111:table//stream/", - "StreamLabel": "", - "StreamStatus": "ENABLED", - "StreamViewType": "NEW_AND_OLD_IMAGES", - "TableName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_role_result": { - "Role": { - "Arn": "arn::iam::111111111111:role/", - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "CreateDate": "datetime", - "Description": "", - "MaxSessionDuration": 3600, - "Path": "/", - "RoleId": "", - "RoleLastUsed": {}, - "RoleName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_attached_role_policies_result": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "PolicyName": "AWSLambdaBasicExecutionRole" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_inline_role_policies_result": { - "IsTruncated": false, - "PolicyNames": [ - "fnServiceRoleDefaultPolicy0ED5D3E5" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { - "recorded-date": "12-10-2024, 10:52:28", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnKinesisEventSourceLambdaKinesisSourceStackstream996A3395ED86A30E", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::EventSourceMapping", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Policy", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "stream19075594", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Kinesis::Stream", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "role_policies": { - "policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "kinesis:DescribeStreamSummary", - "kinesis:GetRecords", - "kinesis:GetShardIterator", - "kinesis:ListShards", - "kinesis:SubscribeToShard", - "kinesis:DescribeStream", - "kinesis:ListStreams" - ], - "Effect": "Allow", - "Resource": "arn::kinesis::111111111111:stream/" - }, - { - "Action": "kinesis:DescribeStream", - "Effect": "Allow", - "Resource": "arn::kinesis::111111111111:stream/" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", - "RoleName": "", - "ResponseMetadata": "" - } - ] - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_esm_result": { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::kinesis::111111111111:stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 10, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_stream_result": { - "StreamDescription": { - "EncryptionType": "NONE", - "EnhancedMonitoring": [ - { - "ShardLevelMetrics": [] - } - ], - "HasMoreShards": false, - "RetentionPeriodHours": 24, - "Shards": [ - { - "HashKeyRange": { - "EndingHashKey": "ending_hash", - "StartingHashKey": "starting_hash" - }, - "SequenceNumberRange": { - "StartingSequenceNumber": "starting-sequence-number" - }, - "ShardId": "shard-id" - } - ], - "StreamARN": "arn::kinesis::111111111111:stream/", - "StreamCreationTimestamp": "timestamp", - "StreamModeDetails": { - "StreamMode": "PROVISIONED" - }, - "StreamName": "", - "StreamStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_role_result": { - "Role": { - "Arn": "arn::iam::111111111111:role/", - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "CreateDate": "datetime", - "Description": "", - "MaxSessionDuration": 3600, - "Path": "/", - "RoleId": "", - "RoleLastUsed": {}, - "RoleName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_attached_role_policies_result": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "PolicyName": "AWSLambdaBasicExecutionRole" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_inline_role_policies_result": { - "IsTruncated": false, - "PolicyNames": [ - "fnServiceRoleDefaultPolicy0ED5D3E5" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { - "recorded-date": "09-04-2024, 07:25:05", - "recorded-content": { - "policy": { - "Policy": { - "Id": "default", - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Resource": "arn::lambda::111111111111:function:", - "Sid": "" - }, - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - }, - "Resource": "arn::lambda::111111111111:function:", - "Sid": "" - } - ], - "Version": "2012-10-17" - }, - "RevisionId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { - "recorded-date": "09-04-2024, 07:39:50", - "recorded-content": { - "failed-async-lambda": { - "Messages": [ - { - "Body": {}, - "MD5OfBody": "99914b932bd37a50b983c5e7c90ae93b", - "MessageId": "", - "ReceiptHandle": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { - "recorded-date": "12-10-2024, 10:42:00", - "recorded-content": { - "source_mappings": { - "EventSourceMappings": [ - { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FilterCriteria": { - "Filters": [ - { - "Pattern": { - "eventName": [ - "DELETE" - ] - } - } - ] - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 0, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated_source_mappings": { - "EventSourceMappings": [ - { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FilterCriteria": { - "Filters": [ - { - "Pattern": { - "eventName": [ - "MODIFY" - ] - } - } - ] - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 0, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_function_tags": { - "recorded-date": "01-10-2024, 12:52:51", - "recorded-content": { - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.11", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "Environment": "", - "aws:cloudformation:logical-id": "TestFunction", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "lambda:createdBy": "SAM" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_layer_crud": { - "recorded-date": "20-12-2024, 18:23:31", - "recorded-content": { - "layer-name": "", - "cfn-output": { - "LambdaArn": "arn::lambda::111111111111:function:", - "LambdaName": "", - "LayerVersionArn": "arn::lambda::111111111111:layer::1", - "LayerVersionRef": "arn::lambda::111111111111:layer::1" - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_logging_config": { - "recorded-date": "08-04-2025, 12:10:56", - "recorded-content": { - "stack_resource_descriptions": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "logical-resource-id", - "PhysicalResourceId": "physical-resource-id", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "logical-resource-id", - "PhysicalResourceId": "physical-resource-id", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "logical-resource-id", - "PhysicalResourceId": "physical-resource-id", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "logging_config": { - "ApplicationLogLevel": "INFO", - "LogFormat": "JSON", - "LogGroup": "/aws/lambda/", - "SystemLogLevel": "INFO" - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version_provisioned_concurrency": { - "recorded-date": "07-05-2025, 13:23:25", - "recorded-content": { - "invoke_result": { - "ExecutedVersion": "1", - "Payload": { - "initialization_type": "provisioned-concurrency" - }, - "StatusCode": 200, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnVersion7BF8AE5A", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "versions_by_fn": { - "Versions": [ - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function::$LATEST", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function_version": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "provisioned_concurrency_config": { - "AllocatedProvisionedConcurrentExecutions": 1, - "AvailableProvisionedConcurrentExecutions": 1, - "LastModified": "date", - "RequestedProvisionedConcurrentExecutions": 1, - "Status": "READY", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_lambda.validation.json i/tests/aws/services/cloudformation/resources/test_lambda.validation.json deleted file mode 100644 index e603d1df5aa4..000000000000 --- c/tests/aws/services/cloudformation/resources/test_lambda.validation.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaDestinations::test_generic_destination_routing[sqs-sqs]": { - "last_validated_date": "2024-12-10T16:48:04+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { - "last_validated_date": "2024-10-12T10:46:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { - "last_validated_date": "2024-10-12T10:52:28+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { - "last_validated_date": "2024-04-09T07:26:03+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { - "last_validated_date": "2024-10-30T14:48:16+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_lambda_dynamodb_event_filter": { - "last_validated_date": "2024-04-09T07:31:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_cfn_function_url": { - "last_validated_date": "2024-04-16T08:16:02+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_event_invoke_config": { - "last_validated_date": "2024-04-09T07:20:36+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_alias": { - "last_validated_date": "2025-05-07T15:39:26+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { - "last_validated_date": "2024-04-09T07:39:50+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_cfn_run": { - "last_validated_date": "2024-04-09T07:22:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_code_signing_config": { - "last_validated_date": "2024-04-09T07:19:51+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_function_tags": { - "last_validated_date": "2024-10-01T12:52:51+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_layer_crud": { - "last_validated_date": "2024-12-20T18:23:31+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_logging_config": { - "last_validated_date": "2025-04-08T12:12:01+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version": { - "last_validated_date": "2025-05-07T13:19:10+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version_provisioned_concurrency": { - "last_validated_date": "2025-05-07T13:23:25+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { - "last_validated_date": "2024-12-11T09:03:52+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { - "last_validated_date": "2024-04-09T07:25:05+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_python_lambda_code_deployed_via_s3": { - "last_validated_date": "2024-04-09T07:38:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_update_lambda_function": { - "last_validated_date": "2024-11-07T03:16:40+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_update_lambda_function_name": { - "last_validated_date": "2024-11-07T03:10:48+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_update_lambda_permissions": { - "last_validated_date": "2024-04-09T07:23:41+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_logs.snapshot.json i/tests/aws/services/cloudformation/resources/test_logs.snapshot.json deleted file mode 100644 index 8ad8af97a9ca..000000000000 --- c/tests/aws/services/cloudformation/resources/test_logs.snapshot.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_logs.py::test_logstream": { - "recorded-date": "29-07-2022, 13:22:53", - "recorded-content": { - "outputs": { - "LogStreamNameOutput": "", - "LogGroupNameOutput": "" - }, - "describe_log_streams": [ - { - "logStreamName": "", - "creationTime": "timestamp", - "arn": "arn::logs::111111111111:log-group::log-stream:", - "storedBytes": 0 - } - ] - } - }, - "tests/aws/services/cloudformation/resources/test_logs.py::test_cfn_handle_log_group_resource": { - "recorded-date": "20-06-2024, 16:15:47", - "recorded-content": { - "describe_log_groups": { - "logGroups": [ - { - "arn": "arn::logs::111111111111:log-group::*", - "creationTime": "timestamp", - "logGroupArn": "arn::logs::111111111111:log-group:", - "logGroupClass": "STANDARD", - "logGroupName": "", - "metricFilterCount": 0, - "retentionInDays": 731, - "storedBytes": 0 - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_logs.validation.json i/tests/aws/services/cloudformation/resources/test_logs.validation.json deleted file mode 100644 index fce835093de2..000000000000 --- c/tests/aws/services/cloudformation/resources/test_logs.validation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_logs.py::test_cfn_handle_log_group_resource": { - "last_validated_date": "2024-06-20T16:15:47+00:00" - }, - "tests/aws/services/cloudformation/resources/test_logs.py::test_logstream": { - "last_validated_date": "2022-07-29T11:22:53+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_opensearch.snapshot.json i/tests/aws/services/cloudformation/resources/test_opensearch.snapshot.json deleted file mode 100644 index b34b9f39259d..000000000000 --- c/tests/aws/services/cloudformation/resources/test_opensearch.snapshot.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain": { - "recorded-date": "31-08-2023, 17:42:29", - "recorded-content": { - "describe_domain": { - "DomainStatus": { - "ARN": "arn::es::111111111111:domain/", - "AccessPolicies": "", - "AdvancedOptions": { - "override_main_response_version": "false", - "rest.action.multi.allow_explicit_index": "false" - }, - "AdvancedSecurityOptions": { - "AnonymousAuthEnabled": false, - "Enabled": false, - "InternalUserDatabaseEnabled": false - }, - "AutoTuneOptions": { - "State": "ENABLED", - "UseOffPeakWindow": false - }, - "ChangeProgressDetails": { - "ChangeId": "" - }, - "ClusterConfig": { - "ColdStorageOptions": { - "Enabled": false - }, - "DedicatedMasterEnabled": false, - "InstanceCount": 1, - "InstanceType": "r5.large.search", - "MultiAZWithStandbyEnabled": false, - "WarmEnabled": false, - "ZoneAwarenessEnabled": false - }, - "CognitoOptions": { - "Enabled": false - }, - "Created": true, - "Deleted": false, - "DomainEndpointOptions": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "Policy-Min-TLS-1-0-2019-07" - }, - "DomainId": "", - "DomainName": "", - "EBSOptions": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 10, - "VolumeType": "gp2" - }, - "EncryptionAtRestOptions": { - "Enabled": false - }, - "Endpoint": "", - "EngineVersion": "OpenSearch_2.5", - "NodeToNodeEncryptionOptions": { - "Enabled": false - }, - "OffPeakWindowOptions": { - "Enabled": true, - "OffPeakWindow": { - "WindowStartTime": { - "Hours": 2, - "Minutes": 0 - } - } - }, - "Processing": false, - "ServiceSoftwareOptions": { - "AutomatedUpdateDate": "datetime", - "Cancellable": false, - "CurrentVersion": "OpenSearch_2_5_R20230308-P4", - "Description": "There is no software update available for this domain.", - "NewVersion": "", - "OptionalDeployment": true, - "UpdateAvailable": false, - "UpdateStatus": "COMPLETED" - }, - "SnapshotOptions": { - "AutomatedSnapshotStartHour": 0 - }, - "SoftwareUpdateOptions": { - "AutoSoftwareUpdateEnabled": false - }, - "UpgradeProcessing": false - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_tags": { - "TagList": [ - { - "Key": "anotherkey", - "Value": "hello" - }, - { - "Key": "foo", - "Value": "bar" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain_with_alternative_types": { - "recorded-date": "08-07-2025, 02:30:47", - "recorded-content": { - "describe_domain": { - "DomainStatus": { - "AIMLOptions": { - "NaturalLanguageQueryGenerationOptions": { - "CurrentState": "NOT_ENABLED", - "DesiredState": "DISABLED" - } - }, - "ARN": "arn::es::111111111111:domain/test-opensearch-domain", - "AccessPolicies": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "arn::iam::111111111111:root" - }, - "Action": "es:*", - "Resource": "arn::es::111111111111:domain/test-opensearch-domain/*" - } - ] - }, - "AdvancedOptions": { - "override_main_response_version": "true", - "rest.action.multi.allow_explicit_index": "true" - }, - "AdvancedSecurityOptions": { - "AnonymousAuthEnabled": false, - "Enabled": false, - "InternalUserDatabaseEnabled": false - }, - "AutoTuneOptions": { - "State": "DISABLED", - "UseOffPeakWindow": false - }, - "ChangeProgressDetails": { - "ChangeId": "", - "ConfigChangeStatus": "Completed", - "InitiatedBy": "CUSTOMER", - "LastUpdatedTime": "datetime", - "StartTime": "datetime" - }, - "ClusterConfig": { - "ColdStorageOptions": { - "Enabled": false - }, - "DedicatedMasterCount": 3, - "DedicatedMasterEnabled": true, - "DedicatedMasterType": "t3.small.search", - "InstanceCount": 2, - "InstanceType": "t3.small.search", - "MultiAZWithStandbyEnabled": false, - "WarmEnabled": false, - "ZoneAwarenessConfig": { - "AvailabilityZoneCount": 2 - }, - "ZoneAwarenessEnabled": true - }, - "CognitoOptions": { - "Enabled": false - }, - "Created": true, - "Deleted": false, - "DomainEndpointOptions": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "Policy-Min-TLS-1-2-2019-07" - }, - "DomainId": "111111111111/test-opensearch-domain", - "DomainName": "test-opensearch-domain", - "DomainProcessingStatus": "Active", - "EBSOptions": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 20, - "VolumeType": "gp2" - }, - "EncryptionAtRestOptions": { - "Enabled": false - }, - "Endpoint": "", - "EngineVersion": "OpenSearch_1.0", - "IPAddressType": "ipv4", - "IdentityCenterOptions": {}, - "ModifyingProperties": [], - "NodeToNodeEncryptionOptions": { - "Enabled": false - }, - "OffPeakWindowOptions": { - "Enabled": true, - "OffPeakWindow": { - "WindowStartTime": { - "Hours": 2, - "Minutes": 0 - } - } - }, - "Processing": false, - "ServiceSoftwareOptions": { - "AutomatedUpdateDate": "datetime", - "Cancellable": false, - "CurrentVersion": "OpenSearch_1_0_R20250625", - "Description": "There is no software update available for this domain.", - "NewVersion": "", - "OptionalDeployment": true, - "UpdateAvailable": false, - "UpdateStatus": "COMPLETED" - }, - "SnapshotOptions": { - "AutomatedSnapshotStartHour": 0 - }, - "SoftwareUpdateOptions": { - "AutoSoftwareUpdateEnabled": false - }, - "UpgradeProcessing": false - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_opensearch.validation.json i/tests/aws/services/cloudformation/resources/test_opensearch.validation.json deleted file mode 100644 index b0eeb4668caf..000000000000 --- c/tests/aws/services/cloudformation/resources/test_opensearch.validation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain": { - "last_validated_date": "2023-08-31T15:42:29+00:00" - }, - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain_with_alternative_types": { - "last_validated_date": "2025-07-08T02:45:56+00:00", - "durations_in_seconds": { - "setup": 0.59, - "call": 746.75, - "teardown": 908.35, - "total": 1655.69 - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_redshift.validation.json i/tests/aws/services/cloudformation/resources/test_redshift.validation.json deleted file mode 100644 index 85f6c8b23f3f..000000000000 --- c/tests/aws/services/cloudformation/resources/test_redshift.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_redshift.py::test_redshift_cluster": { - "last_validated_date": "2024-02-28T12:42:35+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_resource_groups.snapshot.json i/tests/aws/services/cloudformation/resources/test_resource_groups.snapshot.json deleted file mode 100644 index 573102ae4106..000000000000 --- c/tests/aws/services/cloudformation/resources/test_resource_groups.snapshot.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_resource_groups.py::test_group_defaults": { - "recorded-date": "16-07-2024, 15:15:11", - "recorded-content": { - "resource-group": { - "Group": { - "GroupArn": "arn::resource-groups::111111111111:group/testgroup", - "Name": "testgroup" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_resource_groups.validation.json i/tests/aws/services/cloudformation/resources/test_resource_groups.validation.json deleted file mode 100644 index af3ad56458b0..000000000000 --- c/tests/aws/services/cloudformation/resources/test_resource_groups.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_resource_groups.py::test_group_defaults": { - "last_validated_date": "2024-07-16T15:15:11+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_route53.snapshot.json i/tests/aws/services/cloudformation/resources/test_route53.snapshot.json deleted file mode 100644 index 78372c10e3b3..000000000000 --- c/tests/aws/services/cloudformation/resources/test_route53.snapshot.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_route53.py::test_create_health_check": { - "recorded-date": "22-09-2023, 13:50:49", - "recorded-content": { - "HealthCheck": { - "CallerReference": "", - "HealthCheckConfig": { - "Disabled": false, - "EnableSNI": false, - "FailureThreshold": 3, - "FullyQualifiedDomainName": "localstacktest.com", - "IPAddress": "1.1.1.1", - "Inverted": false, - "MeasureLatency": false, - "Port": 80, - "RequestInterval": 30, - "ResourcePath": "/health", - "Type": "HTTP" - }, - "HealthCheckVersion": 1, - "Id": "" - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_route53.validation.json i/tests/aws/services/cloudformation/resources/test_route53.validation.json deleted file mode 100644 index 8b56e5dacfa5..000000000000 --- c/tests/aws/services/cloudformation/resources/test_route53.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_route53.py::test_create_health_check": { - "last_validated_date": "2023-09-22T11:50:49+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_s3.snapshot.json i/tests/aws/services/cloudformation/resources/test_s3.snapshot.json deleted file mode 100644 index d39c2900a9ce..000000000000 --- c/tests/aws/services/cloudformation/resources/test_s3.snapshot.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_s3.py::test_cors_configuration": { - "recorded-date": "20-04-2023, 20:17:17", - "recorded-content": { - "cors-info-optional": { - "CORSRules": [ - { - "AllowedHeaders": [ - "*", - "x-amz-*" - ], - "AllowedMethods": [ - "GET" - ], - "AllowedOrigins": [ - "*" - ], - "ExposeHeaders": [ - "Date" - ], - "ID": "test-cors-id", - "MaxAgeSeconds": 3600 - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "cors-info-only-required": { - "CORSRules": [ - { - "AllowedMethods": [ - "GET" - ], - "AllowedOrigins": [ - "*" - ] - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_website_configuration": { - "recorded-date": "02-06-2023, 18:24:39", - "recorded-content": { - "get_bucket_website": { - "ErrorDocument": { - "Key": "error.html" - }, - "IndexDocument": { - "Suffix": "index.html" - }, - "RoutingRules": [ - { - "Condition": { - "HttpErrorCodeReturnedEquals": "404", - "KeyPrefixEquals": "out1/" - }, - "Redirect": { - "ReplaceKeyWith": "redirected.html" - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_object_lock_configuration": { - "recorded-date": "15-01-2024, 02:31:58", - "recorded-content": { - "object-lock-info-with-configuration": { - "ObjectLockConfiguration": { - "ObjectLockEnabled": "Enabled", - "Rule": { - "DefaultRetention": { - "Days": 2, - "Mode": "GOVERNANCE" - } - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "object-lock-info-only-enabled": { - "ObjectLockConfiguration": { - "ObjectLockEnabled": "Enabled" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_bucketpolicy": { - "recorded-date": "31-05-2024, 13:41:44", - "recorded-content": { - "bucket": { - "BucketName": "" - }, - "get-policy-true": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Resource": [ - "arn::s3:::", - "arn::s3:::/*" - ] - } - ] - }, - "no-policy": { - "Error": { - "BucketName": "", - "Code": "NoSuchBucketPolicy", - "Message": "The bucket policy does not exist" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 404 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { - "recorded-date": "20-06-2024, 16:57:13", - "recorded-content": { - "get_bucket_notification_configuration": { - "QueueConfigurations": [ - { - "Events": [ - "s3:ObjectCreated:*" - ], - "Id": "", - "QueueArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_bucket_notification_configuration_error": { - "Error": { - "BucketName": "", - "Code": "NoSuchBucket", - "Message": "The specified bucket does not exist" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 404 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_s3.validation.json i/tests/aws/services/cloudformation/resources/test_s3.validation.json deleted file mode 100644 index 4bea4f6890cb..000000000000 --- c/tests/aws/services/cloudformation/resources/test_s3.validation.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_s3.py::test_bucket_versioning": { - "last_validated_date": "2024-05-31T13:44:37+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_bucketpolicy": { - "last_validated_date": "2024-05-31T13:41:44+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { - "last_validated_date": "2024-06-20T16:57:13+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_cors_configuration": { - "last_validated_date": "2023-04-20T18:17:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_object_lock_configuration": { - "last_validated_date": "2024-01-15T02:31:58+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_website_configuration": { - "last_validated_date": "2023-06-02T16:24:39+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_sam.snapshot.json i/tests/aws/services/cloudformation/resources/test_sam.snapshot.json deleted file mode 100644 index 7acf32c30322..000000000000 --- c/tests/aws/services/cloudformation/resources/test_sam.snapshot.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sam.py::test_sam_policies": { - "recorded-date": "11-07-2023, 18:08:53", - "recorded-content": { - "list_attached_role_policies": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/", - "PolicyName": "" - }, - { - "PolicyArn": "arn::iam::aws:policy/", - "PolicyName": "" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sam.py::test_cfn_handle_serverless_api_resource": { - "recorded-date": "15-07-2025, 19:31:46", - "recorded-content": { - "get_rest_api": { - "apiKeySource": "HEADER", - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "Api", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "version": "1.0", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "EvPuzuBz5Tmw0kKjgaQva4dsYcd10oxkSwFlAElJESw=", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.11", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "Lambda", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "lambda:createdBy": "SAM" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_secretsmanager.snapshot.json i/tests/aws/services/cloudformation/resources/test_secretsmanager.snapshot.json deleted file mode 100644 index bce81e41e19c..000000000000 --- c/tests/aws/services/cloudformation/resources/test_secretsmanager.snapshot.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { - "recorded-date": "03-07-2024, 18:51:39", - "recorded-content": { - "outputs": { - "SecretId": "arn::secretsmanager::111111111111:secret:", - "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" - }, - "resource_policy": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "Name": "", - "ResourcePolicy": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "arn::iam::111111111111:root" - }, - "Action": "secretsmanager:ReplicateSecretToRegions", - "Resource": "*" - } - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { - "recorded-date": "03-07-2024, 18:52:05", - "recorded-content": { - "outputs": { - "SecretId": "arn::secretsmanager::111111111111:secret:", - "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" - }, - "resource_policy": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "Name": "", - "ResourcePolicy": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "arn::iam::111111111111:root" - }, - "Action": "secretsmanager:ReplicateSecretToRegions", - "Resource": "*" - } - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { - "recorded-date": "23-05-2024, 17:15:31", - "recorded-content": { - "generated_key": { - "ARN": "", - "CreatedDate": "datetime", - "Name": "", - "SecretString": "secret-string", - "VersionId": "", - "VersionStages": [ - "AWSCURRENT" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { - "recorded-date": "03-07-2024, 15:39:56", - "recorded-content": { - "secret": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "CreatedDate": "datetime", - "Description": "Aurora Password", - "LastChangedDate": "datetime", - "Name": "", - "Tags": [ - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-63e3fdc5" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "Secret" - }, - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-63e3fdc5/79663e60-3952-11ef-809b-0affeb5ce635" - } - ], - "VersionIdsToStages": { - "2b1f1af7-47ee-aee1-5609-991d4352ae14": [ - "AWSCURRENT" - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { - "recorded-date": "11-10-2024, 17:00:31", - "recorded-content": { - "secret": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "CreatedDate": "datetime", - "Description": "Aurora Password", - "LastChangedDate": "datetime", - "Name": "", - "Tags": [ - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-ab33fda4" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "Secret" - }, - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-ab33fda4/47ecee80-87f2-11ef-8f16-0a113fcea55f" - } - ], - "VersionIdsToStages": { - "c80fca61-0302-7921-4b9b-c2c16bc6f457": [ - "AWSCURRENT" - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "exception": { - "Error": { - "Code": "ResourceNotFoundException", - "Message": "Secrets Manager can't find the specified secret." - }, - "Message": "Secrets Manager can't find the specified secret.", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 400 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_secretsmanager.validation.json i/tests/aws/services/cloudformation/resources/test_secretsmanager.validation.json deleted file mode 100644 index 53e71f633e0d..000000000000 --- c/tests/aws/services/cloudformation/resources/test_secretsmanager.validation.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { - "last_validated_date": "2024-05-23T17:15:31+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { - "last_validated_date": "2024-10-11T17:00:31+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { - "last_validated_date": "2024-08-01T12:22:53+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { - "last_validated_date": "2024-08-01T12:22:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { - "last_validated_date": "2024-07-03T15:39:56+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_sns.snapshot.json i/tests/aws/services/cloudformation/resources/test_sns.snapshot.json deleted file mode 100644 index a2c5c8ca6e2d..000000000000 --- c/tests/aws/services/cloudformation/resources/test_sns.snapshot.json +++ /dev/null @@ -1,530 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { - "recorded-date": "27-11-2023, 21:27:29", - "recorded-content": { - "get-topic-attrs": { - "Attributes": { - "ContentBasedDeduplication": "true", - "DisplayName": "", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "FifoTopic": "true", - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_update_subscription": { - "recorded-date": "29-03-2024, 21:16:26", - "recorded-content": { - "subscription-1": { - "Attributes": { - "ConfirmationWasAuthenticated": "true", - "Endpoint": "arn::sqs::111111111111:", - "Owner": "111111111111", - "PendingConfirmation": "false", - "Protocol": "sqs", - "RawMessageDelivery": "true", - "SubscriptionArn": "arn::sns::111111111111::", - "SubscriptionPrincipal": "arn::iam::111111111111:user/", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "subscription-2": { - "Attributes": { - "ConfirmationWasAuthenticated": "true", - "Endpoint": "arn::sqs::111111111111:", - "Owner": "111111111111", - "PendingConfirmation": "false", - "Protocol": "sqs", - "RawMessageDelivery": "false", - "SubscriptionArn": "arn::sns::111111111111::", - "SubscriptionPrincipal": "arn::iam::111111111111:user/", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_with_attributes": { - "recorded-date": "16-08-2024, 15:44:50", - "recorded-content": { - "topic-archive-policy": { - "MessageRetentionPeriod": "30" - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_subscription_region": { - "recorded-date": "28-05-2025, 10:47:01", - "recorded-content": { - "subscription-1": { - "Attributes": { - "ConfirmationWasAuthenticated": "true", - "Endpoint": "arn::sqs::111111111111:", - "Owner": "111111111111", - "PendingConfirmation": "false", - "Protocol": "sqs", - "RawMessageDelivery": "true", - "SubscriptionArn": "arn::sns::111111111111::", - "SubscriptionPrincipal": "arn::iam::111111111111:user/", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_attributes": { - "recorded-date": "03-07-2025, 17:18:54", - "recorded-content": { - "initial-topic-attributes": { - "Attributes": { - "DisplayName": "Initial Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "initial-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated-topic-attributes": { - "Attributes": { - "DisplayName": "Updated Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "new-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_name": { - "recorded-date": "03-07-2025, 17:17:06", - "recorded-content": { - "initial-topic-attributes": { - "Attributes": { - "DisplayName": "Initial Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "initial-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "new-topic-attributes": { - "Attributes": { - "DisplayName": "Updated Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "new-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_policy_resets_to_default": { - "recorded-date": "04-07-2025, 00:04:32", - "recorded-content": { - "default-topic-attributes": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "modified-topic-attributes": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "0", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": "sns:Publish", - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "aws:SourceAccount": "111111111111" - } - } - } - ] - }, - "reverted-topic-attributes": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_sns.validation.json i/tests/aws/services/cloudformation/resources/test_sns.validation.json deleted file mode 100644 index 52731d78dd63..000000000000 --- c/tests/aws/services/cloudformation/resources/test_sns.validation.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_subscription_region": { - "last_validated_date": "2025-05-28T10:46:56+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { - "last_validated_date": "2023-11-27T20:27:29+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_attributes": { - "last_validated_date": "2025-07-03T17:19:44+00:00", - "durations_in_seconds": { - "setup": 0.59, - "call": 41.07, - "teardown": 50.12, - "total": 91.78 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_name": { - "last_validated_date": "2025-07-03T17:17:56+00:00", - "durations_in_seconds": { - "setup": 0.54, - "call": 73.16, - "teardown": 50.36, - "total": 124.06 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_policy_resets_to_default": { - "last_validated_date": "2025-07-04T00:04:32+00:00", - "durations_in_seconds": { - "setup": 1.08, - "call": 22.27, - "teardown": 0.09, - "total": 23.44 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_with_attributes": { - "last_validated_date": "2025-07-03T23:32:29+00:00", - "durations_in_seconds": { - "setup": 0.8, - "call": 21.33, - "teardown": 0.0, - "total": 22.13 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_update_subscription": { - "last_validated_date": "2024-03-29T21:16:21+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_sqs.snapshot.json i/tests/aws/services/cloudformation/resources/test_sqs.snapshot.json deleted file mode 100644 index 118cc86349d2..000000000000 --- c/tests/aws/services/cloudformation/resources/test_sqs.snapshot.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_queue_no_change": { - "recorded-date": "08-12-2023, 21:11:26", - "recorded-content": { - "outputs-1": { - "QueueArn": "", - "QueueUrl": "" - }, - "outputs-2": { - "QueueArn": "", - "QueueUrl": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_sqs_queuepolicy": { - "recorded-date": "27-03-2024, 20:30:24", - "recorded-content": { - "policy1": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": "*", - "Action": [ - "sqs:SendMessage", - "sqs:GetQueueAttributes", - "sqs:GetQueueUrl" - ], - "Resource": "arn::sqs::111111111111:" - } - ] - }, - "policy2": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Deny", - "Principal": "*", - "Action": [ - "sqs:SendMessage", - "sqs:GetQueueAttributes", - "sqs:GetQueueUrl" - ], - "Resource": "arn::sqs::111111111111:" - } - ] - } - } - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_queue_policy": { - "recorded-date": "03-07-2024, 19:49:04", - "recorded-content": { - "policy": { - "Attributes": { - "Policy": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": "*", - "Action": [ - "sqs:SendMessage", - "sqs:GetQueueAttributes", - "sqs:GetQueueUrl" - ], - "Resource": "" - } - ] - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_cfn_handle_sqs_resource": { - "recorded-date": "03-07-2024, 20:03:51", - "recorded-content": { - "queue": { - "Attributes": { - "ApproximateNumberOfMessages": "0", - "ApproximateNumberOfMessagesDelayed": "0", - "ApproximateNumberOfMessagesNotVisible": "0", - "ContentBasedDeduplication": "false", - "CreatedTimestamp": "timestamp", - "DeduplicationScope": "queue", - "DelaySeconds": "0", - "FifoQueue": "true", - "FifoThroughputLimit": "perQueue", - "LastModifiedTimestamp": "timestamp", - "MaximumMessageSize": "262144", - "MessageRetentionPeriod": "345600", - "QueueArn": "arn::sqs::111111111111:.fifo", - "ReceiveMessageWaitTimeSeconds": "0", - "SqsManagedSseEnabled": "true", - "VisibilityTimeout": "30" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "error": { - "Error": { - "Code": "AWS.SimpleQueueService.NonExistentQueue", - "Message": "The specified queue does not exist.", - "QueryErrorCode": "QueueDoesNotExist", - "Type": "Sender" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 400 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_sqs.validation.json i/tests/aws/services/cloudformation/resources/test_sqs.validation.json deleted file mode 100644 index c28ce1e66b2e..000000000000 --- c/tests/aws/services/cloudformation/resources/test_sqs.validation.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sqs.py::test_cfn_handle_sqs_resource": { - "last_validated_date": "2024-07-03T20:03:51+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_fifo_queue_generates_valid_name": { - "last_validated_date": "2024-05-15T02:01:00+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_non_fifo_queue_generates_valid_name": { - "last_validated_date": "2024-05-15T01:59:34+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_queue_policy": { - "last_validated_date": "2024-07-03T19:49:04+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_queue_no_change": { - "last_validated_date": "2023-12-08T20:11:26+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_sqs_queuepolicy": { - "last_validated_date": "2024-03-27T20:30:23+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_ssm.snapshot.json i/tests/aws/services/cloudformation/resources/test_ssm.snapshot.json deleted file mode 100644 index 965db7761339..000000000000 --- c/tests/aws/services/cloudformation/resources/test_ssm.snapshot.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ssm.py::test_deploy_patch_baseline": { - "recorded-date": "05-07-2023, 10:13:24", - "recorded-content": { - "patch_baseline": { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LastUpdatedTimestamp": "timestamp", - "LogicalResourceId": "myPatchBaseline", - "Metadata": {}, - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SSM::PatchBaseline", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_maintenance_window": { - "recorded-date": "14-07-2023, 14:06:23", - "recorded-content": { - "MaintenanceWindow": [ - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchBaselineAML", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::PatchBaseline", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchBaselineAML2", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::PatchBaseline", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchServerMaintenanceWindow", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::MaintenanceWindow", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchServerMaintenanceWindowTarget", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::MaintenanceWindowTarget", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchServerTask", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::MaintenanceWindowTask", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - } - ] - } - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_parameter_defaults": { - "recorded-date": "03-07-2024, 20:30:04", - "recorded-content": { - "ssm_parameter": { - "Parameter": { - "ARN": "arn::ssm::111111111111:parameter/", - "DataType": "text", - "LastModifiedDate": "datetime", - "Name": "", - "Type": "String", - "Value": "", - "Version": 1 - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "ssm_parameter_not_found": { - "Error": { - "Code": "ParameterNotFound", - "Message": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 400 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_ssm.validation.json i/tests/aws/services/cloudformation/resources/test_ssm.validation.json deleted file mode 100644 index 7c58a30d142f..000000000000 --- c/tests/aws/services/cloudformation/resources/test_ssm.validation.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ssm.py::test_deploy_patch_baseline": { - "last_validated_date": "2023-07-05T08:13:24+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_maintenance_window": { - "last_validated_date": "2023-07-14T12:06:23+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_parameter_defaults": { - "last_validated_date": "2024-07-03T20:30:04+00:00" - } -} diff --git c/tests/aws/services/cloudformation/resources/test_stepfunctions.snapshot.json i/tests/aws/services/cloudformation/resources/test_stepfunctions.snapshot.json deleted file mode 100644 index 0a71d3489d9c..000000000000 --- c/tests/aws/services/cloudformation/resources/test_stepfunctions.snapshot.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { - "recorded-date": "17-12-2024, 16:06:46", - "recorded-content": { - "describe_state_machine_output_on_create": { - "creationDate": "datetime", - "definition": { - "Comment": "step: on create", - "StartAt": "S0", - "States": { - "S0": { - "Type": "Succeed" - } - } - }, - "encryptionConfiguration": { - "type": "AWS_OWNED_KEY" - }, - "loggingConfiguration": { - "includeExecutionData": false, - "level": "OFF" - }, - "name": "", - "roleArn": "", - "stateMachineArn": "", - "status": "ACTIVE", - "tracingConfiguration": { - "enabled": false - }, - "type": "STANDARD", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_state_machine_output_on_update": { - "creationDate": "datetime", - "definition": { - "Comment": "step: on update", - "StartAt": "S0", - "States": { - "S0": { - "Type": "Succeed" - } - } - }, - "encryptionConfiguration": { - "type": "AWS_OWNED_KEY" - }, - "loggingConfiguration": { - "includeExecutionData": false, - "level": "OFF" - }, - "name": "", - "revisionId": "", - "roleArn": "", - "stateMachineArn": "", - "status": "ACTIVE", - "tracingConfiguration": { - "enabled": false - }, - "type": "STANDARD", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { - "recorded-date": "24-03-2025, 21:58:55", - "recorded-content": { - "describe_state_machine_result": { - "creationDate": "datetime", - "definition": { - "StartAt": "S0", - "States": { - "S0": { - "Type": "Pass", - "End": true - } - } - }, - "encryptionConfiguration": { - "type": "AWS_OWNED_KEY" - }, - "loggingConfiguration": { - "destinations": [ - { - "cloudWatchLogsLogGroup": { - "logGroupArn": "" - } - } - ], - "includeExecutionData": true, - "level": "ALL" - }, - "name": "", - "roleArn": "", - "stateMachineArn": "", - "status": "ACTIVE", - "tracingConfiguration": { - "enabled": false - }, - "type": "STANDARD", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git c/tests/aws/services/cloudformation/resources/test_stepfunctions.validation.json i/tests/aws/services/cloudformation/resources/test_stepfunctions.validation.json deleted file mode 100644 index 7c3fd6272699..000000000000 --- c/tests/aws/services/cloudformation/resources/test_stepfunctions.validation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { - "last_validated_date": "2024-12-17T16:06:46+00:00" - }, - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { - "last_validated_date": "2025-03-24T21:58:55+00:00" - } -} --- .../resources/test_apigateway.snapshot.json | 795 ------- .../resources/test_apigateway.validation.json | 62 - .../resources/test_cloudwatch.snapshot.json | 119 -- .../resources/test_cloudwatch.validation.json | 11 - .../resources/test_dynamodb.snapshot.json | 349 --- .../resources/test_dynamodb.validation.json | 23 - .../resources/test_ec2.snapshot.json | 310 --- .../resources/test_ec2.validation.json | 44 - .../test_elasticsearch.snapshot.json | 312 --- .../test_elasticsearch.validation.json | 5 - .../resources/test_events.snapshot.json | 70 - .../resources/test_events.validation.json | 17 - .../resources/test_firehose.snapshot.json | 99 - .../resources/test_firehose.validation.json | 5 - .../resources/test_kinesis.snapshot.json | 279 --- .../resources/test_kinesis.validation.json | 17 - .../resources/test_kms.snapshot.json | 11 - .../resources/test_kms.validation.json | 11 - .../resources/test_lambda.snapshot.json | 1892 ----------------- .../resources/test_lambda.validation.json | 71 - .../resources/test_logs.snapshot.json | 42 - .../resources/test_logs.validation.json | 8 - .../resources/test_opensearch.snapshot.json | 239 --- .../resources/test_opensearch.validation.json | 14 - .../resources/test_redshift.validation.json | 5 - .../test_resource_groups.snapshot.json | 17 - .../test_resource_groups.validation.json | 5 - .../resources/test_route53.snapshot.json | 25 - .../resources/test_route53.validation.json | 5 - .../resources/test_s3.snapshot.json | 175 -- .../resources/test_s3.validation.json | 20 - .../resources/test_sam.snapshot.json | 107 - .../test_secretsmanager.snapshot.json | 162 -- .../test_secretsmanager.validation.json | 17 - .../resources/test_sns.snapshot.json | 530 ----- .../resources/test_sns.validation.json | 47 - .../resources/test_sqs.snapshot.json | 119 -- .../resources/test_sqs.validation.json | 20 - .../resources/test_ssm.snapshot.json | 117 - .../resources/test_ssm.validation.json | 11 - .../test_stepfunctions.snapshot.json | 113 - .../test_stepfunctions.validation.json | 8 - 42 files changed, 6308 deletions(-) delete mode 100644 tests/aws/services/cloudformation/resources/test_apigateway.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_apigateway.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_cloudwatch.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_cloudwatch.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_dynamodb.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_dynamodb.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_ec2.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_ec2.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_elasticsearch.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_elasticsearch.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_events.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_events.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_firehose.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_firehose.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_kinesis.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_kinesis.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_kms.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_kms.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_lambda.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_lambda.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_logs.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_logs.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_opensearch.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_opensearch.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_redshift.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_resource_groups.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_resource_groups.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_route53.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_route53.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_s3.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_s3.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_sam.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_secretsmanager.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_secretsmanager.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_sns.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_sns.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_sqs.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_sqs.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_ssm.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_ssm.validation.json delete mode 100644 tests/aws/services/cloudformation/resources/test_stepfunctions.snapshot.json delete mode 100644 tests/aws/services/cloudformation/resources/test_stepfunctions.validation.json diff --git a/tests/aws/services/cloudformation/resources/test_apigateway.snapshot.json b/tests/aws/services/cloudformation/resources/test_apigateway.snapshot.json deleted file mode 100644 index e142016552658..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_apigateway.snapshot.json +++ /dev/null @@ -1,795 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_integration": { - "recorded-date": "15-07-2025, 19:28:45", - "recorded-content": { - "rest_api": { - "apiKeySource": "HEADER", - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "method": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "GET", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "connectionType": "INTERNET", - "httpMethod": "GET", - "integrationResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent,X-Amzn-Trace-Id'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,POST'", - "method.response.header.Access-Control-Allow-Origin": "'*'" - }, - "statusCode": "200" - } - }, - "passthroughBehavior": "WHEN_NO_MATCH", - "timeoutInMillis": 29000, - "type": "HTTP_PROXY", - "uri": "http://www.example.com" - }, - "methodResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Headers": true, - "method.response.header.Access-Control-Allow-Methods": true, - "method.response.header.Access-Control-Allow-Origin": true - }, - "statusCode": "200" - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_api_gateway_with_policy_as_dict": { - "recorded-date": "15-07-2025, 19:30:54", - "recorded-content": { - "rest-api": { - "apiKeySource": "HEADER", - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "policy": { - "Statement": [ - { - "Action": "*", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Resource": "*", - "Sid": "AllowInvokeAPI" - } - ], - "Version": "2012-10-17" - }, - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "MyApi", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_from_s3_swagger": { - "recorded-date": "15-07-2025, 20:30:26", - "recorded-content": { - "rest-api": { - "apiKeySource": "HEADER", - "binaryMediaTypes": [ - "application/pdf", - "image/gif", - "image/jpg", - "image/png" - ], - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "REGIONAL" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "ApiGatewayRestApi", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "version": "1.0.0", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "resources": { - "items": [ - { - "id": "", - "path": "/" - }, - { - "id": "", - "parentId": "", - "path": "/pets", - "pathPart": "pets", - "resourceMethods": { - "GET": {} - } - }, - { - "id": "", - "parentId": "", - "path": "/pets/{petId}", - "pathPart": "{petId}", - "resourceMethods": { - "GET": {} - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-stage": { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "createdDate": "datetime", - "deploymentId": "", - "description": "Test Stage 123", - "lastUpdatedDate": "datetime", - "methodSettings": { - "*/*": { - "cacheDataEncrypted": false, - "cacheTtlInSeconds": 300, - "cachingEnabled": false, - "dataTraceEnabled": true, - "loggingLevel": "ERROR", - "metricsEnabled": true, - "requireAuthorizationForCacheControl": true, - "throttlingBurstLimit": 5000, - "throttlingRateLimit": 10000.0, - "unauthorizedCacheControlHeaderStrategy": "SUCCEED_WITH_RESPONSE_HEADER" - } - }, - "stageName": "local", - "tags": { - "aws:cloudformation:logical-id": "ApiGWStage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack/stack-name/", - "aws:cloudformation:stack-name": "stack-name" - }, - "tracingEnabled": true, - "variables": { - "TestCasing": "myvar", - "testCasingTwo": "myvar2", - "testlowcasing": "myvar3" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_models": { - "recorded-date": "21-06-2024, 00:09:05", - "recorded-content": { - "get-resources": { - "items": [ - { - "id": "", - "path": "/" - }, - { - "id": "", - "parentId": "", - "path": "/validated", - "pathPart": "validated", - "resourceMethods": { - "ANY": {} - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-models": { - "items": [ - { - "contentType": "application/json", - "description": "This is a default empty schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object" - } - }, - { - "contentType": "application/json", - "description": "This is a default error schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - }, - { - "contentType": "application/json", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "", - "type": "object", - "properties": { - "integer_field": { - "type": "number" - }, - "string_field": { - "type": "string" - } - }, - "required": [ - "string_field", - "integer_field" - ] - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-request-validators": { - "items": [ - { - "id": "", - "name": "", - "validateRequestBody": true, - "validateRequestParameters": false - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-method-any": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "ANY", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "integrationResponses": { - "200": { - "statusCode": "200" - } - }, - "passthroughBehavior": "NEVER", - "requestTemplates": { - "application/json": { - "statusCode": 200 - } - }, - "timeoutInMillis": 29000, - "type": "MOCK" - }, - "methodResponses": { - "200": { - "statusCode": "200" - } - }, - "requestModels": { - "application/json": "" - }, - "requestValidatorId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_with_apigateway_resources": { - "recorded-date": "20-06-2024, 23:54:26", - "recorded-content": { - "get-method-post": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "POST", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "integrationResponses": { - "202": { - "responseTemplates": { - "application/json": { - "operation": "celeste_account_create", - "data": { - "key": "123e4567-e89b-12d3-a456-426614174000", - "secret": "123e4567-e89b-12d3-a456-426614174000" - } - } - }, - "selectionPattern": "2\\d{2}", - "statusCode": "202" - }, - "404": { - "responseTemplates": { - "application/json": { - "message": "Not Found" - } - }, - "selectionPattern": "404", - "statusCode": "404" - }, - "500": { - "responseTemplates": { - "application/json": { - "message": "Unknown " - } - }, - "selectionPattern": "5\\d{2}", - "statusCode": "500" - } - }, - "passthroughBehavior": "WHEN_NO_TEMPLATES", - "requestTemplates": { - "application/json": "" - }, - "timeoutInMillis": 29000, - "type": "MOCK" - }, - "methodResponses": { - "202": { - "responseModels": { - "application/json": "" - }, - "statusCode": "202" - }, - "500": { - "responseModels": { - "application/json": "" - }, - "statusCode": "500" - } - }, - "operationName": "create_account", - "requestParameters": { - "method.request.path.account": true - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-models": { - "items": [ - { - "contentType": "application/json", - "description": "This is a default empty schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object" - } - }, - { - "contentType": "application/json", - "description": "This is a default error schema model", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": " Schema", - "type": "object", - "properties": { - "message": { - "type": "string" - } - } - } - }, - { - "contentType": "application/json", - "id": "", - "name": "", - "schema": { - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "AccountCreate", - "type": "object", - "properties": { - "field": { - "type": "string" - }, - "email": { - "format": "email", - "type": "string" - } - } - } - }, - { - "contentType": "application/json", - "id": "", - "name": "", - "schema": {} - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_rest_api_serverless_ref_resolving": { - "recorded-date": "06-07-2023, 21:01:08", - "recorded-content": { - "get-resources": { - "items": [ - { - "id": "", - "path": "/", - "resourceMethods": { - "GET": {}, - "OPTIONS": {} - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-authorizers": { - "items": [ - { - "authType": "custom", - "authorizerUri": "", - "id": "", - "identitySource": "method.request.header.Authorization", - "name": "", - "type": "TOKEN" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-method-GET": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "GET", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "httpMethod": "POST", - "passthroughBehavior": "WHEN_NO_MATCH", - "timeoutInMillis": 29000, - "type": "AWS_PROXY", - "uri": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-method-OPTIONS": { - "apiKeyRequired": false, - "authorizationType": "NONE", - "httpMethod": "OPTIONS", - "methodIntegration": { - "cacheKeyParameters": [], - "cacheNamespace": "", - "integrationResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Credentials": "'true'", - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,Authorization,x-test-header'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,POST,GET,PUT'", - "method.response.header.Access-Control-Allow-Origin": "'http://localhost:8000'" - }, - "responseTemplates": { - "application/json": {} - }, - "statusCode": "200" - } - }, - "passthroughBehavior": "WHEN_NO_MATCH", - "requestTemplates": { - "application/json": { - "statusCode": 200 - } - }, - "timeoutInMillis": 29000, - "type": "MOCK" - }, - "methodResponses": { - "200": { - "responseParameters": { - "method.response.header.Access-Control-Allow-Credentials": false, - "method.response.header.Access-Control-Allow-Headers": false, - "method.response.header.Access-Control-Allow-Methods": false, - "method.response.header.Access-Control-Allow-Origin": false - }, - "statusCode": "200" - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_usage_plan": { - "recorded-date": "13-09-2024, 09:57:21", - "recorded-content": { - "usage-plan": { - "apiStages": [ - { - "apiId": "", - "stage": "" - } - ], - "id": "", - "name": "", - "quota": { - "limit": 5000, - "offset": 0, - "period": "MONTH" - }, - "tags": { - "aws:cloudformation:logical-id": "UsagePlan", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "test": "value1", - "test2": "hardcoded" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated-usage-plan": { - "apiStages": [ - { - "apiId": "", - "stage": "" - } - ], - "id": "", - "name": "", - "quota": { - "limit": 7000, - "offset": 0, - "period": "MONTH" - }, - "tags": { - "aws:cloudformation:logical-id": "UsagePlan", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "test": "value-updated", - "test2": "hardcoded" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_apigateway_stage": { - "recorded-date": "07-11-2024, 05:35:20", - "recorded-content": { - "created-stage": { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "createdDate": "datetime", - "deploymentId": "", - "lastUpdatedDate": "datetime", - "methodSettings": {}, - "stageName": "dev", - "tags": { - "aws:cloudformation:logical-id": "Stage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "tracingEnabled": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated-stage": { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "createdDate": "datetime", - "deploymentId": "", - "lastUpdatedDate": "datetime", - "methodSettings": {}, - "stageName": "dev", - "tags": { - "aws:cloudformation:logical-id": "Stage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "tracingEnabled": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_swagger_import": { - "recorded-date": "05-05-2025, 14:23:13", - "recorded-content": { - "imported-api": { - "apiKeySource": "HEADER", - "binaryMediaTypes": [ - "*/*" - ], - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "Api", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "version": "1.0" - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_rest_api": { - "recorded-date": "05-05-2025, 14:50:14", - "recorded-content": { - "rest-api": { - "apiKeySource": "HEADER", - "binaryMediaTypes": [ - "image/jpg", - "image/png" - ], - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "DemoApi_dev", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_apigateway_deployment_canary_settings": { - "recorded-date": "23-07-2025, 23:07:05", - "recorded-content": { - "get-stages": { - "item": [ - { - "cacheClusterEnabled": false, - "cacheClusterStatus": "NOT_AVAILABLE", - "canarySettings": { - "deploymentId": "", - "percentTraffic": 50.0, - "stageVariableOverrides": { - "lambdaAlias": "Dev" - }, - "useStageCache": false - }, - "createdDate": "datetime", - "deploymentId": "", - "lastUpdatedDate": "datetime", - "methodSettings": {}, - "stageName": "prod", - "tags": { - "aws:cloudformation:logical-id": "Stage", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "tracingEnabled": false, - "variables": { - "lambdaAlias": "Prod" - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get-deployments": { - "items": [ - { - "createdDate": "datetime", - "description": "basic deployment", - "id": "" - }, - { - "createdDate": "datetime", - "description": "canary description", - "id": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_apigateway.validation.json b/tests/aws/services/cloudformation/resources/test_apigateway.validation.json deleted file mode 100644 index 4008e85bfca4c..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_apigateway.validation.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_apigateway.py::TestServerlessApigwLambda::test_serverless_like_deployment_with_update": { - "last_validated_date": "2024-02-19T08:55:12+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_api_gateway_with_policy_as_dict": { - "last_validated_date": "2025-07-15T19:30:59+00:00", - "durations_in_seconds": { - "setup": 0.47, - "call": 11.81, - "teardown": 4.71, - "total": 16.99 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_apigateway_deployment_canary_settings": { - "last_validated_date": "2025-07-23T23:07:16+00:00", - "durations_in_seconds": { - "setup": 0.44, - "call": 22.5, - "teardown": 11.11, - "total": 34.05 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_rest_api": { - "last_validated_date": "2025-05-05T14:50:14+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_apigateway_swagger_import": { - "last_validated_date": "2025-05-05T14:23:13+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_from_s3_swagger": { - "last_validated_date": "2025-07-15T20:30:33+00:00", - "durations_in_seconds": { - "setup": 1.02, - "call": 18.79, - "teardown": 8.1, - "total": 27.91 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_integration": { - "last_validated_date": "2025-07-15T19:28:58+00:00", - "durations_in_seconds": { - "setup": 0.46, - "call": 26.77, - "teardown": 13.21, - "total": 40.44 - } - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_deploy_apigateway_models": { - "last_validated_date": "2024-06-21T00:09:05+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_cfn_with_apigateway_resources": { - "last_validated_date": "2024-06-20T23:54:26+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_rest_api_serverless_ref_resolving": { - "last_validated_date": "2023-07-06T19:01:08+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_apigateway_stage": { - "last_validated_date": "2024-11-07T05:35:20+00:00" - }, - "tests/aws/services/cloudformation/resources/test_apigateway.py::test_update_usage_plan": { - "last_validated_date": "2024-09-13T09:57:21+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_cloudwatch.snapshot.json b/tests/aws/services/cloudformation/resources/test_cloudwatch.snapshot.json deleted file mode 100644 index 8a0c497877d0e..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_cloudwatch.snapshot.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_creation": { - "recorded-date": "25-09-2023, 10:28:42", - "recorded-content": { - "alarm_outputs": { - "AlarmArnFromAtt": "arn::cloudwatch::111111111111:alarm:", - "AlarmName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_composite_alarm_creation": { - "recorded-date": "16-07-2024, 10:41:22", - "recorded-content": { - "composite_alarm": [ - { - "ActionsEnabled": true, - "AlarmActions": [ - "arn::sns::111111111111:" - ], - "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighResourceUsage", - "AlarmConfigurationUpdatedTimestamp": "timestamp", - "AlarmDescription": "Indicates that the system resource usage is high while no known deployment is in progress", - "AlarmName": "HighResourceUsage", - "AlarmRule": "(ALARM(HighCPUUsage) OR ALARM(HighMemoryUsage))", - "InsufficientDataActions": [], - "OKActions": [], - "StateReason": "arn::cloudwatch::111111111111:alarm:HighResourceUsage was created and its alarm rule evaluates to OK", - "StateReasonData": { - "triggeringAlarms": [ - { - "arn": "arn::cloudwatch::111111111111:alarm:HighCPUUsage", - "state": { - "value": "INSUFFICIENT_DATA", - "timestamp": "date" - } - }, - { - "arn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", - "state": { - "value": "INSUFFICIENT_DATA", - "timestamp": "date" - } - } - ] - }, - "StateUpdatedTimestamp": "timestamp", - "StateValue": "OK", - "StateTransitionedTimestamp": "timestamp" - } - ], - "metric_alarm": [ - { - "AlarmName": "HighMemoryUsage", - "AlarmArn": "arn::cloudwatch::111111111111:alarm:HighMemoryUsage", - "AlarmDescription": "Memory usage is high", - "AlarmConfigurationUpdatedTimestamp": "timestamp", - "ActionsEnabled": true, - "OKActions": [], - "AlarmActions": [], - "InsufficientDataActions": [], - "StateValue": "INSUFFICIENT_DATA", - "StateReason": "Unchecked: Initial alarm creation", - "StateUpdatedTimestamp": "timestamp", - "MetricName": "MemoryUsage", - "Namespace": "CustomNamespace", - "Statistic": "Average", - "Dimensions": [], - "Period": 60, - "EvaluationPeriods": 1, - "Threshold": 65.0, - "ComparisonOperator": "GreaterThanThreshold", - "TreatMissingData": "breaching", - "StateTransitionedTimestamp": "timestamp" - } - ] - } - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_no_statistic": { - "recorded-date": "27-11-2023, 10:08:09", - "recorded-content": {} - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_ext_statistic": { - "recorded-date": "27-11-2023, 10:09:46", - "recorded-content": { - "simple_alarm": [ - { - "AlarmName": "", - "AlarmArn": "arn::cloudwatch::111111111111:alarm:", - "AlarmDescription": "uses extended statistic", - "AlarmConfigurationUpdatedTimestamp": "timestamp", - "ActionsEnabled": true, - "OKActions": [], - "AlarmActions": [], - "InsufficientDataActions": [], - "StateValue": "INSUFFICIENT_DATA", - "StateReason": "Unchecked: Initial alarm creation", - "StateUpdatedTimestamp": "timestamp", - "MetricName": "Duration", - "Namespace": "", - "ExtendedStatistic": "p99", - "Dimensions": [ - { - "Name": "FunctionName", - "Value": "my-function" - } - ], - "Period": 300, - "Unit": "Count", - "EvaluationPeriods": 3, - "DatapointsToAlarm": 3, - "Threshold": 10.0, - "ComparisonOperator": "GreaterThanOrEqualToThreshold", - "TreatMissingData": "ignore", - "StateTransitionedTimestamp": "timestamp" - } - ] - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_cloudwatch.validation.json b/tests/aws/services/cloudformation/resources/test_cloudwatch.validation.json deleted file mode 100644 index 73801e4f3c748..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_cloudwatch.validation.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_creation": { - "last_validated_date": "2023-09-25T08:28:42+00:00" - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_alarm_ext_statistic": { - "last_validated_date": "2023-11-27T09:09:46+00:00" - }, - "tests/aws/services/cloudformation/resources/test_cloudwatch.py::test_composite_alarm_creation": { - "last_validated_date": "2024-07-16T10:43:30+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_dynamodb.snapshot.json b/tests/aws/services/cloudformation/resources/test_dynamodb.snapshot.json deleted file mode 100644 index 3f6efc6628fb0..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_dynamodb.snapshot.json +++ /dev/null @@ -1,349 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_default_name_for_table": { - "recorded-date": "28-08-2023, 12:34:19", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "keyName", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "keyName", - "KeyType": "HASH" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_tags_of_resource": { - "Tags": [ - { - "Key": "TagKey1", - "Value": "TagValue1" - }, - { - "Key": "TagKey2", - "Value": "TagValue2" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { - "recorded-date": "28-08-2023, 12:34:41", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", - "LatestStreamLabel": "", - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamEnabled": true, - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { - "recorded-date": "28-08-2023, 12:35:02", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingModeSummary": { - "BillingMode": "PAY_PER_REQUEST", - "LastUpdateToPayPerRequestDateTime": "datetime" - }, - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", - "LatestStreamLabel": "", - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - }, - "StreamSpecification": { - "StreamEnabled": true, - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table": { - "recorded-date": "01-12-2023, 12:54:13", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "keyName", - "AttributeType": "S" - } - ], - "BillingModeSummary": { - "BillingMode": "PAY_PER_REQUEST", - "LastUpdateToPayPerRequestDateTime": "datetime" - }, - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "keyName", - "KeyType": "HASH" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_ttl_cdk": { - "recorded-date": "14-02-2024, 13:29:07", - "recorded-content": { - "table": { - "TimeToLiveDescription": { - "AttributeName": "expire_at", - "TimeToLiveStatus": "ENABLED" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { - "recorded-date": "12-03-2024, 15:42:18", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "pk", - "AttributeType": "S" - }, - { - "AttributeName": "sk", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "pk", - "KeyType": "HASH" - }, - { - "AttributeName": "sk", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 1, - "WriteCapacityUnits": 1 - }, - "SSEDescription": { - "KMSMasterKeyArn": "", - "SSEType": "KMS", - "Status": "ENABLED" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { - "recorded-date": "12-03-2024, 15:44:36", - "recorded-content": { - "table_description": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "gsi1pk", - "AttributeType": "S" - }, - { - "AttributeName": "gsi1sk", - "AttributeType": "S" - }, - { - "AttributeName": "pk", - "AttributeType": "S" - }, - { - "AttributeName": "sk", - "AttributeType": "S" - } - ], - "BillingModeSummary": { - "BillingMode": "PAY_PER_REQUEST", - "LastUpdateToPayPerRequestDateTime": "datetime" - }, - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "GlobalSecondaryIndexes": [ - { - "IndexArn": "arn::dynamodb::111111111111:table//index/GSI1", - "IndexName": "GSI1", - "IndexSizeBytes": 0, - "IndexStatus": "ACTIVE", - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "gsi1pk", - "KeyType": "HASH" - }, - { - "AttributeName": "gsi1sk", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - } - } - ], - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "pk", - "KeyType": "HASH" - }, - { - "AttributeName": "sk", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 0, - "WriteCapacityUnits": 0 - }, - "SSEDescription": { - "KMSMasterKeyArn": "", - "SSEType": "KMS", - "Status": "ENABLED" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableClassSummary": { - "TableClass": "STANDARD" - }, - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_dynamodb.validation.json b/tests/aws/services/cloudformation/resources/test_dynamodb.validation.json deleted file mode 100644 index fc40777d4d842..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_dynamodb.validation.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PAY_PER_REQUEST]": { - "last_validated_date": "2023-08-28T10:35:02+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_billing_mode_as_conditional[PROVISIONED]": { - "last_validated_date": "2023-08-28T10:34:41+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_default_name_for_table": { - "last_validated_date": "2023-08-28T10:34:19+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table": { - "last_validated_date": "2023-12-01T11:54:13+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_global_table_with_ttl_and_sse": { - "last_validated_date": "2024-03-12T15:44:36+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_table_with_ttl_and_sse": { - "last_validated_date": "2024-03-12T15:42:18+00:00" - }, - "tests/aws/services/cloudformation/resources/test_dynamodb.py::test_ttl_cdk": { - "last_validated_date": "2024-02-14T13:29:07+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_ec2.snapshot.json b/tests/aws/services/cloudformation/resources/test_ec2.snapshot.json deleted file mode 100644 index bbdc8564773bf..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_ec2.snapshot.json +++ /dev/null @@ -1,310 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { - "recorded-date": "13-02-2023, 17:13:41", - "recorded-content": { - "outputs": { - "IdAttachment": "", - "RefAttachment": "" - }, - "description": { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LastUpdatedTimestamp": "timestamp", - "LogicalResourceId": "Gateway", - "Metadata": {}, - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::EC2::InternetGateway", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_dhcp_options": { - "recorded-date": "19-10-2023, 14:51:28", - "recorded-content": { - "description": { - "DhcpConfigurations": [ - { - "Key": "domain-name", - "Values": [ - { - "Value": "example.com" - } - ] - }, - { - "Key": "domain-name-servers", - "Values": [ - { - "Value": "AmazonProvidedDNS" - } - ] - }, - { - "Key": "netbios-name-servers", - "Values": [ - { - "Value": "10.2.5.1" - } - ] - }, - { - "Key": "netbios-node-type", - "Values": [ - { - "Value": "2" - } - ] - }, - { - "Key": "ntp-servers", - "Values": [ - { - "Value": "10.2.5.1" - } - ] - } - ], - "DhcpOptionsId": "", - "OwnerId": "111111111111", - "Tags": [ - { - "Key": "project", - "Value": "123" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "myDhcpOptions" - }, - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-698b113f" - }, - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-698b113f/d892a0f0-6eb8-11ee-ab19-0a5372e03565" - } - ] - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_transit_gateway_attachment": { - "recorded-date": "08-04-2025, 10:51:02", - "recorded-content": { - "attachment": { - "Association": { - "State": "associated", - "TransitGatewayRouteTableId": "" - }, - "CreationTime": "datetime", - "ResourceId": "", - "ResourceOwnerId": "111111111111", - "ResourceType": "vpc", - "State": "available", - "Tags": [ - { - "Key": "Name", - "Value": "example-tag" - } - ], - "TransitGatewayAttachmentId": "", - "TransitGatewayId": "", - "TransitGatewayOwnerId": "111111111111" - }, - "gateway": { - "CreationTime": "datetime", - "Description": "TGW Route Integration Test", - "Options": { - "AmazonSideAsn": 65000, - "AssociationDefaultRouteTableId": "", - "AutoAcceptSharedAttachments": "disable", - "DefaultRouteTableAssociation": "enable", - "DefaultRouteTablePropagation": "enable", - "DnsSupport": "enable", - "MulticastSupport": "disable", - "PropagationDefaultRouteTableId": "", - "SecurityGroupReferencingSupport": "disable", - "VpnEcmpSupport": "enable" - }, - "OwnerId": "111111111111", - "State": "available", - "Tags": [ - { - "Key": "Application", - "Value": "arn::cloudformation::111111111111:stack/stack-31597705/521e4e40-ecce-11ee-806c-0affc1ff51e7" - } - ], - "TransitGatewayArn": "arn::ec2::111111111111:transit-gateway/", - "TransitGatewayId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_with_route_table": { - "recorded-date": "19-06-2024, 16:48:31", - "recorded-content": { - "route_table": { - "RouteTables": [ - { - "Associations": [], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "100.0.0.0/20", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "Tags": { - "aws:cloudformation:logical-id": "RouteTable", - "aws:cloudformation:stack-id": "", - "aws:cloudformation:stack-name": "", - "env": "production" - }, - "VpcId": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { - "recorded-date": "01-07-2024, 20:10:52", - "recorded-content": { - "tags": { - "Name": "Suspicious Route Table" - }, - "route_table": { - "Associations": [], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "10.0.0.0/16", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "VpcId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation": { - "recorded-date": "01-07-2024, 20:13:48", - "recorded-content": { - "tags": { - "Name": "Suspicious Route table" - }, - "route_table": { - "Associations": [], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "10.0.0.0/16", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "VpcId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { - "recorded-date": "02-07-2024, 15:29:41", - "recorded-content": { - "route_table": { - "Associations": [ - { - "AssociationState": { - "State": "associated" - }, - "Main": false, - "RouteTableAssociationId": "", - "RouteTableId": "", - "SubnetId": "" - }, - { - "AssociationState": { - "State": "associated" - }, - "Main": false, - "RouteTableAssociationId": "", - "RouteTableId": "", - "SubnetId": "" - } - ], - "OwnerId": "111111111111", - "PropagatingVgws": [], - "RouteTableId": "", - "Routes": [ - { - "DestinationCidrBlock": "100.0.0.0/20", - "GatewayId": "local", - "Origin": "CreateRouteTable", - "State": "active" - } - ], - "Tags": [ - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-2264231d/d12f4090-3887-11ef-ba9f-0e78e2279133" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "RouteTable" - }, - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-2264231d" - }, - { - "Key": "env", - "Value": "production" - } - ], - "VpcId": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { - "recorded-date": "19-07-2024, 15:53:16", - "recorded-content": { - "references": { - "SGWithVpcIdGroupId": "", - "SGWithVpcIdRef": "", - "SGWithoutVpcIdGroupId": "", - "SGWithoutVpcIdRef": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_keypair_create_import": { - "recorded-date": "12-08-2024, 21:51:36", - "recorded-content": { - "outputs": { - "GeneratedKeyPairFingerprint": "", - "GeneratedKeyPairName": "", - "ImportedKeyPairFingerprint": "4LmcYnyBOqlloHZ5TKAxfa8BgMK2wL6WeOOTvXVdhmw=", - "ImportedKeyPairName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_gateway_attachment": { - "recorded-date": "18-07-2025, 20:52:38", - "recorded-content": { - "attachment-1-ref": "IGW|", - "attachment-2-ref": "VGW|" - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_ec2.validation.json b/tests/aws/services/cloudformation/resources/test_ec2.validation.json deleted file mode 100644 index f021838863205..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_ec2.validation.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ec2.py::test_cfn_update_ec2_instance_type": { - "last_validated_date": "2024-06-19T19:56:42+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_cfn_with_multiple_route_table_associations": { - "last_validated_date": "2024-07-02T15:29:41+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_dhcp_options": { - "last_validated_date": "2023-10-19T12:51:28+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_ec2_security_group_id_with_vpc": { - "last_validated_date": "2024-07-19T15:53:16+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_internet_gateway_ref_and_attr": { - "last_validated_date": "2023-02-13T16:13:41+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_keypair_create_import": { - "last_validated_date": "2024-08-12T21:51:36+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation": { - "last_validated_date": "2024-07-01T20:13:48+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_simple_route_table_creation_without_vpc": { - "last_validated_date": "2024-07-01T20:10:52+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_transit_gateway_attachment": { - "last_validated_date": "2025-04-08T10:51:02+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_creates_default_sg": { - "last_validated_date": "2024-04-01T11:21:54+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_gateway_attachment": { - "last_validated_date": "2025-07-18T20:50:13+00:00", - "durations_in_seconds": { - "setup": 1.21, - "call": 24.77, - "teardown": 6.47, - "total": 32.45 - } - }, - "tests/aws/services/cloudformation/resources/test_ec2.py::test_vpc_with_route_table": { - "last_validated_date": "2024-06-19T16:48:31+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_elasticsearch.snapshot.json b/tests/aws/services/cloudformation/resources/test_elasticsearch.snapshot.json deleted file mode 100644 index 68c60ae22ea86..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_elasticsearch.snapshot.json +++ /dev/null @@ -1,312 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { - "recorded-date": "02-07-2024, 17:30:21", - "recorded-content": { - "domain": { - "DomainStatus": { - "ARN": "arn::es::111111111111:domain/", - "AccessPolicies": "", - "AdvancedOptions": { - "override_main_response_version": "false", - "rest.action.multi.allow_explicit_index": "true" - }, - "AdvancedSecurityOptions": { - "AnonymousAuthEnabled": false, - "Enabled": false, - "InternalUserDatabaseEnabled": false - }, - "AutoTuneOptions": { - "State": "ENABLED" - }, - "ChangeProgressDetails": { - "ChangeId": "", - "ConfigChangeStatus": "ApplyingChanges", - "InitiatedBy": "CUSTOMER", - "LastUpdatedTime": "datetime", - "StartTime": "datetime" - }, - "CognitoOptions": { - "Enabled": false - }, - "Created": true, - "Deleted": false, - "DomainEndpointOptions": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "" - }, - "DomainId": "111111111111/", - "DomainName": "", - "DomainProcessingStatus": "Creating", - "EBSOptions": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 20, - "VolumeType": "gp2" - }, - "ElasticsearchClusterConfig": { - "ColdStorageOptions": { - "Enabled": false - }, - "DedicatedMasterCount": 3, - "DedicatedMasterEnabled": true, - "DedicatedMasterType": "m3.medium.elasticsearch", - "InstanceCount": 2, - "InstanceType": "m3.medium.elasticsearch", - "WarmEnabled": false, - "ZoneAwarenessConfig": { - "AvailabilityZoneCount": 2 - }, - "ZoneAwarenessEnabled": true - }, - "ElasticsearchVersion": "7.10", - "EncryptionAtRestOptions": { - "Enabled": false - }, - "Endpoint": "search--4kyrgtn4a3gwrja6k4o7nvcrha..es.amazonaws.com", - "ModifyingProperties": [ - { - "ActiveValue": "", - "Name": "AdvancedOptions", - "PendingValue": { - "override_main_response_version": "false", - "rest.action.multi.allow_explicit_index": "true" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.AnonymousAuthDisableDate", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.AnonymousAuthEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.InternalUserDatabaseEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.JWTOptions", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.MasterUserOptions", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "AdvancedSecurityOptions.SAMLOptions", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.ColdStorageOptions", - "PendingValue": { - "Enabled": false - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.DedicatedMasterCount", - "PendingValue": "3", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.DedicatedMasterEnabled", - "PendingValue": "true", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.DedicatedMasterType", - "PendingValue": "m3.medium.elasticsearch", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.InstanceCount", - "PendingValue": "2", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.InstanceType", - "PendingValue": "m3.medium.elasticsearch", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.MultiAZWithStandbyEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmCount", - "PendingValue": "", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmEnabled", - "PendingValue": "false", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmStorage", - "PendingValue": "", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.WarmType", - "PendingValue": "", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchClusterConfig.ZoneAwarenessEnabled", - "PendingValue": "true", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "ElasticsearchVersion", - "PendingValue": "7.10", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "IPAddressType", - "PendingValue": "ipv4", - "ValueType": "PLAIN_TEXT" - }, - { - "ActiveValue": "", - "Name": "TAGS", - "PendingValue": { - "k1": "v1", - "k2": "v2" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "DomainEndpointOptions", - "PendingValue": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "EBSOptions", - "PendingValue": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 20, - "VolumeType": "gp2" - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "EncryptionAtRestOptions", - "PendingValue": { - "Enabled": false - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "NodeToNodeEncryptionOptions", - "PendingValue": { - "Enabled": false - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "OffPeakWindowOptions", - "PendingValue": { - "Enabled": true, - "OffPeakWindow": { - "WindowStartTime": { - "Hours": 2, - "Minutes": 0 - } - } - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "SnapshotOptions", - "PendingValue": { - "AutomatedSnapshotStartHour": 0 - }, - "ValueType": "STRINGIFIED_JSON" - }, - { - "ActiveValue": "", - "Name": "SoftwareUpdateOptions", - "PendingValue": { - "AutoSoftwareUpdateEnabled": false - }, - "ValueType": "STRINGIFIED_JSON" - } - ], - "NodeToNodeEncryptionOptions": { - "Enabled": false - }, - "Processing": false, - "ServiceSoftwareOptions": { - "AutomatedUpdateDate": "datetime", - "Cancellable": false, - "CurrentVersion": "", - "Description": "", - "NewVersion": "", - "OptionalDeployment": true, - "UpdateAvailable": false, - "UpdateStatus": "COMPLETED" - }, - "SnapshotOptions": { - "AutomatedSnapshotStartHour": 0 - }, - "UpgradeProcessing": false - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "tags": [ - { - "Key": "k1", - "Value": "v1" - }, - { - "Key": "k2", - "Value": "v2" - } - ] - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_elasticsearch.validation.json b/tests/aws/services/cloudformation/resources/test_elasticsearch.validation.json deleted file mode 100644 index 9d7316454a5d3..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_elasticsearch.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_elasticsearch.py::test_cfn_handle_elasticsearch_domain": { - "last_validated_date": "2024-07-02T17:30:21+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_events.snapshot.json b/tests/aws/services/cloudformation/resources/test_events.snapshot.json deleted file mode 100644 index 5d8d88bbf3277..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_events.snapshot.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_properties": { - "recorded-date": "01-12-2023, 15:03:52", - "recorded-content": { - "outputs": { - "RuleWithNameArn": "arn::events::111111111111:rule//", - "RuleWithNameRef": "|", - "RuleWithoutBusArn": "arn::events::111111111111:rule/", - "RuleWithoutBusRef": "", - "RuleWithoutNameArn": "arn::events::111111111111:rule//", - "RuleWithoutNameRef": "|" - } - } - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_pattern_transformation": { - "recorded-date": "08-11-2024, 15:49:06", - "recorded-content": { - "rule": { - "Arn": "arn::events::111111111111:rule/", - "CreatedBy": "111111111111", - "EventBusName": "default", - "EventPattern": { - "detail-type": [ - "Object Created" - ], - "source": [ - "aws.s3" - ], - "detail": { - "bucket": { - "name": [ - "test-s3-bucket" - ] - }, - "object": { - "key": [ - { - "suffix": "/test.json" - } - ] - } - } - }, - "Name": "", - "State": "ENABLED", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_event_rule_creation_without_target": { - "recorded-date": "22-01-2025, 14:15:04", - "recorded-content": { - "describe_rule": { - "Arn": "arn::events::111111111111:rule/event-rule-name", - "CreatedBy": "111111111111", - "EventBusName": "default", - "Name": "event-rule-name", - "ScheduleExpression": "cron(0 1 * * ? *)", - "State": "ENABLED", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_events.validation.json b/tests/aws/services/cloudformation/resources/test_events.validation.json deleted file mode 100644 index 522c90d761786..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_events.validation.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_events.py::test_cfn_event_api_destination_resource": { - "last_validated_date": "2024-04-16T06:36:56+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_event_rule_creation_without_target": { - "last_validated_date": "2025-01-22T14:15:04+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_eventbus_policy_statement": { - "last_validated_date": "2024-11-14T21:46:23+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_pattern_transformation": { - "last_validated_date": "2024-11-08T15:49:06+00:00" - }, - "tests/aws/services/cloudformation/resources/test_events.py::test_rule_properties": { - "last_validated_date": "2023-12-01T14:03:52+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_firehose.snapshot.json b/tests/aws/services/cloudformation/resources/test_firehose.snapshot.json deleted file mode 100644 index 60c18238d4a2e..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_firehose.snapshot.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { - "recorded-date": "14-09-2022, 11:19:29", - "recorded-content": { - "outputs": { - "deliveryStreamRef": "" - }, - "delivery_stream": { - "DeliveryStreamDescription": { - "CreateTimestamp": "timestamp", - "DeliveryStreamARN": "arn::firehose::111111111111:deliverystream/", - "DeliveryStreamName": "", - "DeliveryStreamStatus": "ACTIVE", - "DeliveryStreamType": "KinesisStreamAsSource", - "Destinations": [ - { - "DestinationId": "destinationId-000000000001", - "ExtendedS3DestinationDescription": { - "BucketARN": "arn::s3:::", - "BufferingHints": { - "IntervalInSeconds": 60, - "SizeInMBs": 64 - }, - "CloudWatchLoggingOptions": { - "Enabled": false - }, - "CompressionFormat": "UNCOMPRESSED", - "DataFormatConversionConfiguration": { - "Enabled": false - }, - "DynamicPartitioningConfiguration": { - "Enabled": true, - "RetryOptions": { - "DurationInSeconds": 300 - } - }, - "EncryptionConfiguration": { - "NoEncryptionConfig": "NoEncryption" - }, - "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", - "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", - "ProcessingConfiguration": { - "Enabled": true, - "Processors": [ - { - "Parameters": [ - { - "ParameterName": "MetadataExtractionQuery", - "ParameterValue": "{s3Prefix: .tableName}" - }, - { - "ParameterName": "JsonParsingEngine", - "ParameterValue": "JQ-1.6" - } - ], - "Type": "MetadataExtraction" - } - ] - }, - "RoleARN": "arn::iam::111111111111:role/", - "S3BackupMode": "Disabled" - }, - "S3DestinationDescription": { - "BucketARN": "arn::s3:::", - "BufferingHints": { - "IntervalInSeconds": 60, - "SizeInMBs": 64 - }, - "CloudWatchLoggingOptions": { - "Enabled": false - }, - "CompressionFormat": "UNCOMPRESSED", - "EncryptionConfiguration": { - "NoEncryptionConfig": "NoEncryption" - }, - "ErrorOutputPrefix": "firehoseTest-errors/!{firehose:error-output-type}/", - "Prefix": "firehoseTest/!{partitionKeyFromQuery:s3Prefix}", - "RoleARN": "arn::iam::111111111111:role/" - } - } - ], - "HasMoreDestinations": false, - "Source": { - "KinesisStreamSourceDescription": { - "DeliveryStartTimestamp": "timestamp", - "KinesisStreamARN": "arn::kinesis::111111111111:stream/", - "RoleARN": "arn::iam::111111111111:role/" - } - }, - "VersionId": "1" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_firehose.validation.json b/tests/aws/services/cloudformation/resources/test_firehose.validation.json deleted file mode 100644 index 00fb017ef9f16..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_firehose.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_firehose.py::test_firehose_stack_with_kinesis_as_source": { - "last_validated_date": "2022-09-14T09:19:29+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_kinesis.snapshot.json b/tests/aws/services/cloudformation/resources/test_kinesis.snapshot.json deleted file mode 100644 index 9c1a3369a5d51..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_kinesis.snapshot.json +++ /dev/null @@ -1,279 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_stream_creation": { - "recorded-date": "12-09-2022, 14:11:29", - "recorded-content": { - "stack_output": { - "StreamArnFromAtt": "arn::kinesis::111111111111:stream/", - "StreamNameFromRef": "" - }, - "resource_description": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "TestStream", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Kinesis::Stream", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stream_description": { - "StreamDescription": { - "EncryptionType": "NONE", - "EnhancedMonitoring": [ - { - "ShardLevelMetrics": [] - } - ], - "HasMoreShards": false, - "RetentionPeriodHours": 24, - "Shards": [ - { - "HashKeyRange": { - "EndingHashKey": "", - "StartingHashKey": "0" - }, - "SequenceNumberRange": { - "StartingSequenceNumber": "" - }, - "ShardId": "shard-id" - } - ], - "StreamARN": "arn::kinesis::111111111111:stream/", - "StreamCreationTimestamp": "timestamp", - "StreamModeDetails": { - "StreamMode": "PROVISIONED" - }, - "StreamName": "", - "StreamStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_describe_template": { - "recorded-date": "22-05-2023, 09:25:32", - "recorded-content": { - "get_template_summary_by_url": { - "Capabilities": [ - "CAPABILITY_NAMED_IAM" - ], - "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", - "Parameters": [ - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisRoleName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "DeliveryStreamName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisStreamName", - "ParameterType": "String" - } - ], - "ResourceIdentifierSummaries": [ - { - "LogicalResourceIds": [ - "MyBucket" - ], - "ResourceIdentifiers": [ - "BucketName" - ], - "ResourceType": "AWS::S3::Bucket" - }, - { - "LogicalResourceIds": [ - "MyRole" - ], - "ResourceIdentifiers": [ - "RoleName" - ], - "ResourceType": "AWS::IAM::Role" - }, - { - "LogicalResourceIds": [ - "KinesisStream" - ], - "ResourceIdentifiers": [ - "Name" - ], - "ResourceType": "AWS::Kinesis::Stream" - }, - { - "LogicalResourceIds": [ - "DeliveryStream" - ], - "ResourceIdentifiers": [ - "DeliveryStreamName" - ], - "ResourceType": "AWS::KinesisFirehose::DeliveryStream" - } - ], - "ResourceTypes": [ - "AWS::Kinesis::Stream", - "AWS::IAM::Role", - "AWS::S3::Bucket", - "AWS::KinesisFirehose::DeliveryStream" - ], - "Version": "2010-09-09", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_template_summary_by_body": { - "Capabilities": [ - "CAPABILITY_NAMED_IAM" - ], - "CapabilitiesReason": "The following resource(s) require capabilities: [AWS::IAM::Role]", - "Parameters": [ - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisRoleName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "DeliveryStreamName", - "ParameterType": "String" - }, - { - "NoEcho": false, - "ParameterConstraints": {}, - "ParameterKey": "KinesisStreamName", - "ParameterType": "String" - } - ], - "ResourceIdentifierSummaries": [ - { - "LogicalResourceIds": [ - "MyBucket" - ], - "ResourceIdentifiers": [ - "BucketName" - ], - "ResourceType": "AWS::S3::Bucket" - }, - { - "LogicalResourceIds": [ - "MyRole" - ], - "ResourceIdentifiers": [ - "RoleName" - ], - "ResourceType": "AWS::IAM::Role" - }, - { - "LogicalResourceIds": [ - "KinesisStream" - ], - "ResourceIdentifiers": [ - "Name" - ], - "ResourceType": "AWS::Kinesis::Stream" - }, - { - "LogicalResourceIds": [ - "DeliveryStream" - ], - "ResourceIdentifiers": [ - "DeliveryStreamName" - ], - "ResourceType": "AWS::KinesisFirehose::DeliveryStream" - } - ], - "ResourceTypes": [ - "AWS::Kinesis::Stream", - "AWS::IAM::Role", - "AWS::S3::Bucket", - "AWS::KinesisFirehose::DeliveryStream" - ], - "Version": "2010-09-09", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_default_parameters_kinesis": { - "recorded-date": "02-07-2024, 18:59:10", - "recorded-content": { - "describe_stream": { - "StreamDescription": { - "EncryptionType": "NONE", - "EnhancedMonitoring": [ - { - "ShardLevelMetrics": [] - } - ], - "HasMoreShards": false, - "RetentionPeriodHours": 24, - "Shards": [ - { - "HashKeyRange": { - "EndingHashKey": "340282366920938463463374607431768211455", - "StartingHashKey": "0" - }, - "SequenceNumberRange": { - "StartingSequenceNumber": "" - }, - "ShardId": "" - } - ], - "StreamARN": "arn::kinesis::111111111111:stream/", - "StreamCreationTimestamp": "timestamp", - "StreamModeDetails": { - "StreamMode": "PROVISIONED" - }, - "StreamName": "", - "StreamStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { - "recorded-date": "02-07-2024, 19:48:27", - "recorded-content": { - "describe_kinesis_streaming_destination": { - "KinesisDataStreamDestinations": [ - { - "DestinationStatus": "ACTIVE", - "StreamArn": "arn::kinesis::111111111111:stream/EventStream" - } - ], - "TableName": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_kinesis.validation.json b/tests/aws/services/cloudformation/resources/test_kinesis.validation.json deleted file mode 100644 index d776667387072..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_kinesis.validation.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_cfn_handle_kinesis_firehose_resources": { - "last_validated_date": "2024-07-02T19:10:35+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_default_parameters_kinesis": { - "last_validated_date": "2024-07-02T18:59:10+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_describe_template": { - "last_validated_date": "2023-05-22T07:25:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_dynamodb_stream_response_with_cf": { - "last_validated_date": "2024-07-02T19:48:27+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kinesis.py::test_stream_creation": { - "last_validated_date": "2022-09-12T12:11:29+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_kms.snapshot.json b/tests/aws/services/cloudformation/resources/test_kms.snapshot.json deleted file mode 100644 index 02881db4ddbaa..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_kms.snapshot.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kms.py::test_cfn_with_kms_resources": { - "recorded-date": "29-05-2023, 15:45:17", - "recorded-content": { - "stack-outputs": { - "KeyAlias": "", - "KeyArn": "arn::kms::111111111111:key/" - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_kms.validation.json b/tests/aws/services/cloudformation/resources/test_kms.validation.json deleted file mode 100644 index b15d0a6ab48fc..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_kms.validation.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_kms.py::test_cfn_with_kms_resources": { - "last_validated_date": "2023-05-29T13:45:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kms.py::test_deploy_stack_with_kms": { - "last_validated_date": "2024-07-02T20:23:47+00:00" - }, - "tests/aws/services/cloudformation/resources/test_kms.py::test_kms_key_disabled": { - "last_validated_date": "2024-07-02T20:12:46+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_lambda.snapshot.json b/tests/aws/services/cloudformation/resources/test_lambda.snapshot.json deleted file mode 100644 index 484f94d6b4898..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_lambda.snapshot.json +++ /dev/null @@ -1,1892 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_lambda.py::test_cfn_function_url": { - "recorded-date": "16-04-2024, 08:16:02", - "recorded-content": { - "url_resource": { - "StackResourceDetail": { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LastUpdatedTimestamp": "timestamp", - "LogicalResourceId": "", - "Metadata": {}, - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Url", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "url_config": { - "AuthType": "NONE", - "CreationTime": "date", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionUrl": "", - "InvokeMode": "BUFFERED", - "LastModifiedTime": "date", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "exception_url_config_nonexistent_version": { - "Error": { - "Code": "ResourceNotFoundException", - "Message": "The resource you requested does not exist." - }, - "Message": "The resource you requested does not exist.", - "Type": "User", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 404 - } - }, - "url_config_arn": { - "AuthType": "NONE", - "CreationTime": "date", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionUrl": "", - "InvokeMode": "BUFFERED", - "LastModifiedTime": "date", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "response_headers": { - "connection": "keep-alive", - "content-length": "17", - "content-type": "application/json", - "date": "date", - "x-amzn-requestid": "", - "x-amzn-trace-id": "x-amzn-trace-id" - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_alias": { - "recorded-date": "07-05-2025, 15:39:26", - "recorded-content": { - "invoke_result": { - "ExecutedVersion": "1", - "Payload": { - "function_version": "1", - "initialization_type": null - }, - "StatusCode": 200, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stack_resource_descriptions": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "FunctionAlias", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Alias", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "LambdaFunction", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "MyFnServiceRole", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "Version", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "Alias": { - "AliasArn": "arn::lambda::111111111111:function:", - "Description": "", - "FunctionVersion": "1", - "Name": "", - "RevisionId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "provisioned_concurrency_config": { - "AllocatedProvisionedConcurrentExecutions": 1, - "AvailableProvisionedConcurrentExecutions": 1, - "LastModified": "date", - "RequestedProvisionedConcurrentExecutions": 1, - "Status": "READY", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { - "recorded-date": "09-04-2024, 07:26:03", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnAllowInvokeLambdaPermissionsStacktopicF723B1A748672DB5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Permission", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fntopic09ED913A", - "PhysicalResourceId": "arn::sns::111111111111::", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SNS::Subscription", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "topic69831491", - "PhysicalResourceId": "arn::sns::111111111111:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SNS::Topic", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_topic_attributes_result": { - "Attributes": { - "DisplayName": "", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_policy_result": { - "Policy": { - "Version": "2012-10-17", - "Id": "default", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": "sns.amazonaws.com" - }, - "Action": "lambda:InvokeFunction", - "Resource": "arn::lambda::111111111111:function:", - "Condition": { - "ArnLike": { - "AWS:SourceArn": "arn::sns::111111111111:" - } - } - } - ] - }, - "RevisionId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { - "recorded-date": "30-10-2024, 14:48:16", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Policy", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnSqsEventSourceLambdaSqsSourceStackq2097017B53C3FF8C", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::EventSourceMapping", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "q14836DC8", - "PhysicalResourceId": "https://sqs..amazonaws.com/111111111111/", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SQS::Queue", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "role_policies": { - "policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "sqs:ReceiveMessage", - "sqs:ChangeMessageVisibility", - "sqs:GetQueueUrl", - "sqs:DeleteMessage", - "sqs:GetQueueAttributes" - ], - "Effect": "Allow", - "Resource": "arn::sqs::111111111111:" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", - "RoleName": "", - "ResponseMetadata": "" - } - ] - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_esm_result": { - "BatchSize": 1, - "EventSourceArn": "arn::sqs::111111111111:", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "MaximumBatchingWindowInSeconds": 0, - "State": "Enabled", - "StateTransitionReason": "USER_INITIATED", - "UUID": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_queue_atts_result": { - "Attributes": { - "ApproximateNumberOfMessages": "0", - "ApproximateNumberOfMessagesDelayed": "0", - "ApproximateNumberOfMessagesNotVisible": "0", - "CreatedTimestamp": "timestamp", - "DelaySeconds": "0", - "LastModifiedTimestamp": "timestamp", - "MaximumMessageSize": "262144", - "MessageRetentionPeriod": "345600", - "QueueArn": "arn::sqs::111111111111:", - "ReceiveMessageWaitTimeSeconds": "0", - "SqsManagedSseEnabled": "true", - "VisibilityTimeout": "30" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_role_result": { - "Role": { - "Arn": "arn::iam::111111111111:role/", - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "CreateDate": "datetime", - "Description": "", - "MaxSessionDuration": 3600, - "Path": "/", - "RoleId": "", - "RoleLastUsed": {}, - "RoleName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_attached_role_policies_result": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "PolicyName": "AWSLambdaBasicExecutionRole" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_inline_role_policies_result": { - "IsTruncated": false, - "PolicyNames": [ - "fnServiceRoleDefaultPolicy0ED5D3E5" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_code_signing_config": { - "recorded-date": "09-04-2024, 07:19:51", - "recorded-content": { - "stack_resource_descriptions": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "CodeSigningConfig", - "PhysicalResourceId": "arn::lambda::111111111111:code-signing-config:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::CodeSigningConfig", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "config": { - "CodeSigningConfig": { - "AllowedPublishers": { - "SigningProfileVersionArns": [ - "arn::signer::111111111111:/signing-profiles/test" - ] - }, - "CodeSigningConfigArn": "arn::lambda::111111111111:code-signing-config:", - "CodeSigningConfigId": "", - "CodeSigningPolicies": { - "UntrustedArtifactOnDeployment": "Enforce" - }, - "Description": "Code Signing", - "LastModified": "date" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_event_invoke_config": { - "recorded-date": "09-04-2024, 07:20:36", - "recorded-content": { - "event_invoke_config": { - "DestinationConfig": { - "OnFailure": {}, - "OnSuccess": {} - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "LastModified": "datetime", - "MaximumEventAgeInSeconds": 300, - "MaximumRetryAttempts": 1, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version": { - "recorded-date": "07-05-2025, 13:19:10", - "recorded-content": { - "invoke_result": { - "ExecutedVersion": "1", - "Payload": { - "function_version": "1" - }, - "StatusCode": 200, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnVersion7BF8AE5A", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "versions_by_fn": { - "Versions": [ - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function::$LATEST", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function_version": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { - "recorded-date": "12-10-2024, 10:46:17", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnDynamoDBEventSourceLambdaDynamodbSourceStacktable153BBA79064FDF1D", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::EventSourceMapping", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Policy", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "table8235A42E", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::DynamoDB::Table", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "role_policies": { - "policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": "dynamodb:ListStreams", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": "arn::dynamodb::111111111111:table//stream/" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", - "RoleName": "", - "ResponseMetadata": "" - } - ] - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_esm_result": { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 0, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_table_result": { - "Table": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "CreationDateTime": "datetime", - "DeletionProtectionEnabled": false, - "ItemCount": 0, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "LatestStreamArn": "arn::dynamodb::111111111111:table//stream/", - "LatestStreamLabel": "", - "ProvisionedThroughput": { - "NumberOfDecreasesToday": 0, - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamEnabled": true, - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableArn": "arn::dynamodb::111111111111:table/", - "TableId": "", - "TableName": "", - "TableSizeBytes": 0, - "TableStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_stream_result": { - "StreamDescription": { - "CreationRequestDateTime": "datetime", - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "Shards": [ - { - "SequenceNumberRange": { - "StartingSequenceNumber": "starting-sequence-number" - }, - "ShardId": "shard-id" - } - ], - "StreamArn": "arn::dynamodb::111111111111:table//stream/", - "StreamLabel": "", - "StreamStatus": "ENABLED", - "StreamViewType": "NEW_AND_OLD_IMAGES", - "TableName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_role_result": { - "Role": { - "Arn": "arn::iam::111111111111:role/", - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "CreateDate": "datetime", - "Description": "", - "MaxSessionDuration": 3600, - "Path": "/", - "RoleId": "", - "RoleLastUsed": {}, - "RoleName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_attached_role_policies_result": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "PolicyName": "AWSLambdaBasicExecutionRole" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_inline_role_policies_result": { - "IsTruncated": false, - "PolicyNames": [ - "fnServiceRoleDefaultPolicy0ED5D3E5" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { - "recorded-date": "12-10-2024, 10:52:28", - "recorded-content": { - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnKinesisEventSourceLambdaKinesisSourceStackstream996A3395ED86A30E", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::EventSourceMapping", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRoleDefaultPolicy0ED5D3E5", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Policy", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "stream19075594", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Kinesis::Stream", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "role_policies": { - "policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "kinesis:DescribeStreamSummary", - "kinesis:GetRecords", - "kinesis:GetShardIterator", - "kinesis:ListShards", - "kinesis:SubscribeToShard", - "kinesis:DescribeStream", - "kinesis:ListStreams" - ], - "Effect": "Allow", - "Resource": "arn::kinesis::111111111111:stream/" - }, - { - "Action": "kinesis:DescribeStream", - "Effect": "Allow", - "Resource": "arn::kinesis::111111111111:stream/" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "fnServiceRoleDefaultPolicy0ED5D3E5", - "RoleName": "", - "ResponseMetadata": "" - } - ] - }, - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.9", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "fn5FF616E3", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_esm_result": { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::kinesis::111111111111:stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 10, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_stream_result": { - "StreamDescription": { - "EncryptionType": "NONE", - "EnhancedMonitoring": [ - { - "ShardLevelMetrics": [] - } - ], - "HasMoreShards": false, - "RetentionPeriodHours": 24, - "Shards": [ - { - "HashKeyRange": { - "EndingHashKey": "ending_hash", - "StartingHashKey": "starting_hash" - }, - "SequenceNumberRange": { - "StartingSequenceNumber": "starting-sequence-number" - }, - "ShardId": "shard-id" - } - ], - "StreamARN": "arn::kinesis::111111111111:stream/", - "StreamCreationTimestamp": "timestamp", - "StreamModeDetails": { - "StreamMode": "PROVISIONED" - }, - "StreamName": "", - "StreamStatus": "ACTIVE" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_role_result": { - "Role": { - "Arn": "arn::iam::111111111111:role/", - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "CreateDate": "datetime", - "Description": "", - "MaxSessionDuration": 3600, - "Path": "/", - "RoleId": "", - "RoleLastUsed": {}, - "RoleName": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_attached_role_policies_result": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", - "PolicyName": "AWSLambdaBasicExecutionRole" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_inline_role_policies_result": { - "IsTruncated": false, - "PolicyNames": [ - "fnServiceRoleDefaultPolicy0ED5D3E5" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { - "recorded-date": "09-04-2024, 07:25:05", - "recorded-content": { - "policy": { - "Policy": { - "Id": "default", - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Resource": "arn::lambda::111111111111:function:", - "Sid": "" - }, - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - }, - "Resource": "arn::lambda::111111111111:function:", - "Sid": "" - } - ], - "Version": "2012-10-17" - }, - "RevisionId": "", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { - "recorded-date": "09-04-2024, 07:39:50", - "recorded-content": { - "failed-async-lambda": { - "Messages": [ - { - "Body": {}, - "MD5OfBody": "99914b932bd37a50b983c5e7c90ae93b", - "MessageId": "", - "ReceiptHandle": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { - "recorded-date": "12-10-2024, 10:42:00", - "recorded-content": { - "source_mappings": { - "EventSourceMappings": [ - { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FilterCriteria": { - "Filters": [ - { - "Pattern": { - "eventName": [ - "DELETE" - ] - } - } - ] - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 0, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated_source_mappings": { - "EventSourceMappings": [ - { - "BatchSize": 1, - "BisectBatchOnFunctionError": false, - "DestinationConfig": { - "OnFailure": {} - }, - "EventSourceArn": "arn::dynamodb::111111111111:table//stream/", - "EventSourceMappingArn": "arn::lambda::111111111111:event-source-mapping:", - "FilterCriteria": { - "Filters": [ - { - "Pattern": { - "eventName": [ - "MODIFY" - ] - } - } - ] - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionResponseTypes": [], - "LastModified": "datetime", - "LastProcessingResult": "No records processed", - "MaximumBatchingWindowInSeconds": 0, - "MaximumRecordAgeInSeconds": -1, - "MaximumRetryAttempts": -1, - "ParallelizationFactor": 1, - "StartingPosition": "TRIM_HORIZON", - "State": "Enabled", - "StateTransitionReason": "User action", - "TumblingWindowInSeconds": 0, - "UUID": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_function_tags": { - "recorded-date": "01-10-2024, 12:52:51", - "recorded-content": { - "get_function_result": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.11", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "Environment": "", - "aws:cloudformation:logical-id": "TestFunction", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "lambda:createdBy": "SAM" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_layer_crud": { - "recorded-date": "20-12-2024, 18:23:31", - "recorded-content": { - "layer-name": "", - "cfn-output": { - "LambdaArn": "arn::lambda::111111111111:function:", - "LambdaName": "", - "LayerVersionArn": "arn::lambda::111111111111:layer::1", - "LayerVersionRef": "arn::lambda::111111111111:layer::1" - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_logging_config": { - "recorded-date": "08-04-2025, 12:10:56", - "recorded-content": { - "stack_resource_descriptions": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "logical-resource-id", - "PhysicalResourceId": "physical-resource-id", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "logical-resource-id", - "PhysicalResourceId": "physical-resource-id", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "logical-resource-id", - "PhysicalResourceId": "physical-resource-id", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "logging_config": { - "ApplicationLogLevel": "INFO", - "LogFormat": "JSON", - "LogGroup": "/aws/lambda/", - "SystemLogLevel": "INFO" - } - } - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version_provisioned_concurrency": { - "recorded-date": "07-05-2025, 13:23:25", - "recorded-content": { - "invoke_result": { - "ExecutedVersion": "1", - "Payload": { - "initialization_type": "provisioned-concurrency" - }, - "StatusCode": 200, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "stack_resources": { - "StackResources": [ - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fn5FF616E3", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Function", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnServiceRole5D180AFD", - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::IAM::Role", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - }, - { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LogicalResourceId": "fnVersion7BF8AE5A", - "PhysicalResourceId": "arn::lambda::111111111111:function:", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::Lambda::Version", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "", - "Timestamp": "timestamp" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "versions_by_fn": { - "Versions": [ - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function::$LATEST", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function_version": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "", - "CodeSize": "", - "Description": "test description", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.12", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "1" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "provisioned_concurrency_config": { - "AllocatedProvisionedConcurrentExecutions": 1, - "AvailableProvisionedConcurrentExecutions": 1, - "LastModified": "date", - "RequestedProvisionedConcurrentExecutions": 1, - "Status": "READY", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_lambda.validation.json b/tests/aws/services/cloudformation/resources/test_lambda.validation.json deleted file mode 100644 index e603d1df5aa41..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_lambda.validation.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaDestinations::test_generic_destination_routing[sqs-sqs]": { - "last_validated_date": "2024-12-10T16:48:04+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_dynamodb_source": { - "last_validated_date": "2024-10-12T10:46:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_kinesis_source": { - "last_validated_date": "2024-10-12T10:52:28+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_permissions": { - "last_validated_date": "2024-04-09T07:26:03+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_cfn_lambda_sqs_source": { - "last_validated_date": "2024-10-30T14:48:16+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::TestCfnLambdaIntegrations::test_lambda_dynamodb_event_filter": { - "last_validated_date": "2024-04-09T07:31:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_cfn_function_url": { - "last_validated_date": "2024-04-16T08:16:02+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_event_invoke_config": { - "last_validated_date": "2024-04-09T07:20:36+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_alias": { - "last_validated_date": "2025-05-07T15:39:26+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_cfn_dead_letter_config_async_invocation": { - "last_validated_date": "2024-04-09T07:39:50+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_cfn_run": { - "last_validated_date": "2024-04-09T07:22:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_code_signing_config": { - "last_validated_date": "2024-04-09T07:19:51+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_function_tags": { - "last_validated_date": "2024-10-01T12:52:51+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_layer_crud": { - "last_validated_date": "2024-12-20T18:23:31+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_logging_config": { - "last_validated_date": "2025-04-08T12:12:01+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version": { - "last_validated_date": "2025-05-07T13:19:10+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_version_provisioned_concurrency": { - "last_validated_date": "2025-05-07T13:23:25+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_lambda_w_dynamodb_event_filter_update": { - "last_validated_date": "2024-12-11T09:03:52+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_multiple_lambda_permissions_for_singlefn": { - "last_validated_date": "2024-04-09T07:25:05+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_python_lambda_code_deployed_via_s3": { - "last_validated_date": "2024-04-09T07:38:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_update_lambda_function": { - "last_validated_date": "2024-11-07T03:16:40+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_update_lambda_function_name": { - "last_validated_date": "2024-11-07T03:10:48+00:00" - }, - "tests/aws/services/cloudformation/resources/test_lambda.py::test_update_lambda_permissions": { - "last_validated_date": "2024-04-09T07:23:41+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_logs.snapshot.json b/tests/aws/services/cloudformation/resources/test_logs.snapshot.json deleted file mode 100644 index 8ad8af97a9ca5..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_logs.snapshot.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_logs.py::test_logstream": { - "recorded-date": "29-07-2022, 13:22:53", - "recorded-content": { - "outputs": { - "LogStreamNameOutput": "", - "LogGroupNameOutput": "" - }, - "describe_log_streams": [ - { - "logStreamName": "", - "creationTime": "timestamp", - "arn": "arn::logs::111111111111:log-group::log-stream:", - "storedBytes": 0 - } - ] - } - }, - "tests/aws/services/cloudformation/resources/test_logs.py::test_cfn_handle_log_group_resource": { - "recorded-date": "20-06-2024, 16:15:47", - "recorded-content": { - "describe_log_groups": { - "logGroups": [ - { - "arn": "arn::logs::111111111111:log-group::*", - "creationTime": "timestamp", - "logGroupArn": "arn::logs::111111111111:log-group:", - "logGroupClass": "STANDARD", - "logGroupName": "", - "metricFilterCount": 0, - "retentionInDays": 731, - "storedBytes": 0 - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_logs.validation.json b/tests/aws/services/cloudformation/resources/test_logs.validation.json deleted file mode 100644 index fce835093de2a..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_logs.validation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_logs.py::test_cfn_handle_log_group_resource": { - "last_validated_date": "2024-06-20T16:15:47+00:00" - }, - "tests/aws/services/cloudformation/resources/test_logs.py::test_logstream": { - "last_validated_date": "2022-07-29T11:22:53+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_opensearch.snapshot.json b/tests/aws/services/cloudformation/resources/test_opensearch.snapshot.json deleted file mode 100644 index b34b9f39259d9..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_opensearch.snapshot.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain": { - "recorded-date": "31-08-2023, 17:42:29", - "recorded-content": { - "describe_domain": { - "DomainStatus": { - "ARN": "arn::es::111111111111:domain/", - "AccessPolicies": "", - "AdvancedOptions": { - "override_main_response_version": "false", - "rest.action.multi.allow_explicit_index": "false" - }, - "AdvancedSecurityOptions": { - "AnonymousAuthEnabled": false, - "Enabled": false, - "InternalUserDatabaseEnabled": false - }, - "AutoTuneOptions": { - "State": "ENABLED", - "UseOffPeakWindow": false - }, - "ChangeProgressDetails": { - "ChangeId": "" - }, - "ClusterConfig": { - "ColdStorageOptions": { - "Enabled": false - }, - "DedicatedMasterEnabled": false, - "InstanceCount": 1, - "InstanceType": "r5.large.search", - "MultiAZWithStandbyEnabled": false, - "WarmEnabled": false, - "ZoneAwarenessEnabled": false - }, - "CognitoOptions": { - "Enabled": false - }, - "Created": true, - "Deleted": false, - "DomainEndpointOptions": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "Policy-Min-TLS-1-0-2019-07" - }, - "DomainId": "", - "DomainName": "", - "EBSOptions": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 10, - "VolumeType": "gp2" - }, - "EncryptionAtRestOptions": { - "Enabled": false - }, - "Endpoint": "", - "EngineVersion": "OpenSearch_2.5", - "NodeToNodeEncryptionOptions": { - "Enabled": false - }, - "OffPeakWindowOptions": { - "Enabled": true, - "OffPeakWindow": { - "WindowStartTime": { - "Hours": 2, - "Minutes": 0 - } - } - }, - "Processing": false, - "ServiceSoftwareOptions": { - "AutomatedUpdateDate": "datetime", - "Cancellable": false, - "CurrentVersion": "OpenSearch_2_5_R20230308-P4", - "Description": "There is no software update available for this domain.", - "NewVersion": "", - "OptionalDeployment": true, - "UpdateAvailable": false, - "UpdateStatus": "COMPLETED" - }, - "SnapshotOptions": { - "AutomatedSnapshotStartHour": 0 - }, - "SoftwareUpdateOptions": { - "AutoSoftwareUpdateEnabled": false - }, - "UpgradeProcessing": false - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "list_tags": { - "TagList": [ - { - "Key": "anotherkey", - "Value": "hello" - }, - { - "Key": "foo", - "Value": "bar" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain_with_alternative_types": { - "recorded-date": "08-07-2025, 02:30:47", - "recorded-content": { - "describe_domain": { - "DomainStatus": { - "AIMLOptions": { - "NaturalLanguageQueryGenerationOptions": { - "CurrentState": "NOT_ENABLED", - "DesiredState": "DISABLED" - } - }, - "ARN": "arn::es::111111111111:domain/test-opensearch-domain", - "AccessPolicies": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "arn::iam::111111111111:root" - }, - "Action": "es:*", - "Resource": "arn::es::111111111111:domain/test-opensearch-domain/*" - } - ] - }, - "AdvancedOptions": { - "override_main_response_version": "true", - "rest.action.multi.allow_explicit_index": "true" - }, - "AdvancedSecurityOptions": { - "AnonymousAuthEnabled": false, - "Enabled": false, - "InternalUserDatabaseEnabled": false - }, - "AutoTuneOptions": { - "State": "DISABLED", - "UseOffPeakWindow": false - }, - "ChangeProgressDetails": { - "ChangeId": "", - "ConfigChangeStatus": "Completed", - "InitiatedBy": "CUSTOMER", - "LastUpdatedTime": "datetime", - "StartTime": "datetime" - }, - "ClusterConfig": { - "ColdStorageOptions": { - "Enabled": false - }, - "DedicatedMasterCount": 3, - "DedicatedMasterEnabled": true, - "DedicatedMasterType": "t3.small.search", - "InstanceCount": 2, - "InstanceType": "t3.small.search", - "MultiAZWithStandbyEnabled": false, - "WarmEnabled": false, - "ZoneAwarenessConfig": { - "AvailabilityZoneCount": 2 - }, - "ZoneAwarenessEnabled": true - }, - "CognitoOptions": { - "Enabled": false - }, - "Created": true, - "Deleted": false, - "DomainEndpointOptions": { - "CustomEndpointEnabled": false, - "EnforceHTTPS": false, - "TLSSecurityPolicy": "Policy-Min-TLS-1-2-2019-07" - }, - "DomainId": "111111111111/test-opensearch-domain", - "DomainName": "test-opensearch-domain", - "DomainProcessingStatus": "Active", - "EBSOptions": { - "EBSEnabled": true, - "Iops": 0, - "VolumeSize": 20, - "VolumeType": "gp2" - }, - "EncryptionAtRestOptions": { - "Enabled": false - }, - "Endpoint": "", - "EngineVersion": "OpenSearch_1.0", - "IPAddressType": "ipv4", - "IdentityCenterOptions": {}, - "ModifyingProperties": [], - "NodeToNodeEncryptionOptions": { - "Enabled": false - }, - "OffPeakWindowOptions": { - "Enabled": true, - "OffPeakWindow": { - "WindowStartTime": { - "Hours": 2, - "Minutes": 0 - } - } - }, - "Processing": false, - "ServiceSoftwareOptions": { - "AutomatedUpdateDate": "datetime", - "Cancellable": false, - "CurrentVersion": "OpenSearch_1_0_R20250625", - "Description": "There is no software update available for this domain.", - "NewVersion": "", - "OptionalDeployment": true, - "UpdateAvailable": false, - "UpdateStatus": "COMPLETED" - }, - "SnapshotOptions": { - "AutomatedSnapshotStartHour": 0 - }, - "SoftwareUpdateOptions": { - "AutoSoftwareUpdateEnabled": false - }, - "UpgradeProcessing": false - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_opensearch.validation.json b/tests/aws/services/cloudformation/resources/test_opensearch.validation.json deleted file mode 100644 index b0eeb4668caf4..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_opensearch.validation.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain": { - "last_validated_date": "2023-08-31T15:42:29+00:00" - }, - "tests/aws/services/cloudformation/resources/test_opensearch.py::test_domain_with_alternative_types": { - "last_validated_date": "2025-07-08T02:45:56+00:00", - "durations_in_seconds": { - "setup": 0.59, - "call": 746.75, - "teardown": 908.35, - "total": 1655.69 - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_redshift.validation.json b/tests/aws/services/cloudformation/resources/test_redshift.validation.json deleted file mode 100644 index 85f6c8b23f3fd..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_redshift.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_redshift.py::test_redshift_cluster": { - "last_validated_date": "2024-02-28T12:42:35+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_resource_groups.snapshot.json b/tests/aws/services/cloudformation/resources/test_resource_groups.snapshot.json deleted file mode 100644 index 573102ae41068..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_resource_groups.snapshot.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_resource_groups.py::test_group_defaults": { - "recorded-date": "16-07-2024, 15:15:11", - "recorded-content": { - "resource-group": { - "Group": { - "GroupArn": "arn::resource-groups::111111111111:group/testgroup", - "Name": "testgroup" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_resource_groups.validation.json b/tests/aws/services/cloudformation/resources/test_resource_groups.validation.json deleted file mode 100644 index af3ad56458b0f..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_resource_groups.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_resource_groups.py::test_group_defaults": { - "last_validated_date": "2024-07-16T15:15:11+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_route53.snapshot.json b/tests/aws/services/cloudformation/resources/test_route53.snapshot.json deleted file mode 100644 index 78372c10e3b32..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_route53.snapshot.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_route53.py::test_create_health_check": { - "recorded-date": "22-09-2023, 13:50:49", - "recorded-content": { - "HealthCheck": { - "CallerReference": "", - "HealthCheckConfig": { - "Disabled": false, - "EnableSNI": false, - "FailureThreshold": 3, - "FullyQualifiedDomainName": "localstacktest.com", - "IPAddress": "1.1.1.1", - "Inverted": false, - "MeasureLatency": false, - "Port": 80, - "RequestInterval": 30, - "ResourcePath": "/health", - "Type": "HTTP" - }, - "HealthCheckVersion": 1, - "Id": "" - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_route53.validation.json b/tests/aws/services/cloudformation/resources/test_route53.validation.json deleted file mode 100644 index 8b56e5dacfa51..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_route53.validation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_route53.py::test_create_health_check": { - "last_validated_date": "2023-09-22T11:50:49+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_s3.snapshot.json b/tests/aws/services/cloudformation/resources/test_s3.snapshot.json deleted file mode 100644 index d39c2900a9cef..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_s3.snapshot.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_s3.py::test_cors_configuration": { - "recorded-date": "20-04-2023, 20:17:17", - "recorded-content": { - "cors-info-optional": { - "CORSRules": [ - { - "AllowedHeaders": [ - "*", - "x-amz-*" - ], - "AllowedMethods": [ - "GET" - ], - "AllowedOrigins": [ - "*" - ], - "ExposeHeaders": [ - "Date" - ], - "ID": "test-cors-id", - "MaxAgeSeconds": 3600 - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "cors-info-only-required": { - "CORSRules": [ - { - "AllowedMethods": [ - "GET" - ], - "AllowedOrigins": [ - "*" - ] - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_website_configuration": { - "recorded-date": "02-06-2023, 18:24:39", - "recorded-content": { - "get_bucket_website": { - "ErrorDocument": { - "Key": "error.html" - }, - "IndexDocument": { - "Suffix": "index.html" - }, - "RoutingRules": [ - { - "Condition": { - "HttpErrorCodeReturnedEquals": "404", - "KeyPrefixEquals": "out1/" - }, - "Redirect": { - "ReplaceKeyWith": "redirected.html" - } - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_object_lock_configuration": { - "recorded-date": "15-01-2024, 02:31:58", - "recorded-content": { - "object-lock-info-with-configuration": { - "ObjectLockConfiguration": { - "ObjectLockEnabled": "Enabled", - "Rule": { - "DefaultRetention": { - "Days": 2, - "Mode": "GOVERNANCE" - } - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "object-lock-info-only-enabled": { - "ObjectLockConfiguration": { - "ObjectLockEnabled": "Enabled" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_bucketpolicy": { - "recorded-date": "31-05-2024, 13:41:44", - "recorded-content": { - "bucket": { - "BucketName": "" - }, - "get-policy-true": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Resource": [ - "arn::s3:::", - "arn::s3:::/*" - ] - } - ] - }, - "no-policy": { - "Error": { - "BucketName": "", - "Code": "NoSuchBucketPolicy", - "Message": "The bucket policy does not exist" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 404 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { - "recorded-date": "20-06-2024, 16:57:13", - "recorded-content": { - "get_bucket_notification_configuration": { - "QueueConfigurations": [ - { - "Events": [ - "s3:ObjectCreated:*" - ], - "Id": "", - "QueueArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_bucket_notification_configuration_error": { - "Error": { - "BucketName": "", - "Code": "NoSuchBucket", - "Message": "The specified bucket does not exist" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 404 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_s3.validation.json b/tests/aws/services/cloudformation/resources/test_s3.validation.json deleted file mode 100644 index 4bea4f6890cbe..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_s3.validation.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_s3.py::test_bucket_versioning": { - "last_validated_date": "2024-05-31T13:44:37+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_bucketpolicy": { - "last_validated_date": "2024-05-31T13:41:44+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_cfn_handle_s3_notification_configuration": { - "last_validated_date": "2024-06-20T16:57:13+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_cors_configuration": { - "last_validated_date": "2023-04-20T18:17:17+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_object_lock_configuration": { - "last_validated_date": "2024-01-15T02:31:58+00:00" - }, - "tests/aws/services/cloudformation/resources/test_s3.py::test_website_configuration": { - "last_validated_date": "2023-06-02T16:24:39+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_sam.snapshot.json b/tests/aws/services/cloudformation/resources/test_sam.snapshot.json deleted file mode 100644 index 7acf32c30322a..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_sam.snapshot.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sam.py::test_sam_policies": { - "recorded-date": "11-07-2023, 18:08:53", - "recorded-content": { - "list_attached_role_policies": { - "AttachedPolicies": [ - { - "PolicyArn": "arn::iam::aws:policy/service-role/", - "PolicyName": "" - }, - { - "PolicyArn": "arn::iam::aws:policy/", - "PolicyName": "" - } - ], - "IsTruncated": false, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sam.py::test_cfn_handle_serverless_api_resource": { - "recorded-date": "15-07-2025, 19:31:46", - "recorded-content": { - "get_rest_api": { - "apiKeySource": "HEADER", - "createdDate": "datetime", - "disableExecuteApiEndpoint": false, - "endpointConfiguration": { - "ipAddressType": "ipv4", - "types": [ - "EDGE" - ] - }, - "id": "", - "name": "", - "rootResourceId": "", - "tags": { - "aws:cloudformation:logical-id": "Api", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "" - }, - "version": "1.0", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "get_function": { - "Code": { - "Location": "", - "RepositoryType": "S3" - }, - "Configuration": { - "Architectures": [ - "x86_64" - ], - "CodeSha256": "EvPuzuBz5Tmw0kKjgaQva4dsYcd10oxkSwFlAElJESw=", - "CodeSize": "", - "Description": "", - "EphemeralStorage": { - "Size": 512 - }, - "FunctionArn": "arn::lambda::111111111111:function:", - "FunctionName": "", - "Handler": "index.handler", - "LastModified": "date", - "LastUpdateStatus": "Successful", - "LoggingConfig": { - "LogFormat": "Text", - "LogGroup": "/aws/lambda/" - }, - "MemorySize": 128, - "PackageType": "Zip", - "RevisionId": "", - "Role": "arn::iam::111111111111:role/", - "Runtime": "python3.11", - "RuntimeVersionConfig": { - "RuntimeVersionArn": "arn::lambda:::runtime:" - }, - "SnapStart": { - "ApplyOn": "None", - "OptimizationStatus": "Off" - }, - "State": "Active", - "Timeout": 3, - "TracingConfig": { - "Mode": "PassThrough" - }, - "Version": "$LATEST" - }, - "Tags": { - "aws:cloudformation:logical-id": "Lambda", - "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", - "aws:cloudformation:stack-name": "", - "lambda:createdBy": "SAM" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_secretsmanager.snapshot.json b/tests/aws/services/cloudformation/resources/test_secretsmanager.snapshot.json deleted file mode 100644 index bce81e41e19ca..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_secretsmanager.snapshot.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { - "recorded-date": "03-07-2024, 18:51:39", - "recorded-content": { - "outputs": { - "SecretId": "arn::secretsmanager::111111111111:secret:", - "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" - }, - "resource_policy": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "Name": "", - "ResourcePolicy": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "arn::iam::111111111111:root" - }, - "Action": "secretsmanager:ReplicateSecretToRegions", - "Resource": "*" - } - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { - "recorded-date": "03-07-2024, 18:52:05", - "recorded-content": { - "outputs": { - "SecretId": "arn::secretsmanager::111111111111:secret:", - "SecretPolicyArn": "arn::secretsmanager::111111111111:secret:" - }, - "resource_policy": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "Name": "", - "ResourcePolicy": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "AWS": "arn::iam::111111111111:root" - }, - "Action": "secretsmanager:ReplicateSecretToRegions", - "Resource": "*" - } - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { - "recorded-date": "23-05-2024, 17:15:31", - "recorded-content": { - "generated_key": { - "ARN": "", - "CreatedDate": "datetime", - "Name": "", - "SecretString": "secret-string", - "VersionId": "", - "VersionStages": [ - "AWSCURRENT" - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { - "recorded-date": "03-07-2024, 15:39:56", - "recorded-content": { - "secret": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "CreatedDate": "datetime", - "Description": "Aurora Password", - "LastChangedDate": "datetime", - "Name": "", - "Tags": [ - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-63e3fdc5" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "Secret" - }, - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-63e3fdc5/79663e60-3952-11ef-809b-0affeb5ce635" - } - ], - "VersionIdsToStages": { - "2b1f1af7-47ee-aee1-5609-991d4352ae14": [ - "AWSCURRENT" - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { - "recorded-date": "11-10-2024, 17:00:31", - "recorded-content": { - "secret": { - "ARN": "arn::secretsmanager::111111111111:secret:", - "CreatedDate": "datetime", - "Description": "Aurora Password", - "LastChangedDate": "datetime", - "Name": "", - "Tags": [ - { - "Key": "aws:cloudformation:stack-name", - "Value": "stack-ab33fda4" - }, - { - "Key": "aws:cloudformation:logical-id", - "Value": "Secret" - }, - { - "Key": "aws:cloudformation:stack-id", - "Value": "arn::cloudformation::111111111111:stack/stack-ab33fda4/47ecee80-87f2-11ef-8f16-0a113fcea55f" - } - ], - "VersionIdsToStages": { - "c80fca61-0302-7921-4b9b-c2c16bc6f457": [ - "AWSCURRENT" - ] - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "exception": { - "Error": { - "Code": "ResourceNotFoundException", - "Message": "Secrets Manager can't find the specified secret." - }, - "Message": "Secrets Manager can't find the specified secret.", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 400 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_secretsmanager.validation.json b/tests/aws/services/cloudformation/resources/test_secretsmanager.validation.json deleted file mode 100644 index 53e71f633e0d3..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_secretsmanager.validation.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cdk_deployment_generates_secret_value_if_no_value_is_provided": { - "last_validated_date": "2024-05-23T17:15:31+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_handle_secretsmanager_secret": { - "last_validated_date": "2024-10-11T17:00:31+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[default]": { - "last_validated_date": "2024-08-01T12:22:53+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secret_policy[true]": { - "last_validated_date": "2024-08-01T12:22:32+00:00" - }, - "tests/aws/services/cloudformation/resources/test_secretsmanager.py::test_cfn_secretsmanager_gen_secret": { - "last_validated_date": "2024-07-03T15:39:56+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_sns.snapshot.json b/tests/aws/services/cloudformation/resources/test_sns.snapshot.json deleted file mode 100644 index a2c5c8ca6e2d7..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_sns.snapshot.json +++ /dev/null @@ -1,530 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { - "recorded-date": "27-11-2023, 21:27:29", - "recorded-content": { - "get-topic-attrs": { - "Attributes": { - "ContentBasedDeduplication": "true", - "DisplayName": "", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "FifoTopic": "true", - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_update_subscription": { - "recorded-date": "29-03-2024, 21:16:26", - "recorded-content": { - "subscription-1": { - "Attributes": { - "ConfirmationWasAuthenticated": "true", - "Endpoint": "arn::sqs::111111111111:", - "Owner": "111111111111", - "PendingConfirmation": "false", - "Protocol": "sqs", - "RawMessageDelivery": "true", - "SubscriptionArn": "arn::sns::111111111111::", - "SubscriptionPrincipal": "arn::iam::111111111111:user/", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "subscription-2": { - "Attributes": { - "ConfirmationWasAuthenticated": "true", - "Endpoint": "arn::sqs::111111111111:", - "Owner": "111111111111", - "PendingConfirmation": "false", - "Protocol": "sqs", - "RawMessageDelivery": "false", - "SubscriptionArn": "arn::sns::111111111111::", - "SubscriptionPrincipal": "arn::iam::111111111111:user/", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_with_attributes": { - "recorded-date": "16-08-2024, 15:44:50", - "recorded-content": { - "topic-archive-policy": { - "MessageRetentionPeriod": "30" - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_subscription_region": { - "recorded-date": "28-05-2025, 10:47:01", - "recorded-content": { - "subscription-1": { - "Attributes": { - "ConfirmationWasAuthenticated": "true", - "Endpoint": "arn::sqs::111111111111:", - "Owner": "111111111111", - "PendingConfirmation": "false", - "Protocol": "sqs", - "RawMessageDelivery": "true", - "SubscriptionArn": "arn::sns::111111111111::", - "SubscriptionPrincipal": "arn::iam::111111111111:user/", - "TopicArn": "arn::sns::111111111111:" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_attributes": { - "recorded-date": "03-07-2025, 17:18:54", - "recorded-content": { - "initial-topic-attributes": { - "Attributes": { - "DisplayName": "Initial Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "initial-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "updated-topic-attributes": { - "Attributes": { - "DisplayName": "Updated Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "new-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_name": { - "recorded-date": "03-07-2025, 17:17:06", - "recorded-content": { - "initial-topic-attributes": { - "Attributes": { - "DisplayName": "Initial Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "initial-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "new-topic-attributes": { - "Attributes": { - "DisplayName": "Updated Display Name", - "EffectiveDeliveryPolicy": { - "http": { - "defaultHealthyRetryPolicy": { - "minDelayTarget": 20, - "maxDelayTarget": 20, - "numRetries": 3, - "numMaxDelayRetries": 0, - "numNoDelayRetries": 0, - "numMinDelayRetries": 0, - "backoffFunction": "linear" - }, - "disableSubscriptionOverrides": false, - "defaultRequestPolicy": { - "headerContentType": "text/plain; charset=UTF-8" - } - } - }, - "Owner": "111111111111", - "Policy": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "SubscriptionsConfirmed": "0", - "SubscriptionsDeleted": "0", - "SubscriptionsPending": "0", - "TopicArn": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "new-subscriptions": { - "Subscriptions": [ - { - "Endpoint": "test@example.com", - "Owner": "111111111111", - "Protocol": "email", - "SubscriptionArn": "PendingConfirmation", - "TopicArn": "" - } - ], - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_policy_resets_to_default": { - "recorded-date": "04-07-2025, 00:04:32", - "recorded-content": { - "default-topic-attributes": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - }, - "modified-topic-attributes": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "0", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": "sns:Publish", - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "aws:SourceAccount": "111111111111" - } - } - } - ] - }, - "reverted-topic-attributes": { - "Version": "2008-10-17", - "Id": "__default_policy_ID", - "Statement": [ - { - "Sid": "__default_statement_ID", - "Effect": "Allow", - "Principal": { - "AWS": "*" - }, - "Action": [ - "SNS:GetTopicAttributes", - "SNS:SetTopicAttributes", - "SNS:AddPermission", - "SNS:RemovePermission", - "SNS:DeleteTopic", - "SNS:Subscribe", - "SNS:ListSubscriptionsByTopic", - "SNS:Publish" - ], - "Resource": "arn::sns::111111111111:", - "Condition": { - "StringEquals": { - "AWS:SourceOwner": "111111111111" - } - } - } - ] - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_sns.validation.json b/tests/aws/services/cloudformation/resources/test_sns.validation.json deleted file mode 100644 index 52731d78dd633..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_sns.validation.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_subscription_region": { - "last_validated_date": "2025-05-28T10:46:56+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_fifo_with_deduplication": { - "last_validated_date": "2023-11-27T20:27:29+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_attributes": { - "last_validated_date": "2025-07-03T17:19:44+00:00", - "durations_in_seconds": { - "setup": 0.59, - "call": 41.07, - "teardown": 50.12, - "total": 91.78 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_update_name": { - "last_validated_date": "2025-07-03T17:17:56+00:00", - "durations_in_seconds": { - "setup": 0.54, - "call": 73.16, - "teardown": 50.36, - "total": 124.06 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_policy_resets_to_default": { - "last_validated_date": "2025-07-04T00:04:32+00:00", - "durations_in_seconds": { - "setup": 1.08, - "call": 22.27, - "teardown": 0.09, - "total": 23.44 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_sns_topic_with_attributes": { - "last_validated_date": "2025-07-03T23:32:29+00:00", - "durations_in_seconds": { - "setup": 0.8, - "call": 21.33, - "teardown": 0.0, - "total": 22.13 - } - }, - "tests/aws/services/cloudformation/resources/test_sns.py::test_update_subscription": { - "last_validated_date": "2024-03-29T21:16:21+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_sqs.snapshot.json b/tests/aws/services/cloudformation/resources/test_sqs.snapshot.json deleted file mode 100644 index 118cc86349d2d..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_sqs.snapshot.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_queue_no_change": { - "recorded-date": "08-12-2023, 21:11:26", - "recorded-content": { - "outputs-1": { - "QueueArn": "", - "QueueUrl": "" - }, - "outputs-2": { - "QueueArn": "", - "QueueUrl": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_sqs_queuepolicy": { - "recorded-date": "27-03-2024, 20:30:24", - "recorded-content": { - "policy1": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": "*", - "Action": [ - "sqs:SendMessage", - "sqs:GetQueueAttributes", - "sqs:GetQueueUrl" - ], - "Resource": "arn::sqs::111111111111:" - } - ] - }, - "policy2": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Deny", - "Principal": "*", - "Action": [ - "sqs:SendMessage", - "sqs:GetQueueAttributes", - "sqs:GetQueueUrl" - ], - "Resource": "arn::sqs::111111111111:" - } - ] - } - } - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_queue_policy": { - "recorded-date": "03-07-2024, 19:49:04", - "recorded-content": { - "policy": { - "Attributes": { - "Policy": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": "*", - "Action": [ - "sqs:SendMessage", - "sqs:GetQueueAttributes", - "sqs:GetQueueUrl" - ], - "Resource": "" - } - ] - } - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_cfn_handle_sqs_resource": { - "recorded-date": "03-07-2024, 20:03:51", - "recorded-content": { - "queue": { - "Attributes": { - "ApproximateNumberOfMessages": "0", - "ApproximateNumberOfMessagesDelayed": "0", - "ApproximateNumberOfMessagesNotVisible": "0", - "ContentBasedDeduplication": "false", - "CreatedTimestamp": "timestamp", - "DeduplicationScope": "queue", - "DelaySeconds": "0", - "FifoQueue": "true", - "FifoThroughputLimit": "perQueue", - "LastModifiedTimestamp": "timestamp", - "MaximumMessageSize": "262144", - "MessageRetentionPeriod": "345600", - "QueueArn": "arn::sqs::111111111111:.fifo", - "ReceiveMessageWaitTimeSeconds": "0", - "SqsManagedSseEnabled": "true", - "VisibilityTimeout": "30" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "error": { - "Error": { - "Code": "AWS.SimpleQueueService.NonExistentQueue", - "Message": "The specified queue does not exist.", - "QueryErrorCode": "QueueDoesNotExist", - "Type": "Sender" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 400 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_sqs.validation.json b/tests/aws/services/cloudformation/resources/test_sqs.validation.json deleted file mode 100644 index c28ce1e66b2ee..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_sqs.validation.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_sqs.py::test_cfn_handle_sqs_resource": { - "last_validated_date": "2024-07-03T20:03:51+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_fifo_queue_generates_valid_name": { - "last_validated_date": "2024-05-15T02:01:00+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_non_fifo_queue_generates_valid_name": { - "last_validated_date": "2024-05-15T01:59:34+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_sqs_queue_policy": { - "last_validated_date": "2024-07-03T19:49:04+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_queue_no_change": { - "last_validated_date": "2023-12-08T20:11:26+00:00" - }, - "tests/aws/services/cloudformation/resources/test_sqs.py::test_update_sqs_queuepolicy": { - "last_validated_date": "2024-03-27T20:30:23+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_ssm.snapshot.json b/tests/aws/services/cloudformation/resources/test_ssm.snapshot.json deleted file mode 100644 index 965db77613394..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_ssm.snapshot.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ssm.py::test_deploy_patch_baseline": { - "recorded-date": "05-07-2023, 10:13:24", - "recorded-content": { - "patch_baseline": { - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - }, - "LastUpdatedTimestamp": "timestamp", - "LogicalResourceId": "myPatchBaseline", - "Metadata": {}, - "PhysicalResourceId": "", - "ResourceStatus": "CREATE_COMPLETE", - "ResourceType": "AWS::SSM::PatchBaseline", - "StackId": "arn::cloudformation::111111111111:stack//", - "StackName": "" - } - } - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_maintenance_window": { - "recorded-date": "14-07-2023, 14:06:23", - "recorded-content": { - "MaintenanceWindow": [ - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchBaselineAML", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::PatchBaseline", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchBaselineAML2", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::PatchBaseline", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchServerMaintenanceWindow", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::MaintenanceWindow", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchServerMaintenanceWindowTarget", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::MaintenanceWindowTarget", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - }, - { - "StackName": "", - "StackId": "arn::cloudformation::111111111111:stack//", - "LogicalResourceId": "PatchServerTask", - "PhysicalResourceId": "", - "ResourceType": "AWS::SSM::MaintenanceWindowTask", - "Timestamp": "timestamp", - "ResourceStatus": "CREATE_COMPLETE", - "DriftInformation": { - "StackResourceDriftStatus": "NOT_CHECKED" - } - } - ] - } - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_parameter_defaults": { - "recorded-date": "03-07-2024, 20:30:04", - "recorded-content": { - "ssm_parameter": { - "Parameter": { - "ARN": "arn::ssm::111111111111:parameter/", - "DataType": "text", - "LastModifiedDate": "datetime", - "Name": "", - "Type": "String", - "Value": "", - "Version": 1 - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "ssm_parameter_not_found": { - "Error": { - "Code": "ParameterNotFound", - "Message": "" - }, - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 400 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_ssm.validation.json b/tests/aws/services/cloudformation/resources/test_ssm.validation.json deleted file mode 100644 index 7c58a30d142f5..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_ssm.validation.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_ssm.py::test_deploy_patch_baseline": { - "last_validated_date": "2023-07-05T08:13:24+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_maintenance_window": { - "last_validated_date": "2023-07-14T12:06:23+00:00" - }, - "tests/aws/services/cloudformation/resources/test_ssm.py::test_parameter_defaults": { - "last_validated_date": "2024-07-03T20:30:04+00:00" - } -} diff --git a/tests/aws/services/cloudformation/resources/test_stepfunctions.snapshot.json b/tests/aws/services/cloudformation/resources/test_stepfunctions.snapshot.json deleted file mode 100644 index 0a71d3489d9ce..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_stepfunctions.snapshot.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { - "recorded-date": "17-12-2024, 16:06:46", - "recorded-content": { - "describe_state_machine_output_on_create": { - "creationDate": "datetime", - "definition": { - "Comment": "step: on create", - "StartAt": "S0", - "States": { - "S0": { - "Type": "Succeed" - } - } - }, - "encryptionConfiguration": { - "type": "AWS_OWNED_KEY" - }, - "loggingConfiguration": { - "includeExecutionData": false, - "level": "OFF" - }, - "name": "", - "roleArn": "", - "stateMachineArn": "", - "status": "ACTIVE", - "tracingConfiguration": { - "enabled": false - }, - "type": "STANDARD", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - }, - "describe_state_machine_output_on_update": { - "creationDate": "datetime", - "definition": { - "Comment": "step: on update", - "StartAt": "S0", - "States": { - "S0": { - "Type": "Succeed" - } - } - }, - "encryptionConfiguration": { - "type": "AWS_OWNED_KEY" - }, - "loggingConfiguration": { - "includeExecutionData": false, - "level": "OFF" - }, - "name": "", - "revisionId": "", - "roleArn": "", - "stateMachineArn": "", - "status": "ACTIVE", - "tracingConfiguration": { - "enabled": false - }, - "type": "STANDARD", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - }, - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { - "recorded-date": "24-03-2025, 21:58:55", - "recorded-content": { - "describe_state_machine_result": { - "creationDate": "datetime", - "definition": { - "StartAt": "S0", - "States": { - "S0": { - "Type": "Pass", - "End": true - } - } - }, - "encryptionConfiguration": { - "type": "AWS_OWNED_KEY" - }, - "loggingConfiguration": { - "destinations": [ - { - "cloudWatchLogsLogGroup": { - "logGroupArn": "" - } - } - ], - "includeExecutionData": true, - "level": "ALL" - }, - "name": "", - "roleArn": "", - "stateMachineArn": "", - "status": "ACTIVE", - "tracingConfiguration": { - "enabled": false - }, - "type": "STANDARD", - "ResponseMetadata": { - "HTTPHeaders": {}, - "HTTPStatusCode": 200 - } - } - } - } -} diff --git a/tests/aws/services/cloudformation/resources/test_stepfunctions.validation.json b/tests/aws/services/cloudformation/resources/test_stepfunctions.validation.json deleted file mode 100644 index 7c3fd62726991..0000000000000 --- a/tests/aws/services/cloudformation/resources/test_stepfunctions.validation.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_cfn_statemachine_default_s3_location": { - "last_validated_date": "2024-12-17T16:06:46+00:00" - }, - "tests/aws/services/cloudformation/resources/test_stepfunctions.py::test_statemachine_create_with_logging_configuration": { - "last_validated_date": "2025-03-24T21:58:55+00:00" - } -} From 496c344ea236e91f6902ae7981545b1203257517 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 17:28:16 +0100 Subject: [PATCH 06/13] Execute resources tests on cloudformation changes --- .../testing/testselection/matching.py | 29 +++++++++++++++++++ .../testing/testselection/test_matching.py | 10 ++----- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/localstack-core/localstack/testing/testselection/matching.py b/localstack-core/localstack/testing/testselection/matching.py index 4bf5e9bfaca2d..a917c6d9d5392 100644 --- a/localstack-core/localstack/testing/testselection/matching.py +++ b/localstack-core/localstack/testing/testselection/matching.py @@ -1,4 +1,5 @@ import fnmatch +import glob import pathlib import re from collections import defaultdict @@ -162,6 +163,32 @@ def generic_service_test_matching_rule( return set() +def cloudformation_resource_provider_rule( + changed_file_path: str, + search_patterns: Iterable[str] = DEFAULT_SEARCH_PATTERNS, + test_dirs: Iterable[str] = ("tests/aws/services",), +) -> Iterable[str]: + root_dir = (pathlib.Path.cwd() / ".." / ".." / ".." / "..").resolve() + match = None + for pattern in search_patterns: + match = re.findall(pattern, changed_file_path) + if match: + break + + if match: + changed_service = match[0] + if changed_service != "cloudformation": + return [] + + out = set() + for test_dir in test_dirs: + resources_dirs = list(glob.iglob(f"{root_dir / test_dir}/*/resources")) + for resource_dir in resources_dirs: + out.add(str(pathlib.Path(resource_dir).relative_to(root_dir))) + + return out + + MatchingRule = Callable[[str], Iterable[str]] @@ -206,4 +233,6 @@ def check_rule_has_matches(rule: MatchingRule, files: Iterable[str]) -> bool: Matchers.glob(".git-blame-ignore-revs").ignore(), # lambda Matchers.glob("tests/aws/services/lambda_/functions/**").service_tests(services=["lambda"]), + # CloudFormation + cloudformation_resource_provider_rule, ] diff --git a/tests/unit/testing/testselection/test_matching.py b/tests/unit/testing/testselection/test_matching.py index f87d627c0d3f0..bb777a4e2e263 100644 --- a/tests/unit/testing/testselection/test_matching.py +++ b/tests/unit/testing/testselection/test_matching.py @@ -140,15 +140,9 @@ def test_directory_rules_no_match(): assert selected_tests == [SENTINEL_ALL_TESTS] -def test_cloudformation_tests_executed_on_service_changes(): - selected_tests = get_affected_tests_from_changes( - ["localstack/services/lambda_/provider.py"], MATCHING_RULES - ) - assert selected_tests == [] - - def test_service_tests_executed_on_cloudformation_changes(): selected_tests = get_affected_tests_from_changes( ["localstack/services/cloudformation/provider.py"], MATCHING_RULES ) - assert "tests/aws/services/lambda_/resource_providers/" in selected_tests + # picking lambda as an example + assert "tests/aws/services/lambda_/resources" in selected_tests From 5458c37ec06996e2d90650e0baf59e8a1fe0ede0 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 17:34:13 +0100 Subject: [PATCH 07/13] Add testing commit with single change This is so we have some concrete commits to manually test with --- localstack-core/localstack/services/cloudformation/provider.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/localstack-core/localstack/services/cloudformation/provider.py b/localstack-core/localstack/services/cloudformation/provider.py index e9dc163b6fb0c..5256174b58cfb 100644 --- a/localstack-core/localstack/services/cloudformation/provider.py +++ b/localstack-core/localstack/services/cloudformation/provider.py @@ -1347,3 +1347,6 @@ def get_listable_types_summaries(plugin_manager): type_summaries.extend(get_listable_types_summaries(pro_plugin_manager)) return ListTypesOutput(TypeSummaries=type_summaries) + + +foo From c580ed2db8f2ec815009775396a9423bc124393f Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 22:07:35 +0100 Subject: [PATCH 08/13] Manual testing and correction with the CLI script --- localstack-core/localstack/testing/testselection/matching.py | 2 +- tests/unit/testing/testselection/test_matching.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/localstack-core/localstack/testing/testselection/matching.py b/localstack-core/localstack/testing/testselection/matching.py index a917c6d9d5392..228d3c1532c0e 100644 --- a/localstack-core/localstack/testing/testselection/matching.py +++ b/localstack-core/localstack/testing/testselection/matching.py @@ -168,7 +168,7 @@ def cloudformation_resource_provider_rule( search_patterns: Iterable[str] = DEFAULT_SEARCH_PATTERNS, test_dirs: Iterable[str] = ("tests/aws/services",), ) -> Iterable[str]: - root_dir = (pathlib.Path.cwd() / ".." / ".." / ".." / "..").resolve() + root_dir = (pathlib.Path(__file__).parent / ".." / ".." / ".." / "..").resolve() match = None for pattern in search_patterns: match = re.findall(pattern, changed_file_path) diff --git a/tests/unit/testing/testselection/test_matching.py b/tests/unit/testing/testselection/test_matching.py index bb777a4e2e263..b90085e215f6c 100644 --- a/tests/unit/testing/testselection/test_matching.py +++ b/tests/unit/testing/testselection/test_matching.py @@ -142,7 +142,7 @@ def test_directory_rules_no_match(): def test_service_tests_executed_on_cloudformation_changes(): selected_tests = get_affected_tests_from_changes( - ["localstack/services/cloudformation/provider.py"], MATCHING_RULES + ["localstack-core/localstack/services/cloudformation/provider.py"], MATCHING_RULES ) # picking lambda as an example assert "tests/aws/services/lambda_/resources" in selected_tests From 15b96fe8c3fbc83129026f2b64311fbd752a981e Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 22:07:41 +0100 Subject: [PATCH 09/13] Revert "WIP" This reverts commit 03eac103d70fe1466293279f14ef8c3449e27971. --- localstack-core/localstack/services/cloudformation/provider.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/localstack-core/localstack/services/cloudformation/provider.py b/localstack-core/localstack/services/cloudformation/provider.py index 5256174b58cfb..e9dc163b6fb0c 100644 --- a/localstack-core/localstack/services/cloudformation/provider.py +++ b/localstack-core/localstack/services/cloudformation/provider.py @@ -1347,6 +1347,3 @@ def get_listable_types_summaries(plugin_manager): type_summaries.extend(get_listable_types_summaries(pro_plugin_manager)) return ListTypesOutput(TypeSummaries=type_summaries) - - -foo From 9cf3a84ff3ba144620abda32c70808b1feb9fd8c Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 22:52:41 +0100 Subject: [PATCH 10/13] Update snapshots and missing files to get tests to pass diff --git c/tests/aws/services/apigateway/resources/test_apigateway.py i/tests/aws/services/apigateway/resources/test_apigateway.py index 199909d9079b..8c304cfb2e8b 100644 --- c/tests/aws/services/apigateway/resources/test_apigateway.py +++ i/tests/aws/services/apigateway/resources/test_apigateway.py @@ -306,6 +306,7 @@ def test_cfn_deploy_apigateway_models(deploy_cfn_template, snapshot, aws_client) @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..endpointConfiguration.ipAddressType"]) def test_cfn_deploy_apigateway_integration(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformer(snapshot.transform.key_value("cacheNamespace")) @@ -340,6 +341,7 @@ def test_cfn_deploy_apigateway_integration(deploy_cfn_template, snapshot, aws_cl # TODO: missing from LS response "$.get-stage.methodSettings", "$.get-stage.tags", + "$..endpointConfiguration.ipAddressType", ] ) def test_cfn_deploy_apigateway_from_s3_swagger( @@ -538,6 +540,7 @@ def test_update_apigateway_stage(deploy_cfn_template, snapshot, aws_client): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..endpointConfiguration.ipAddressType"]) def test_api_gateway_with_policy_as_dict(deploy_cfn_template, snapshot, aws_client): template = """ Parameters: diff --git c/tests/aws/services/cloudformation/resources/test_sam.snapshot.json i/tests/aws/services/cloudformation/resources/test_sam.snapshot.json new file mode 100644 index 000000000000..a32c542e7655 --- /dev/null +++ i/tests/aws/services/cloudformation/resources/test_sam.snapshot.json @@ -0,0 +1,106 @@ +{ + "tests/aws/services/cloudformation/resources/test_sam.py::test_sam_policies": { + "recorded-date": "11-07-2023, 18:08:53", + "recorded-content": { + "list_attached_role_policies": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/", + "PolicyName": "" + }, + { + "PolicyArn": "arn::iam::aws:policy/", + "PolicyName": "" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/cloudformation/resources/test_sam.py::test_cfn_handle_serverless_api_resource": { + "recorded-date": "20-06-2024, 20:16:01", + "recorded-content": { + "get_rest_api": { + "apiKeySource": "HEADER", + "createdDate": "datetime", + "disableExecuteApiEndpoint": false, + "endpointConfiguration": { + "types": [ + "EDGE" + ] + }, + "id": "", + "name": "", + "rootResourceId": "", + "tags": { + "aws:cloudformation:logical-id": "Api", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "version": "1.0", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_function": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "+xvKfGS3ENINs/yK7dLJgId2fDM+vv9OP03rJ9mLflU=", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.11", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "Lambda", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "", + "lambda:createdBy": "SAM" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git c/tests/aws/services/cloudwatch/resources/test_cloudwatch.py i/tests/aws/services/cloudwatch/resources/test_cloudwatch.py index f445f1310dc9..e957270fbcbd 100644 --- c/tests/aws/services/cloudwatch/resources/test_cloudwatch.py +++ i/tests/aws/services/cloudwatch/resources/test_cloudwatch.py @@ -48,6 +48,8 @@ def test_alarm_creation(deploy_cfn_template, snapshot): "$..StateReason", "$..StateReasonData", "$..StateValue", + # only for v1 + "$..StateTransitionedTimestamp", ] ) def test_composite_alarm_creation(aws_client, deploy_cfn_template, snapshot): @@ -94,6 +96,12 @@ def test_composite_alarm_creation(aws_client, deploy_cfn_template, snapshot): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify( + paths=[ + # only for v1 + "$..StateTransitionedTimestamp", + ] +) def test_alarm_ext_statistic(aws_client, deploy_cfn_template, snapshot): snapshot.add_transformer(snapshot.transform.cloudwatch_api()) stack = deploy_cfn_template( diff --git c/tests/aws/services/dynamodb/resources/test_dynamodb.py i/tests/aws/services/dynamodb/resources/test_dynamodb.py index 43c0bb7ecc76..d6876e36acc0 100644 --- c/tests/aws/services/dynamodb/resources/test_dynamodb.py +++ i/tests/aws/services/dynamodb/resources/test_dynamodb.py @@ -69,6 +69,7 @@ def test_globalindex_read_write_provisioned_throughput_dynamodb_table( "$..Table.ProvisionedThroughput.LastIncreaseDateTime", "$..Table.Replicas", "$..Table.DeletionProtectionEnabled", + "$..Table.WarmThroughput", ] ) def test_default_name_for_table(deploy_cfn_template, snapshot, aws_client): @@ -94,6 +95,7 @@ def test_default_name_for_table(deploy_cfn_template, snapshot, aws_client): "$..Table.ProvisionedThroughput.LastIncreaseDateTime", "$..Table.Replicas", "$..Table.DeletionProtectionEnabled", + "$..Table.WarmThroughput", ] ) @pytest.mark.parametrize("billing_mode", ["PROVISIONED", "PAY_PER_REQUEST"]) @@ -121,6 +123,7 @@ def test_billing_mode_as_conditional(deploy_cfn_template, snapshot, aws_client, "$..Table.ProvisionedThroughput.LastDecreaseDateTime", "$..Table.ProvisionedThroughput.LastIncreaseDateTime", "$..Table.Replicas", + "$..Table.WarmThroughput", ] ) def test_global_table(deploy_cfn_template, snapshot, aws_client, region_name): diff --git c/tests/aws/services/es/resources/test_elasticsearch.py i/tests/aws/services/es/resources/test_elasticsearch.py index e88424fe31ae..6cadf028b0ae 100644 --- c/tests/aws/services/es/resources/test_elasticsearch.py +++ i/tests/aws/services/es/resources/test_elasticsearch.py @@ -17,6 +17,8 @@ from localstack.utils.strings import short_uid "$..DomainStatus.ElasticsearchClusterConfig.InstanceCount", "$..DomainStatus.ElasticsearchClusterConfig.ZoneAwarenessConfig", "$..DomainStatus.ElasticsearchClusterConfig.ZoneAwarenessEnabled", + "$..DomainStatus.ElasticsearchClusterConfig.DedicatedMasterType", + "$..DomainStatus.ElasticsearchClusterConfig.InstanceType", "$..DomainStatus.Endpoint", "$..DomainStatus.ModifyingProperties", "$..DomainStatus.Processing", diff --git c/tests/aws/services/lambda_/resources/test_lambda.py i/tests/aws/services/lambda_/resources/test_lambda.py index f40489799615..265fc5f69ab3 100644 --- c/tests/aws/services/lambda_/resources/test_lambda.py +++ i/tests/aws/services/lambda_/resources/test_lambda.py @@ -656,6 +656,7 @@ class TestCfnLambdaIntegrations: "$..CodeSize", "$..Configuration.Layers", "$..Tags", # missing cloudformation automatic resource tags for the lambda function + "$..RevisionId", ] ) @markers.aws.validated @@ -890,6 +891,7 @@ class TestCfnLambdaIntegrations: "$..Table.Replicas", # stream result "$..StreamDescription.CreationRequestDateTime", + "$..Table.WarmThroughput", ] ) @markers.aws.validated diff --git c/tests/aws/services/opensearch/resources/test_opensearch.py i/tests/aws/services/opensearch/resources/test_opensearch.py index 152e574aecff..bc57887c659e 100644 --- c/tests/aws/services/opensearch/resources/test_opensearch.py +++ i/tests/aws/services/opensearch/resources/test_opensearch.py @@ -70,6 +70,14 @@ def test_domain(deploy_cfn_template, aws_client, snapshot): "$..DomainStatus.OffPeakWindowOptions", "$..DomainStatus.ServiceSoftwareOptions.CurrentVersion", "$..DomainStatus.SoftwareUpdateOptions", + "$..DomainStatus.AIMLOptions", + "$..DomainStatus.ClusterConfig.DedicatedMasterType", + "$..DomainStatus.ClusterConfig.InstanceType", + "$..DomainStatus.DomainEndpointOptions.TLSSecurityPolicy", + "$..DomainStatus.DomainProcessingStatus", + "$..DomainStatus.IPAddressType", + "$..DomainStatus.IdentityCenterOptions", + "$..DomainStatus.ModifyingProperties", ] ) def test_domain_with_alternative_types(deploy_cfn_template, aws_client, snapshot): diff --git c/tests/aws/services/s3/resources/test_s3.py i/tests/aws/services/s3/resources/test_s3.py index a2374796fe3e..88be10fc8c41 100644 --- c/tests/aws/services/s3/resources/test_s3.py +++ i/tests/aws/services/s3/resources/test_s3.py @@ -86,6 +86,7 @@ def test_website_configuration(deploy_cfn_template, snapshot, aws_client): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..CORSRules..MaxAgeSeconds"]) def test_cors_configuration(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformer(snapshot.transform.cloudformation_api()) snapshot.add_transformer(snapshot.transform.s3_api()) diff --git c/tests/aws/services/sns/resources/test_sns.py i/tests/aws/services/sns/resources/test_sns.py index 340804f12226..8bc36effa8df 100644 --- c/tests/aws/services/sns/resources/test_sns.py +++ i/tests/aws/services/sns/resources/test_sns.py @@ -105,6 +105,7 @@ def test_deploy_stack_with_sns_topic(deploy_cfn_template, aws_client): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..Attributes.SubscriptionPrincipal"]) def test_update_subscription(snapshot, deploy_cfn_template, aws_client, sqs_queue, sns_topic): topic_arn = sns_topic["Attributes"]["TopicArn"] queue_url = sqs_queue --- .../apigateway/resources/test_apigateway.py | 3 + .../resources/test_sam.snapshot.json | 106 ++++++++++++++++++ .../cloudwatch/resources/test_cloudwatch.py | 8 ++ .../dynamodb/resources/test_dynamodb.py | 3 + .../es/resources/test_elasticsearch.py | 2 + .../services/lambda_/resources/test_lambda.py | 2 + .../opensearch/resources/test_opensearch.py | 8 ++ tests/aws/services/s3/resources/test_s3.py | 1 + tests/aws/services/sns/resources/test_sns.py | 1 + 9 files changed, 134 insertions(+) create mode 100644 tests/aws/services/cloudformation/resources/test_sam.snapshot.json diff --git a/tests/aws/services/apigateway/resources/test_apigateway.py b/tests/aws/services/apigateway/resources/test_apigateway.py index 199909d9079b9..8c304cfb2e8b2 100644 --- a/tests/aws/services/apigateway/resources/test_apigateway.py +++ b/tests/aws/services/apigateway/resources/test_apigateway.py @@ -306,6 +306,7 @@ def test_cfn_deploy_apigateway_models(deploy_cfn_template, snapshot, aws_client) @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..endpointConfiguration.ipAddressType"]) def test_cfn_deploy_apigateway_integration(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformer(snapshot.transform.key_value("cacheNamespace")) @@ -340,6 +341,7 @@ def test_cfn_deploy_apigateway_integration(deploy_cfn_template, snapshot, aws_cl # TODO: missing from LS response "$.get-stage.methodSettings", "$.get-stage.tags", + "$..endpointConfiguration.ipAddressType", ] ) def test_cfn_deploy_apigateway_from_s3_swagger( @@ -538,6 +540,7 @@ def test_update_apigateway_stage(deploy_cfn_template, snapshot, aws_client): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..endpointConfiguration.ipAddressType"]) def test_api_gateway_with_policy_as_dict(deploy_cfn_template, snapshot, aws_client): template = """ Parameters: diff --git a/tests/aws/services/cloudformation/resources/test_sam.snapshot.json b/tests/aws/services/cloudformation/resources/test_sam.snapshot.json new file mode 100644 index 0000000000000..a32c542e76555 --- /dev/null +++ b/tests/aws/services/cloudformation/resources/test_sam.snapshot.json @@ -0,0 +1,106 @@ +{ + "tests/aws/services/cloudformation/resources/test_sam.py::test_sam_policies": { + "recorded-date": "11-07-2023, 18:08:53", + "recorded-content": { + "list_attached_role_policies": { + "AttachedPolicies": [ + { + "PolicyArn": "arn::iam::aws:policy/service-role/", + "PolicyName": "" + }, + { + "PolicyArn": "arn::iam::aws:policy/", + "PolicyName": "" + } + ], + "IsTruncated": false, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + }, + "tests/aws/services/cloudformation/resources/test_sam.py::test_cfn_handle_serverless_api_resource": { + "recorded-date": "20-06-2024, 20:16:01", + "recorded-content": { + "get_rest_api": { + "apiKeySource": "HEADER", + "createdDate": "datetime", + "disableExecuteApiEndpoint": false, + "endpointConfiguration": { + "types": [ + "EDGE" + ] + }, + "id": "", + "name": "", + "rootResourceId": "", + "tags": { + "aws:cloudformation:logical-id": "Api", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "" + }, + "version": "1.0", + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + }, + "get_function": { + "Code": { + "Location": "", + "RepositoryType": "S3" + }, + "Configuration": { + "Architectures": [ + "x86_64" + ], + "CodeSha256": "+xvKfGS3ENINs/yK7dLJgId2fDM+vv9OP03rJ9mLflU=", + "CodeSize": "", + "Description": "", + "EphemeralStorage": { + "Size": 512 + }, + "FunctionArn": "arn::lambda::111111111111:function:", + "FunctionName": "", + "Handler": "index.handler", + "LastModified": "date", + "LastUpdateStatus": "Successful", + "LoggingConfig": { + "LogFormat": "Text", + "LogGroup": "/aws/lambda/" + }, + "MemorySize": 128, + "PackageType": "Zip", + "RevisionId": "", + "Role": "arn::iam::111111111111:role/", + "Runtime": "python3.11", + "RuntimeVersionConfig": { + "RuntimeVersionArn": "arn::lambda:::runtime:" + }, + "SnapStart": { + "ApplyOn": "None", + "OptimizationStatus": "Off" + }, + "State": "Active", + "Timeout": 3, + "TracingConfig": { + "Mode": "PassThrough" + }, + "Version": "$LATEST" + }, + "Tags": { + "aws:cloudformation:logical-id": "Lambda", + "aws:cloudformation:stack-id": "arn::cloudformation::111111111111:stack//", + "aws:cloudformation:stack-name": "", + "lambda:createdBy": "SAM" + }, + "ResponseMetadata": { + "HTTPHeaders": {}, + "HTTPStatusCode": 200 + } + } + } + } +} diff --git a/tests/aws/services/cloudwatch/resources/test_cloudwatch.py b/tests/aws/services/cloudwatch/resources/test_cloudwatch.py index f445f1310dc93..e957270fbcbde 100644 --- a/tests/aws/services/cloudwatch/resources/test_cloudwatch.py +++ b/tests/aws/services/cloudwatch/resources/test_cloudwatch.py @@ -48,6 +48,8 @@ def test_alarm_creation(deploy_cfn_template, snapshot): "$..StateReason", "$..StateReasonData", "$..StateValue", + # only for v1 + "$..StateTransitionedTimestamp", ] ) def test_composite_alarm_creation(aws_client, deploy_cfn_template, snapshot): @@ -94,6 +96,12 @@ def alarm_action_name_transformer(key: str, val: str): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify( + paths=[ + # only for v1 + "$..StateTransitionedTimestamp", + ] +) def test_alarm_ext_statistic(aws_client, deploy_cfn_template, snapshot): snapshot.add_transformer(snapshot.transform.cloudwatch_api()) stack = deploy_cfn_template( diff --git a/tests/aws/services/dynamodb/resources/test_dynamodb.py b/tests/aws/services/dynamodb/resources/test_dynamodb.py index 43c0bb7ecc768..d6876e36acc0c 100644 --- a/tests/aws/services/dynamodb/resources/test_dynamodb.py +++ b/tests/aws/services/dynamodb/resources/test_dynamodb.py @@ -69,6 +69,7 @@ def test_globalindex_read_write_provisioned_throughput_dynamodb_table( "$..Table.ProvisionedThroughput.LastIncreaseDateTime", "$..Table.Replicas", "$..Table.DeletionProtectionEnabled", + "$..Table.WarmThroughput", ] ) def test_default_name_for_table(deploy_cfn_template, snapshot, aws_client): @@ -94,6 +95,7 @@ def test_default_name_for_table(deploy_cfn_template, snapshot, aws_client): "$..Table.ProvisionedThroughput.LastIncreaseDateTime", "$..Table.Replicas", "$..Table.DeletionProtectionEnabled", + "$..Table.WarmThroughput", ] ) @pytest.mark.parametrize("billing_mode", ["PROVISIONED", "PAY_PER_REQUEST"]) @@ -121,6 +123,7 @@ def test_billing_mode_as_conditional(deploy_cfn_template, snapshot, aws_client, "$..Table.ProvisionedThroughput.LastDecreaseDateTime", "$..Table.ProvisionedThroughput.LastIncreaseDateTime", "$..Table.Replicas", + "$..Table.WarmThroughput", ] ) def test_global_table(deploy_cfn_template, snapshot, aws_client, region_name): diff --git a/tests/aws/services/es/resources/test_elasticsearch.py b/tests/aws/services/es/resources/test_elasticsearch.py index e88424fe31ae2..6cadf028b0ae2 100644 --- a/tests/aws/services/es/resources/test_elasticsearch.py +++ b/tests/aws/services/es/resources/test_elasticsearch.py @@ -17,6 +17,8 @@ "$..DomainStatus.ElasticsearchClusterConfig.InstanceCount", "$..DomainStatus.ElasticsearchClusterConfig.ZoneAwarenessConfig", "$..DomainStatus.ElasticsearchClusterConfig.ZoneAwarenessEnabled", + "$..DomainStatus.ElasticsearchClusterConfig.DedicatedMasterType", + "$..DomainStatus.ElasticsearchClusterConfig.InstanceType", "$..DomainStatus.Endpoint", "$..DomainStatus.ModifyingProperties", "$..DomainStatus.Processing", diff --git a/tests/aws/services/lambda_/resources/test_lambda.py b/tests/aws/services/lambda_/resources/test_lambda.py index f40489799615b..265fc5f69ab3e 100644 --- a/tests/aws/services/lambda_/resources/test_lambda.py +++ b/tests/aws/services/lambda_/resources/test_lambda.py @@ -656,6 +656,7 @@ class TestCfnLambdaIntegrations: "$..CodeSize", "$..Configuration.Layers", "$..Tags", # missing cloudformation automatic resource tags for the lambda function + "$..RevisionId", ] ) @markers.aws.validated @@ -890,6 +891,7 @@ def _send_events(): "$..Table.Replicas", # stream result "$..StreamDescription.CreationRequestDateTime", + "$..Table.WarmThroughput", ] ) @markers.aws.validated diff --git a/tests/aws/services/opensearch/resources/test_opensearch.py b/tests/aws/services/opensearch/resources/test_opensearch.py index 152e574aecffa..bc57887c659e6 100644 --- a/tests/aws/services/opensearch/resources/test_opensearch.py +++ b/tests/aws/services/opensearch/resources/test_opensearch.py @@ -70,6 +70,14 @@ def test_domain(deploy_cfn_template, aws_client, snapshot): "$..DomainStatus.OffPeakWindowOptions", "$..DomainStatus.ServiceSoftwareOptions.CurrentVersion", "$..DomainStatus.SoftwareUpdateOptions", + "$..DomainStatus.AIMLOptions", + "$..DomainStatus.ClusterConfig.DedicatedMasterType", + "$..DomainStatus.ClusterConfig.InstanceType", + "$..DomainStatus.DomainEndpointOptions.TLSSecurityPolicy", + "$..DomainStatus.DomainProcessingStatus", + "$..DomainStatus.IPAddressType", + "$..DomainStatus.IdentityCenterOptions", + "$..DomainStatus.ModifyingProperties", ] ) def test_domain_with_alternative_types(deploy_cfn_template, aws_client, snapshot): diff --git a/tests/aws/services/s3/resources/test_s3.py b/tests/aws/services/s3/resources/test_s3.py index a2374796fe3ed..88be10fc8c41e 100644 --- a/tests/aws/services/s3/resources/test_s3.py +++ b/tests/aws/services/s3/resources/test_s3.py @@ -86,6 +86,7 @@ def test_website_configuration(deploy_cfn_template, snapshot, aws_client): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..CORSRules..MaxAgeSeconds"]) def test_cors_configuration(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformer(snapshot.transform.cloudformation_api()) snapshot.add_transformer(snapshot.transform.s3_api()) diff --git a/tests/aws/services/sns/resources/test_sns.py b/tests/aws/services/sns/resources/test_sns.py index 340804f122261..8bc36effa8dfe 100644 --- a/tests/aws/services/sns/resources/test_sns.py +++ b/tests/aws/services/sns/resources/test_sns.py @@ -105,6 +105,7 @@ def test_deploy_stack_with_sns_topic(deploy_cfn_template, aws_client): @markers.aws.validated +@markers.snapshot.skip_snapshot_verify(paths=["$..Attributes.SubscriptionPrincipal"]) def test_update_subscription(snapshot, deploy_cfn_template, aws_client, sqs_queue, sns_topic): topic_arn = sns_topic["Attributes"]["TopicArn"] queue_url = sqs_queue From 3b81031e2b9d25b82a9fbfd2928cfcc5dd666b34 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Fri, 11 Apr 2025 23:03:47 +0100 Subject: [PATCH 11/13] Ignore resources dir for s3 image test --- .github/workflows/aws-tests-s3-image.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aws-tests-s3-image.yml b/.github/workflows/aws-tests-s3-image.yml index 729c0c3157403..96ac79d1d1bd6 100644 --- a/.github/workflows/aws-tests-s3-image.yml +++ b/.github/workflows/aws-tests-s3-image.yml @@ -48,11 +48,11 @@ on: type: choice description: Loglevel for PyTest options: - - DEBUG - - INFO - - WARNING - - ERROR - - CRITICAL + - DEBUG + - INFO + - WARNING + - ERROR + - CRITICAL default: WARNING # Only one pull-request triggered run should be executed at a time @@ -129,7 +129,7 @@ jobs: - name: Run S3 Image tests timeout-minutes: 10 env: - PYTEST_ARGS: "${{ env.TINYBIRD_PYTEST_ARGS }}-o junit_family=legacy --junitxml=target/pytest-junit-s3-image-${{ matrix.arch }}.xml" + PYTEST_ARGS: "${{ env.TINYBIRD_PYTEST_ARGS }}-o junit_family=legacy --junitxml=target/pytest-junit-s3-image-${{ matrix.arch }}.xml --ignore tests/aws/services/s3/resources" TEST_PATH: "tests/aws/services/s3" DEBUG: 1 run: | From 01a3f3fc67780e2b23bc3a188f6f5719f98e8336 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Mon, 14 Apr 2025 17:19:41 +0100 Subject: [PATCH 12/13] Early return if CFn not included --- .../localstack/testing/testselection/matching.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/localstack-core/localstack/testing/testselection/matching.py b/localstack-core/localstack/testing/testselection/matching.py index 228d3c1532c0e..bc6a29219ae24 100644 --- a/localstack-core/localstack/testing/testselection/matching.py +++ b/localstack-core/localstack/testing/testselection/matching.py @@ -175,10 +175,12 @@ def cloudformation_resource_provider_rule( if match: break - if match: - changed_service = match[0] - if changed_service != "cloudformation": - return [] + if not match: + return [] + + changed_service = match[0] + if changed_service != "cloudformation": + return [] out = set() for test_dir in test_dirs: From 4aeada4f67389a47d985ee8ef928b4c64f840ee9 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Wed, 30 Jul 2025 22:23:19 +0100 Subject: [PATCH 13/13] Linting --- .../services/apigateway/resources/test_apigateway.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/aws/services/apigateway/resources/test_apigateway.py b/tests/aws/services/apigateway/resources/test_apigateway.py index 8c304cfb2e8b2..3f697aa200cf1 100644 --- a/tests/aws/services/apigateway/resources/test_apigateway.py +++ b/tests/aws/services/apigateway/resources/test_apigateway.py @@ -4,27 +4,18 @@ import requests from localstack_snapshot.snapshots.transformer import SortingTransformer +from tests.aws.services.apigateway.apigateway_fixtures import api_invoke_url from localstack import constants - from localstack.aws.api.lambda_ import Runtime - from localstack.testing.aws.util import is_aws_cloud - from localstack.testing.pytest import markers - from localstack.utils.common import short_uid - from localstack.utils.files import load_file - from localstack.utils.run import to_str - from localstack.utils.strings import to_bytes - from localstack.utils.sync import retry -from tests.aws.services.apigateway.apigateway_fixtures import api_invoke_url - PARENT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) TEST_LAMBDA_PYTHON_ECHO = os.path.join(PARENT_DIR, "lambda_/functions/lambda_echo.py")