<@U01MV4U2EV9> A while back we were talking about ...
# sst
r
@thdxr A while back we were talking about using
app.setDefaultFunctionProps
in the context of setting VPC settings and security groups. The securityGroups property is readonly on sst.FunctionProps so I was getting around this by defining my own type where it was writeable. From memory I think you were going to have a look at why it was readonly in the base CDK class to determine if this was safe to do. Did I remember that right? If so, did you get a chance to look into it?
t
I remembering updating this but also remember it not fixing the problem
Ah it's because the root type from aws-cdk is readonly so you'd have to use that trick yo make the fields not readonly
We should maybe do that for you in our type, I'll do that this week