Closed manca-disc closed 3 years ago
Hi @manca-disc
Are you sure there is no FlowLog with that config already existing? It's like you've dropped the resource from the state and Pulumi is trying to recreate it
Paul
Nothing changed in the stack since the upgrade. This specific flow log is there, but for some reason Pulumi still tries to recreate it. Why's that?
Pulumi will only try and recreate it if it can't find it in its state file.
Have you logged into the same "backend" as you previously used? If you run the command
Pulumi stack export > mystack.json
Then you will be able to see what resources exist in your state file
Alternatively you can run
Pulumi whoami -v
And Pulumi will tell you the backend you are logged into
If it's the right backend and the resource is not in your state file then that's why it's trying to recreate
One last ditch debug idea, I'm not sure of your setup, but maybe another of the developers had pushed Pulumi code to the same region and this named something the same?
Paul
pulumi refresh
helped. Something caused Pulumi state to drop the flowlogs resource...
Glad to hear it is working for you!
Hi there,
We're seeing another problem with FlowLogs after upgrading to latest Go Pulumi AWS Plugin.
This is the error we get when we run
pulumi up
:This used to work without problems before. They way we create the flow log is simple as:
Let me know if you can assist with this issue.