any idea why `yarn deploy` would output excess stu...
# help
s
any idea why
yarn deploy
would output excess stuff I didn’t request?
Copy code
Outputs:
    BastionHostBastionHostIdC743CBD6: xx
    BastionHostId: xx
    BastionHostZone: us-east-1a
    ExportsOutputRefUserPool6BA7E5F296FD7236: xx
    ExportsOutputRefUserPoolClient2F5918F753847A55: xx
    UserPoolId: xx
but this is what I’m actually requesting to output:
Copy code
this.addOutputs({
      BastionHostId: bastionHost.instanceId,
      BastionHostZone: bastionHost.instanceAvailabilityZone,
      UserPoolId: auth.cognitoUserPool!.userPoolId,
    });
f
Hey @Sam Hulick, likely you are creating the UserPool in 1 stack and referencing them in another.
Behind the scene, for everything u reference, CDK creates an CFN output and exports it in the source stack. And then imports it in the downstream stack.
s
Ahh. I'd say that's not always desirable behavior. Like if a new dev sets up the stack, they'll be looking for API keys, IDs, etc. and this clutters things up a bit. Is there any way to hide it?
f
Yeah… this is a feature @Jay wanted when working on his SST project.. let me create an issue for this
s
thanks, Frank!
p
Ooo this would be a nice feature!
f
😠Fine guys!! Just up’ed the priority.. I will put something in this week 😉
p
🤣
j
@Frank Just had another thought about this. How about when we use the verbose flag we print all the excess CDK outputs as well?
f
Hmm yeah.. I like that