cdk-factory 0.19.6__py3-none-any.whl → 0.19.7__py3-none-any.whl
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.
Potentially problematic release.
This version of cdk-factory might be problematic. Click here for more details.
- cdk_factory/configurations/resources/lambda_edge.py +1 -1
- cdk_factory/stack_library/cloudfront/cloudfront_stack.py +19 -18
- cdk_factory/version.py +1 -1
- {cdk_factory-0.19.6.dist-info → cdk_factory-0.19.7.dist-info}/METADATA +1 -1
- {cdk_factory-0.19.6.dist-info → cdk_factory-0.19.7.dist-info}/RECORD +8 -8
- {cdk_factory-0.19.6.dist-info → cdk_factory-0.19.7.dist-info}/WHEEL +0 -0
- {cdk_factory-0.19.6.dist-info → cdk_factory-0.19.7.dist-info}/entry_points.txt +0 -0
- {cdk_factory-0.19.6.dist-info → cdk_factory-0.19.7.dist-info}/licenses/LICENSE +0 -0
|
@@ -52,7 +52,7 @@ class LambdaEdgeConfig(EnhancedBaseConfig):
|
|
|
52
52
|
"""Timeout in seconds (max 5 for origin-request)"""
|
|
53
53
|
timeout = int(self._config.get("timeout", 5))
|
|
54
54
|
if timeout > 5:
|
|
55
|
-
raise ValueError("Lambda@Edge origin-request timeout cannot exceed 5 seconds")
|
|
55
|
+
raise ValueError("Lambda@Edge origin-request timeout cannot exceed 5 seconds. Value was set to {}".format(timeout))
|
|
56
56
|
return timeout
|
|
57
57
|
|
|
58
58
|
@property
|
|
@@ -223,27 +223,27 @@ class CloudFrontStack(IStack):
|
|
|
223
223
|
|
|
224
224
|
def _create_custom_origin(self, config: Dict[str, Any]) -> cloudfront.IOrigin:
|
|
225
225
|
"""Create custom origin (ALB, API Gateway, etc.)"""
|
|
226
|
-
domain_name = config.get("domain_name")
|
|
226
|
+
domain_name = self.resolve_ssm_value(self, config.get("domain_name"), config.get("domain_name"))
|
|
227
227
|
origin_id = config.get("id")
|
|
228
228
|
|
|
229
229
|
if not domain_name:
|
|
230
230
|
raise ValueError("domain_name is required for custom origin")
|
|
231
231
|
|
|
232
|
-
# Check if domain name is a placeholder from ssm_imports
|
|
233
|
-
if domain_name.startswith("{{") and domain_name.endswith("}}"):
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
# Legacy support: Check if domain name is an SSM parameter reference
|
|
242
|
-
elif domain_name.startswith("{{ssm:") and domain_name.endswith("}}"):
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
232
|
+
# # Check if domain name is a placeholder from ssm_imports
|
|
233
|
+
# if domain_name.startswith("{{") and domain_name.endswith("}}"):
|
|
234
|
+
# placeholder_key = domain_name[2:-2] # Remove {{ and }}
|
|
235
|
+
# if placeholder_key in self.ssm_imported_values:
|
|
236
|
+
# domain_name = self.ssm_imported_values[placeholder_key]
|
|
237
|
+
# logger.info(f"Resolved domain from SSM import: {placeholder_key}")
|
|
238
|
+
# else:
|
|
239
|
+
# logger.warning(f"Placeholder {domain_name} not found in SSM imports")
|
|
240
|
+
|
|
241
|
+
# # Legacy support: Check if domain name is an SSM parameter reference
|
|
242
|
+
# elif domain_name.startswith("{{ssm:") and domain_name.endswith("}}"):
|
|
243
|
+
# # Extract SSM parameter name
|
|
244
|
+
# ssm_param = domain_name[6:-2] # Remove {{ssm: and }}
|
|
245
|
+
# domain_name = ssm.StringParameter.value_from_lookup(self, ssm_param)
|
|
246
|
+
# logger.info(f"Resolved domain from SSM lookup {ssm_param}: {domain_name}")
|
|
247
247
|
|
|
248
248
|
# Build custom headers (e.g., X-Origin-Secret)
|
|
249
249
|
custom_headers = {}
|
|
@@ -297,8 +297,9 @@ class CloudFrontStack(IStack):
|
|
|
297
297
|
|
|
298
298
|
def _create_s3_origin(self, config: Dict[str, Any]) -> cloudfront.IOrigin:
|
|
299
299
|
"""Create S3 origin"""
|
|
300
|
-
bucket_name = config.get("bucket_name")
|
|
301
|
-
|
|
300
|
+
bucket_name = self.resolve_ssm_value(self, config.get("bucket_name"), config.get("bucket_name"))
|
|
301
|
+
|
|
302
|
+
|
|
302
303
|
origin_path = config.get("origin_path", "")
|
|
303
304
|
|
|
304
305
|
if not bucket_name:
|
cdk_factory/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.19.
|
|
1
|
+
__version__ = "0.19.7"
|
|
@@ -2,7 +2,7 @@ cdk_factory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
cdk_factory/app.py,sha256=RnX0-pwdTAPAdKJK_j13Zl8anf9zYKBwboR0KA8K8xM,10346
|
|
3
3
|
cdk_factory/cdk.json,sha256=SKZKhJ2PBpFH78j-F8S3VDYW-lf76--Q2I3ON-ZIQfw,3106
|
|
4
4
|
cdk_factory/cli.py,sha256=FGbCTS5dYCNsfp-etshzvFlGDCjC28r6rtzYbe7KoHI,6407
|
|
5
|
-
cdk_factory/version.py,sha256=
|
|
5
|
+
cdk_factory/version.py,sha256=J3c1qqXnw8COuFtpXV6qt-A8xrobxQgGCMZ8gzmz1I4,23
|
|
6
6
|
cdk_factory/builds/README.md,sha256=9BBWd7bXpyKdMU_g2UljhQwrC9i5O_Tvkb6oPvndoZk,90
|
|
7
7
|
cdk_factory/commands/command_loader.py,sha256=QbLquuP_AdxtlxlDy-2IWCQ6D-7qa58aphnDPtp_uTs,3744
|
|
8
8
|
cdk_factory/configurations/base_config.py,sha256=eJ3Pl3GWk1jVr_bYQaaWlw4_-ZiFGaiXllI_fOOX1i0,9323
|
|
@@ -34,7 +34,7 @@ cdk_factory/configurations/resources/ecr.py,sha256=iJEtKqBT7vQU0LU4urIglraIR7cPZ
|
|
|
34
34
|
cdk_factory/configurations/resources/ecs_cluster.py,sha256=mQYJu7SUPDl5E4dMR6HCPFoWvFA3RGIb0iMNn-K7LX8,3635
|
|
35
35
|
cdk_factory/configurations/resources/ecs_service.py,sha256=bOWjVECd6Kbc5NGGSnDaopnKrjRsUfmaZ6-qrsmTs3Q,6468
|
|
36
36
|
cdk_factory/configurations/resources/exisiting.py,sha256=EVOLnkB-DGfTlmDgyQ5DD5k2zYfpFxqI3gugDR7mifI,478
|
|
37
|
-
cdk_factory/configurations/resources/lambda_edge.py,sha256=
|
|
37
|
+
cdk_factory/configurations/resources/lambda_edge.py,sha256=1tzxNPIsUSbwrdBHWrmqg08S629U3IGHNaNjEaLO_r8,3447
|
|
38
38
|
cdk_factory/configurations/resources/lambda_function.py,sha256=VENZ9-ABJ5mjcN8J8wdLH4KHDYr1kWO0iFDH0B2mJXA,14659
|
|
39
39
|
cdk_factory/configurations/resources/lambda_layers.py,sha256=gVeP_-LC3Eq0lkPaG_JfFUwboM5evRPr99SfKj53m7A,633
|
|
40
40
|
cdk_factory/configurations/resources/lambda_triggers.py,sha256=MD7cdMNKEulNBhtMLIFnWJuJ5R-yyIqa0LHUgbSQerA,834
|
|
@@ -91,7 +91,7 @@ cdk_factory/stack_library/aws_lambdas/lambda_stack.py,sha256=SFbBPvvCopbyiuYtq-O
|
|
|
91
91
|
cdk_factory/stack_library/buckets/README.md,sha256=XkK3UNVtRLE7NtUvbhCOBBYUYi8hlrrSaI1s3GJVrqI,78
|
|
92
92
|
cdk_factory/stack_library/buckets/bucket_stack.py,sha256=SLoZqSffAqmeBBEVUQg54D_8Ad5UKdkjEAmKAVgAqQo,1778
|
|
93
93
|
cdk_factory/stack_library/cloudfront/__init__.py,sha256=Zfx50q4xIJ4ZEoVIzUBDTKbRE9DKDM6iyVIFhtQXvww,153
|
|
94
|
-
cdk_factory/stack_library/cloudfront/cloudfront_stack.py,sha256=
|
|
94
|
+
cdk_factory/stack_library/cloudfront/cloudfront_stack.py,sha256=Se5xvSp5QyubTI3BsAWeBeZHykGGHGYeSial1FzKP7s,32281
|
|
95
95
|
cdk_factory/stack_library/code_artifact/code_artifact_stack.py,sha256=o86cmC_ZV82z-K7DoAR0u1nAieoTi-vxRF01tyJn-9M,5297
|
|
96
96
|
cdk_factory/stack_library/cognito/cognito_stack.py,sha256=3tjKCNcIwXZn7fd4EDQdY6H9m6CnZohI4uTQ4TpacRQ,25327
|
|
97
97
|
cdk_factory/stack_library/dynamodb/dynamodb_stack.py,sha256=-_Ij1zXIxUuZIWgdevam_1vD3LEJ6pFs9U0hmw0KwIw,6743
|
|
@@ -136,8 +136,8 @@ cdk_factory/utilities/os_execute.py,sha256=5Op0LY_8Y-pUm04y1k8MTpNrmQvcLmQHPQITE
|
|
|
136
136
|
cdk_factory/utils/api_gateway_utilities.py,sha256=If7Xu5s_UxmuV-kL3JkXxPLBdSVUKoLtohm0IUFoiV8,4378
|
|
137
137
|
cdk_factory/validation/config_validator.py,sha256=Pb0TkLiPFzUplBOgMorhRCVm08vEzZhRU5xXCDTa5CA,17602
|
|
138
138
|
cdk_factory/workload/workload_factory.py,sha256=yDI3cRhVI5ELNDcJPLpk9UY54Uind1xQoV3spzT4z7E,6068
|
|
139
|
-
cdk_factory-0.19.
|
|
140
|
-
cdk_factory-0.19.
|
|
141
|
-
cdk_factory-0.19.
|
|
142
|
-
cdk_factory-0.19.
|
|
143
|
-
cdk_factory-0.19.
|
|
139
|
+
cdk_factory-0.19.7.dist-info/METADATA,sha256=B5-Ks_26hBqjD7alogh6QAJPt7FnxStsR1oDIdl_uQA,2451
|
|
140
|
+
cdk_factory-0.19.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
141
|
+
cdk_factory-0.19.7.dist-info/entry_points.txt,sha256=S1DPe0ORcdiwEALMN_WIo3UQrW_g4YdQCLEsc_b0Swg,53
|
|
142
|
+
cdk_factory-0.19.7.dist-info/licenses/LICENSE,sha256=NOtdOeLwg2il_XBJdXUPFPX8JlV4dqTdDGAd2-khxT8,1066
|
|
143
|
+
cdk_factory-0.19.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|