This message was deleted.
# aws
s
This message was deleted.
b
hey Jens! I think you need to run
pulumi refresh
- see this comment for more: https://github.com/pulumi/pulumi-aws/issues/308#issuecomment-415928729
m
Ok, that worked and now I’m getting the next error:
Copy code
Error deleting Lambda Function: InvalidParameterValueException: Lambda was unable to delete arn:aws:lambda:us-east-1:48…5:function:language-redirect-9b04e25:12 because it is a replicated function. Please see our documentation for Deleting Lambda@Edge Functions and Replicas.
Looking for that documentation now, although here is AWS’s doc.
b
m
Hmm, so I ignore this error for now? Actually, finding the urn and deleting the lambda individually worked:
Copy code
> pulumi stack --show-urns
> pulumi state delete urn:pulumi:…
> pulumi destroy
l
That will have left the lambda in AWS (
pulumi state delete
removes a resource from Pulumi, not from the provider behind it). You'll need to delete the lambda through the console.
m
Oh thanks for that, @little-cartoon-10569 Is there a better way to manage edge-replicated lambdas using Pūlumi?