Skip to content

Commit

Permalink
Merge pull request #1214 from aligent/fix/ssm_parameter_nestedstack
Browse files Browse the repository at this point in the history
fix bug not firing nested stack for ssm paramter creation
  • Loading branch information
krishanthisera authored Nov 16, 2023
2 parents da49299 + 1e2877b commit 855ac8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/prerender-fargate/lib/recaching/prerender-tokens.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Stack, StackProps } from "aws-cdk-lib";
import { NestedStack, NestedStackProps } from "aws-cdk-lib";
import { Construct } from "constructs";
import { StringListParameter } from "aws-cdk-lib/aws-ssm";

Expand All @@ -12,7 +12,7 @@ interface TokenUrlAssociation {
/**
* Interface for associating a token with a URL for prerendering.
*/
export interface PrerenderTokenUrlAssociationOptions extends StackProps {
export interface PrerenderTokenUrlAssociationOptions extends NestedStackProps {
/**
* Object containing the token and its associated URL.
* ### Example
Expand Down Expand Up @@ -42,7 +42,7 @@ export interface PrerenderTokenUrlAssociationOptions extends StackProps {
* The constructor loops through the tokenUrlAssociation object and
* creates an SSM parameter for each token.
*/
export class PrerenderTokenUrlAssociation extends Stack {
export class PrerenderTokenUrlAssociation extends NestedStack {
constructor(
scope: Construct,
id: string,
Expand Down

0 comments on commit 855ac8d

Please sign in to comment.