-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Add parameters
getter on GuStack
#1313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ export class GuParameter extends CfnParameter { | |
}); | ||
|
||
this.id = id; | ||
scope.setParam(this); | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,9 @@ export class GuStackSet extends CfnStackSet { | |
const stackSetInstanceParameters = props.stackSetInstanceParameters ?? {}; | ||
|
||
const params = Object.keys(stackSetInstanceParameters); | ||
const undefinedStackSetParams = props.stackSetInstance.parameterKeys.filter((_) => !params.includes(_)); | ||
const parameterKeys = Object.keys(props.stackSetInstance.parameters); | ||
|
||
const undefinedStackSetParams = parameterKeys.filter((_) => !params.includes(_)); | ||
|
||
if (undefinedStackSetParams.length !== 0) { | ||
throw new Error(`There are undefined stack set parameters: ${undefinedStackSetParams.join(", ")}`); | ||
Comment on lines
+145
to
150
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Our current model is to feed stack set instance's parameters from the parent stack, rather than have the stack set instance read from parameter store, as the orchestration of this is tricky. Here we check that all parameters on the stack set instance also exist on the parent stack, throwing if not. |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Today, this is only used in the
GuStackSet
construct below.