Thanks, Wilken

I was using "force_deregister", it works once I removed it.

-Akhilesh Verma

On Wed, Dec 4, 2019 at 7:43 PM Wilken Rivera <[email protected]> wrote:

> Akhilesh,
>
> There is no skip build if AMI already exist. Packer validates the name of
> the AMI (as defined in  ami_name) before initiating the creation step. If
> it finds an existing AMI with the same name it will error indicating that
> the name is already in use by an existing AMI.
>
> AMI names must be unique so prevalidation is always performed unless one
> of the following configuration parameters are set "force_deregister" or
> "skip_build_region", which skips the AMI name validation step.
>
> Are you seeing a different behavior? If so, you may want to check if the
> build configuration contains any of the two parameters that would cause the
> build to skip the validation step. Or if there are any slight variations in
> the digest being used for the AMI names.
>
> Wilken
>
>
> On Wed, Dec 4, 2019, at 4:01 AM, Akhilesh Verma wrote:
>
> Hi ,
> I am using packer to create an image on aws. But now I am thinking to
> build a custom image with same addon packages should be skipped.
> I am using digest from addon packages to generate ami name. so if same
> addon packages are applied on same Base OS image, then packer should skip
> due to image is already present there.
>
> Is there any options available in packer to achieve this?
>
> Thanks,
> Akhilesh Verma
>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/48893650-a0e3-452a-9333-70e4cf81bd02%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/48893650-a0e3-452a-9333-70e4cf81bd02%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/3bca4c83-0e88-4116-8962-ee69b21b5525%40www.fastmail.com
> <https://groups.google.com/d/msgid/packer-tool/3bca4c83-0e88-4116-8962-ee69b21b5525%40www.fastmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAE0U2Xtte0ixeZExhHgPmZ4DFs_mdUx_812%2B_xCqzJDNvi1dZg%40mail.gmail.com.

Reply via email to