FJ
06/07/2022, 5:09 PMFrank
on deployment?Frank
Klaus
06/07/2022, 6:07 PMsst deploy, you could test e.g. for app.isLocal or the stage nameFJ
06/07/2022, 8:22 PMFJ
06/07/2022, 8:23 PMKlaus
06/07/2022, 10:23 PMfn.role.attachInlinePolicy will create a new inline policy which is added to the existing permissions. The statements look very similar to what you would do in the UI. Each has effect, actions and resources. This allows you to create your own permissions the way you need them.
SST also allows a shortcut approach for existing resources you already defined. In such case, you can simply reference a construct instead of writing out the permission in detail.FJ
06/07/2022, 10:58 PM