Skip to content

Commit

Permalink
add warnings and exceptions for agent template functionality (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
steved authored Mar 17, 2023
1 parent 381187b commit 09c2340
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cdk/domino_cdk/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def from_0_0_0(c: dict):
efs = EFS.from_0_0_0(efs)

# Install is no longer supported
c.pop("install", None)
if c.pop("install", None):
raise ValueError(
"\"install\" is no longer a supported configurable, please directly modify the install configuration post-provision"
)

acm = c.pop("acm", None)
if acm is not None:
Expand Down Expand Up @@ -106,7 +109,10 @@ def from_0_0_1(c: dict):
efs = EFS.from_0_0_0(efs)

# Install is no longer supported
c.pop("install", None)
if c.pop("install", None):
raise ValueError(
"\"install\" is no longer a supported configurable, please directly modify the install configuration post-provision"
)

acm = c.pop("acm", None)
if acm is not None:
Expand Down
6 changes: 6 additions & 0 deletions cdk/domino_cdk/domino_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,10 @@ def generate_outputs(self):
value=r53_owner_id,
)

cdk.CfnOutput(
self,
"agent_config",
value="\"agent_config\" is no longer supported, please manually create your install configuration based on the provisioning outputs",
)

cdk.CfnOutput(self, "cdk_config", value=DominoCdkUtil.ruamel_dump(self.cfg.render(True)))

0 comments on commit 09c2340

Please sign in to comment.