I am trying to build an AMI, but i am taking the previous build AMI as source, On the top of that AMI, i want to update some additional packages and some folder needs to create, but when i run the packer command second time, its failing with the folder already exist.
Is there a way to check the folder and if its available, need to skip that provisioner step.
Can someone help me to add that step and ignore if its already available.?
Regards,