cdk-factory 0.15.13__py3-none-any.whl → 0.15.15__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/rds.py +48 -6
- cdk_factory/version.py +1 -1
- {cdk_factory-0.15.13.dist-info → cdk_factory-0.15.15.dist-info}/METADATA +1 -1
- {cdk_factory-0.15.13.dist-info → cdk_factory-0.15.15.dist-info}/RECORD +7 -7
- {cdk_factory-0.15.13.dist-info → cdk_factory-0.15.15.dist-info}/WHEEL +0 -0
- {cdk_factory-0.15.13.dist-info → cdk_factory-0.15.15.dist-info}/entry_points.txt +0 -0
- {cdk_factory-0.15.13.dist-info → cdk_factory-0.15.15.dist-info}/licenses/LICENSE +0 -0
|
@@ -131,11 +131,24 @@ class RdsConfig(EnhancedBaseConfig):
|
|
|
131
131
|
|
|
132
132
|
@property
|
|
133
133
|
def secret_name(self) -> str:
|
|
134
|
-
"""Name of the secret to store credentials"""
|
|
135
|
-
|
|
134
|
+
"""Name of the secret to store credentials (includes workload to prevent collisions)"""
|
|
135
|
+
if "secret_name" in self.__config:
|
|
136
|
+
return self.__config["secret_name"]
|
|
137
|
+
|
|
138
|
+
# Build a unique secret name using environment and workload
|
|
139
|
+
if not self.__deployment:
|
|
140
|
+
raise ValueError("No deployment context found for RDS secret name")
|
|
141
|
+
|
|
142
|
+
env_name = self.__deployment.environment
|
|
143
|
+
workload_name = self.__deployment.workload_name
|
|
144
|
+
|
|
136
145
|
if not env_name:
|
|
137
|
-
raise ValueError("No environment found for RDS secret name.
|
|
138
|
-
|
|
146
|
+
raise ValueError("No environment found for RDS secret name. Please add an environment to the deployment.")
|
|
147
|
+
if not workload_name:
|
|
148
|
+
raise ValueError("No workload name found for RDS secret name. Please add a workload name to the deployment.")
|
|
149
|
+
|
|
150
|
+
# Default pattern: /{environment}/{workload}/rds/credentials
|
|
151
|
+
return f"/{env_name}/{workload_name}/rds/credentials"
|
|
139
152
|
|
|
140
153
|
@property
|
|
141
154
|
def allocated_storage(self) -> int:
|
|
@@ -180,8 +193,37 @@ class RdsConfig(EnhancedBaseConfig):
|
|
|
180
193
|
|
|
181
194
|
@property
|
|
182
195
|
def cloudwatch_logs_exports(self) -> List[str]:
|
|
183
|
-
"""
|
|
184
|
-
|
|
196
|
+
"""
|
|
197
|
+
Log types to export to CloudWatch (engine-specific).
|
|
198
|
+
Returns configured log types or engine-specific defaults.
|
|
199
|
+
"""
|
|
200
|
+
# If explicitly configured, use that
|
|
201
|
+
if "cloudwatch_logs_exports" in self.__config:
|
|
202
|
+
return self.__config["cloudwatch_logs_exports"]
|
|
203
|
+
|
|
204
|
+
# Otherwise, return engine-specific defaults
|
|
205
|
+
engine = self.engine.lower()
|
|
206
|
+
|
|
207
|
+
# MySQL / MariaDB
|
|
208
|
+
if engine in ("mysql", "mariadb", "aurora-mysql"):
|
|
209
|
+
return ["error", "general", "slowquery"]
|
|
210
|
+
|
|
211
|
+
# PostgreSQL
|
|
212
|
+
elif engine in ("postgres", "postgresql", "aurora-postgres", "aurora-postgresql"):
|
|
213
|
+
return ["postgresql"]
|
|
214
|
+
|
|
215
|
+
# SQL Server
|
|
216
|
+
elif engine in ("sqlserver", "sqlserver-ee", "sqlserver-se", "sqlserver-ex", "sqlserver-web"):
|
|
217
|
+
return ["error", "agent"]
|
|
218
|
+
|
|
219
|
+
# Oracle
|
|
220
|
+
elif engine in ("oracle", "oracle-ee", "oracle-se2", "oracle-se1"):
|
|
221
|
+
return ["alert", "audit", "trace"]
|
|
222
|
+
|
|
223
|
+
# Default to empty list for unknown engines (safer than guessing)
|
|
224
|
+
else:
|
|
225
|
+
logger.warning(f"Unknown engine '{engine}', disabling CloudWatch logs exports by default")
|
|
226
|
+
return []
|
|
185
227
|
|
|
186
228
|
@property
|
|
187
229
|
def removal_policy(self) -> str:
|
cdk_factory/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.15.
|
|
1
|
+
__version__ = "0.15.15"
|
|
@@ -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=h4OTsQ6VEyn_FzbSMukan3klxpMSVZNqUBFAydtKc7Y,24
|
|
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=JKjhNsy0RCUZy1s8n5D_aXXI-upR9izaLtCTfKYiV9k,9624
|
|
@@ -38,7 +38,7 @@ cdk_factory/configurations/resources/lambda_layers.py,sha256=gVeP_-LC3Eq0lkPaG_J
|
|
|
38
38
|
cdk_factory/configurations/resources/lambda_triggers.py,sha256=MD7cdMNKEulNBhtMLIFnWJuJ5R-yyIqa0LHUgbSQerA,834
|
|
39
39
|
cdk_factory/configurations/resources/load_balancer.py,sha256=idpKdvkkCM7J9J2pNjMBOY1DNaFR1tk1tFjTg76bvrY,5267
|
|
40
40
|
cdk_factory/configurations/resources/monitoring.py,sha256=zsfDMa7yph33Ql8iP7lIqqLAyixh-Mesi0imtZJFdcE,2310
|
|
41
|
-
cdk_factory/configurations/resources/rds.py,sha256=
|
|
41
|
+
cdk_factory/configurations/resources/rds.py,sha256=ZPNQhsOOxE_cg9CeFIhjKLyQYzMURg_3wb8Ckc2tAtw,15724
|
|
42
42
|
cdk_factory/configurations/resources/resource_mapping.py,sha256=cwv3n63RJ6E59ErsmSTdkW4i-g8huhHtKI0ExbRhJxA,2182
|
|
43
43
|
cdk_factory/configurations/resources/resource_naming.py,sha256=VE9S2cpzp11qqPL2z1sX79wXH0o1SntO2OG74nEmWC8,5508
|
|
44
44
|
cdk_factory/configurations/resources/resource_types.py,sha256=1WQHyDoErb-M-tETZZzyLDtbq_jdC85-I403dM48pgE,2317
|
|
@@ -129,8 +129,8 @@ cdk_factory/utilities/lambda_function_utilities.py,sha256=S1GvBsY_q2cyUiaud3HORJ
|
|
|
129
129
|
cdk_factory/utilities/os_execute.py,sha256=5Op0LY_8Y-pUm04y1k8MTpNrmQvcLmQHPQITEP7EuSU,1019
|
|
130
130
|
cdk_factory/utils/api_gateway_utilities.py,sha256=If7Xu5s_UxmuV-kL3JkXxPLBdSVUKoLtohm0IUFoiV8,4378
|
|
131
131
|
cdk_factory/workload/workload_factory.py,sha256=yDI3cRhVI5ELNDcJPLpk9UY54Uind1xQoV3spzT4z7E,6068
|
|
132
|
-
cdk_factory-0.15.
|
|
133
|
-
cdk_factory-0.15.
|
|
134
|
-
cdk_factory-0.15.
|
|
135
|
-
cdk_factory-0.15.
|
|
136
|
-
cdk_factory-0.15.
|
|
132
|
+
cdk_factory-0.15.15.dist-info/METADATA,sha256=zC5TScNi78WirV46c523VR8-soTj5a0iZIZxZ8_8wS0,2452
|
|
133
|
+
cdk_factory-0.15.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
134
|
+
cdk_factory-0.15.15.dist-info/entry_points.txt,sha256=S1DPe0ORcdiwEALMN_WIo3UQrW_g4YdQCLEsc_b0Swg,53
|
|
135
|
+
cdk_factory-0.15.15.dist-info/licenses/LICENSE,sha256=NOtdOeLwg2il_XBJdXUPFPX8JlV4dqTdDGAd2-khxT8,1066
|
|
136
|
+
cdk_factory-0.15.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|