Open thelegendtubaguy opened 1 month ago
This is also happening if I define the permissions directly on the function resource like:
permissions: [
{
actions: ['ssm:Get*', 'ssm:PutParameter'],
resources: ['*'],
},
],
I had a function that I forgot to add these permissions to, got an auth error about not being able to talk to SSM. I added those lines. Function worked. Then some time later without further touching the code, SST removed those permissions from the lambda's role.
I have a function that I have defined like so:
I have a policy document and policy defined like so:
I'm trying to attach this policy to the function's role like so:
This seems to only apply the attachment if I delete the attachment from my code, then re-add it while SST is running. If I edit the code to add a new function and a new attachment for the function's role, it will not do it. It also seems to be randomly removing it, but I can't pinpoint what I'm doing to cause that. I'm not randomly adding/removing the attachment from my code, so not sure what I'm doing wrong here.