Friday, February 28, 2020

Add timestamp to your Cloud instance in Packer

You can declare a variable as below and use it builders.

"myvar2": "Packer-Image-{{isotime \"2006-01-02 03-04-05\"}}",


I have tried it on OCI Instance and worked fine.

We will obtain a Custom Image with timestamp set to UTC.

No comments:

Post a Comment