https://pulumi.com logo
#aws
Title
# aws
c

creamy-autumn-77774

02/25/2021, 12:06 AM
Anyone have issues with lambda policy attachments getting removed by the automation API? We perhaps have a unique situation: a Pulumi project inside of our main Pulumi project that is deployed with the automation API. Its along the lines of this example: https://github.com/pulumi/automation-api-examples/tree/main/nodejs/localProgram-tsnode For some reason when the automation API deploys the child project, policy attachments associated with lambdas in the "main" project are removed. The pulumi stack still thinks those resources are there, and it takes a
pulumi refresh
and a
pulumi up
to reattach those policies.
For anyone searching the issue was that we were using
PolicyAttachment
instead of
RolePolicyAttachment
class https://github.com/pulumi/pulumi-aws/issues/1373