cdk-factory 0.16.13__tar.gz → 0.16.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/.gitignore +2 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/PKG-INFO +1 -1
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/pyproject.toml +1 -1
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/ecs_service.py +10 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/ecs/ecs_cluster_stack.py +28 -42
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/ecs/ecs_service_stack.py +9 -12
- cdk_factory-0.16.15/src/cdk_factory/version.py +1 -0
- cdk_factory-0.16.13/src/cdk_factory/version.py +0 -1
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/.windsurfrules +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/LICENSE +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/REFACTORING_PLAN.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/archive/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/archive/migrate_to_enhanced_ssm.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/examples/json-imports/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/examples/separate-api-gateway/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/examples/separate-api-gateway/api-gateway-stack.json +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/examples/separate-api-gateway/config.json +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/examples/separate-api-gateway/lambda-stack.json +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/mypy.ini +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/publish_to_pypi.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/publish_to_pypi.sh +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/pysetup.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/pysetup.sh +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/requirements.dev.txt +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/requirements.tests.txt +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/requirements.txt +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/run-checks.sh +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/run-tests-clean-venv.sh +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/run-tests.sh +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/scripts/cloudfront-cleanup.sh +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/app.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/builds/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/cdk.json +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/cli.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/commands/command_loader.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/base_config.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/cdk_config.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/deployment.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/deployment_wave.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/devops.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/enhanced_base_config.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/enhanced_ssm_config.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/management.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/pipeline.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/pipeline_stage.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/_resources.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/acm.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/api_gateway.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/apigateway_route_config.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/auto_scaling.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/cloudfront.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/cloudwatch_widget.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/code_artifact.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/code_artifact_login.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/code_repository.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/cognito.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/docker.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/dynamodb.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/ecr.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/ecs_cluster.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/exisiting.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/lambda_edge.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/lambda_function.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/lambda_layers.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/lambda_triggers.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/load_balancer.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/monitoring.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/rds.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/resource_mapping.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/resource_naming.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/resource_types.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/route53.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/route53_hosted_zone.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/rum.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/s3.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/security_group.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/security_group_full_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/sqs.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/vpc.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/workload.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/cloudfront/cloudfront_distribution_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/ecr/ecr_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/lambdas/lambda_function_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/lambdas/lambda_function_docker_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/lambdas/lambda_function_role_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/lambdas/policies/policy_docs.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/lambdas/policies/policy_statements.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/s3_buckets/s3_bucket_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/s3_buckets/s3_bucket_replication_destination_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/s3_buckets/s3_bucket_replication_source_construct.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/sqs/policies/sqs_policies.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/enhanced_ssm_parameter_mixin.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/istack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/live_ssm_resolver.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/networked_stack_mixin.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/ssm_parameter_mixin.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/vpc_provider_mixin.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/lambdas/edge/ip_gate/handler.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/lambdas/health_handler.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/pipeline/path_utils.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/pipeline/pipeline_factory.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/pipeline/security/policies.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/pipeline/security/roles.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/pipeline/stage.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack/istack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack/stack_factory.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack/stack_module_loader.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack/stack_module_registry.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack/stack_modules.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/acm/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/acm/acm_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/api_gateway/api_gateway_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/auto_scaling/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/auto_scaling/auto_scaling_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/aws_lambdas/lambda_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/buckets/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/buckets/bucket_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/cloudfront/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/cloudfront/cloudfront_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/code_artifact/code_artifact_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/cognito/cognito_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/dynamodb/dynamodb_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/ecr/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/ecr/ecr_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/ecs/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/lambda_edge/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/lambda_edge/lambda_edge_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/load_balancer/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/load_balancer/load_balancer_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/monitoring/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/monitoring/monitoring_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/rds/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/rds/rds_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/route53/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/route53/route53_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/rum/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/rum/rum_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/security_group/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/security_group/security_group_full_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/security_group/security_group_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/simple_queue_service/sqs_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/stack_base.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/vpc/__init__.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/vpc/vpc_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/websites/static_website_stack.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stages/websites/static_website_stage.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/templates/README.md +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/templates/app.py.template +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/templates/cdk.json.template +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/api_gateway_integration_utility.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/commandline_args.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/configuration_loader.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/docker_utilities.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/environment_services.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/file_operations.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/git_utilities.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/json_loading_utility.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/lambda_function_utilities.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/os_execute.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utils/api_gateway_utilities.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/workload/workload_factory.py +0 -0
- {cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/handlers/test/handler.py +0 -0
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/ecs_service.py
RENAMED
|
@@ -141,6 +141,16 @@ class EcsServiceConfig:
|
|
|
141
141
|
"""Deployment type: production, maintenance, or blue-green"""
|
|
142
142
|
return self._config.get("deployment_type", "production")
|
|
143
143
|
|
|
144
|
+
@property
|
|
145
|
+
def deployment_circuit_breaker(self) -> Dict[str, Any]:
|
|
146
|
+
"""Deployment circuit breaker configuration"""
|
|
147
|
+
return self._config.get("deployment_circuit_breaker", {})
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def deployment_configuration(self) -> Dict[str, Any]:
|
|
151
|
+
"""Deployment configuration (maximum_percent, minimum_healthy_percent)"""
|
|
152
|
+
return self._config.get("deployment_configuration", {})
|
|
153
|
+
|
|
144
154
|
@property
|
|
145
155
|
def is_maintenance_mode(self) -> bool:
|
|
146
156
|
"""Whether this is a maintenance mode deployment"""
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/ecs/ecs_cluster_stack.py
RENAMED
|
@@ -194,53 +194,39 @@ class EcsClusterStack(IStack, VPCProviderMixin):
|
|
|
194
194
|
"""Export cluster information via SSM parameters and CloudFormation outputs."""
|
|
195
195
|
logger.info("Exporting ECS cluster information")
|
|
196
196
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"ECS Cluster Name",
|
|
203
|
-
)
|
|
197
|
+
ssm_exports = self.ecs_config.ssm_exports
|
|
198
|
+
|
|
199
|
+
if not ssm_exports:
|
|
200
|
+
logger.info("No SSM exports configured for ECS Cluster")
|
|
201
|
+
return
|
|
204
202
|
|
|
205
|
-
|
|
206
|
-
self.export_ssm_parameter(
|
|
207
|
-
self, "ClusterArnParameter",
|
|
208
|
-
self.ecs_cluster.cluster_arn,
|
|
209
|
-
f"/{self.deployment.name}/{self.workload.name}/ecs/cluster/arn",
|
|
210
|
-
"ECS Cluster ARN",
|
|
211
|
-
)
|
|
203
|
+
logger.info(f"Processing {len(ssm_exports)} SSM exports for ECS Cluster")
|
|
212
204
|
|
|
213
|
-
|
|
214
|
-
if hasattr(self, "instance_role"):
|
|
205
|
+
if "cluster_name" in ssm_exports:
|
|
215
206
|
self.export_ssm_parameter(
|
|
216
|
-
self,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"
|
|
207
|
+
scope=self,
|
|
208
|
+
id="ClusterNameParam",
|
|
209
|
+
value=self.ecs_config.name,
|
|
210
|
+
parameter_name=ssm_exports["cluster_name"],
|
|
211
|
+
description=f"ECS Cluster Name: {self.ecs_config.name}",
|
|
220
212
|
)
|
|
221
213
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
CfnOutput(
|
|
232
|
-
self,
|
|
233
|
-
"cluster-arn",
|
|
234
|
-
value=self.ecs_cluster.cluster_arn,
|
|
235
|
-
description=f"ARN of the ECS cluster: {self.ecs_config.name}",
|
|
236
|
-
export_name=f"{self.deployment.name}-ecs-cluster-arn",
|
|
237
|
-
)
|
|
214
|
+
if "cluster_arn" in ssm_exports:
|
|
215
|
+
self.export_ssm_parameter(
|
|
216
|
+
scope=self,
|
|
217
|
+
id="ClusterArnParam",
|
|
218
|
+
value=self.ecs_cluster.cluster_arn,
|
|
219
|
+
parameter_name=ssm_exports["cluster_arn"],
|
|
220
|
+
description=f"ECS Cluster ARN: {self.ecs_cluster.cluster_arn}",
|
|
221
|
+
)
|
|
238
222
|
|
|
239
|
-
if
|
|
240
|
-
|
|
241
|
-
self,
|
|
242
|
-
"
|
|
223
|
+
if "instance_role_arn" in ssm_exports:
|
|
224
|
+
self.export_ssm_parameter(
|
|
225
|
+
scope=self,
|
|
226
|
+
id="InstanceRoleArnParam",
|
|
243
227
|
value=self.instance_role.role_arn,
|
|
244
|
-
|
|
245
|
-
|
|
228
|
+
parameter_name=ssm_exports["instance_role_arn"],
|
|
229
|
+
description=f"ECS Instance Role ARN: {self.instance_role.role_arn}",
|
|
246
230
|
)
|
|
231
|
+
|
|
232
|
+
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/ecs/ecs_service_stack.py
RENAMED
|
@@ -47,7 +47,7 @@ class EcsServiceStack(IStack, EnhancedSsmParameterMixin):
|
|
|
47
47
|
self.workload: Optional[WorkloadConfig] = None
|
|
48
48
|
self.cluster: Optional[ecs.ICluster] = None
|
|
49
49
|
self.service: Optional[ecs.FargateService] = None
|
|
50
|
-
self.task_definition: Optional[ecs.FargateTaskDefinition] = None
|
|
50
|
+
self.task_definition: Optional[ecs.FargateTaskDefinition] | Optional[ecs.EcsTaskDefinition] = None
|
|
51
51
|
self._vpc: Optional[ec2.IVpc] = None
|
|
52
52
|
# SSM imported values
|
|
53
53
|
self.ssm_imported_values: Dict[str, Any] = {}
|
|
@@ -450,7 +450,10 @@ class EcsServiceStack(IStack, EnhancedSsmParameterMixin):
|
|
|
450
450
|
health_check_grace_period=cdk.Duration.seconds(
|
|
451
451
|
self.ecs_config.health_check_grace_period
|
|
452
452
|
) if self.ecs_config.target_group_arns else None,
|
|
453
|
-
circuit_breaker=ecs.DeploymentCircuitBreaker(
|
|
453
|
+
circuit_breaker=ecs.DeploymentCircuitBreaker(
|
|
454
|
+
enable=self.ecs_config.deployment_circuit_breaker.get("enable", True),
|
|
455
|
+
rollback=self.ecs_config.deployment_circuit_breaker.get("rollback", True)
|
|
456
|
+
) if self.ecs_config.deployment_circuit_breaker else None,
|
|
454
457
|
placement_strategies=self._get_placement_strategies(),
|
|
455
458
|
placement_constraints=self._get_placement_constraints(),
|
|
456
459
|
)
|
|
@@ -470,7 +473,10 @@ class EcsServiceStack(IStack, EnhancedSsmParameterMixin):
|
|
|
470
473
|
health_check_grace_period=cdk.Duration.seconds(
|
|
471
474
|
self.ecs_config.health_check_grace_period
|
|
472
475
|
) if self.ecs_config.target_group_arns else None,
|
|
473
|
-
circuit_breaker=ecs.DeploymentCircuitBreaker(
|
|
476
|
+
circuit_breaker=ecs.DeploymentCircuitBreaker(
|
|
477
|
+
enable=self.ecs_config.deployment_circuit_breaker.get("enable", True),
|
|
478
|
+
rollback=self.ecs_config.deployment_circuit_breaker.get("rollback", True)
|
|
479
|
+
) if self.ecs_config.deployment_circuit_breaker else None,
|
|
474
480
|
)
|
|
475
481
|
|
|
476
482
|
# Attach to load balancer target groups
|
|
@@ -662,15 +668,6 @@ class EcsServiceStack(IStack, EnhancedSsmParameterMixin):
|
|
|
662
668
|
description=f"ECS Service ARN: {service_name}",
|
|
663
669
|
)
|
|
664
670
|
|
|
665
|
-
# Cluster name
|
|
666
|
-
if "cluster_name" in ssm_exports:
|
|
667
|
-
self.export_ssm_parameter(
|
|
668
|
-
scope=self,
|
|
669
|
-
id="ClusterNameParam",
|
|
670
|
-
value=self.cluster.cluster_name,
|
|
671
|
-
parameter_name=ssm_exports["cluster_name"],
|
|
672
|
-
description=f"ECS Cluster Name for {service_name}",
|
|
673
|
-
)
|
|
674
671
|
|
|
675
672
|
# Task definition ARN
|
|
676
673
|
if "task_definition_arn" in ssm_exports:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.16.15"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.16.13"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/examples/separate-api-gateway/api-gateway-stack.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/deployment_wave.py
RENAMED
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/enhanced_base_config.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/enhanced_ssm_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/pipeline_stage.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/_resources.py
RENAMED
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/api_gateway.py
RENAMED
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/auto_scaling.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/cloudfront.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/cognito.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/docker.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/dynamodb.py
RENAMED
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/ecs_cluster.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/exisiting.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/lambda_edge.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/monitoring.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/configurations/resources/route53.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/constructs/sqs/policies/sqs_policies.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/networked_stack_mixin.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/ssm_parameter_mixin.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/interfaces/vpc_provider_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/auto_scaling/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/buckets/bucket_stack.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/cloudfront/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/cognito/cognito_stack.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/dynamodb/dynamodb_stack.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/lambda_edge/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/load_balancer/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/monitoring/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/route53/__init__.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/route53/route53_stack.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stack_library/security_group/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/stages/websites/static_website_stage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/configuration_loader.py
RENAMED
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/environment_services.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/json_loading_utility.py
RENAMED
|
File without changes
|
{cdk_factory-0.16.13 → cdk_factory-0.16.15}/src/cdk_factory/utilities/lambda_function_utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|