I was able to get permission boundaries to work wi...
# help
m
I was able to get permission boundaries to work with SST but I'm wondering if anybody has thought about a way to add them to the debug stack? We have the same permission boundaries in our dev environments we do in prod, thereby to encounter any problems ASAP. That means we can't deploy the debug stack.
f
Hey @Matt Morgan, you can add this block to ur
index.js/ts
Copy code
export function debugStack(
  app: <http://cdk.App|cdk.App>,
  stack: cdk.Stack,
  props: sst.DebugStackProps
): void {
  const boundary = new iam.ManagedPolicy(this, 'Boundary', {
    statements: [
      new iam.PolicyStatement({
        effect: iam.Effect.DENY,
        actions: ['iam:*'],
        resources: ['*'],
      }),
    ],
  });

  iam.PermissionsBoundary.of(this).apply(boundary);
}
So essentially this is how to make changes to the debug stack (ie. tagging resources in the debug stack).
m
Cool! I'll try that. Thanks for the reply.
Yeah that worked. Amazing work on this project. Gonna look at migrating a bunch of stacks to SST over the next year.