hashicorp / hashicorp/packer-plugin-amazon

Ignore failure flag when ami datasource can't find ami

Open
#387 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
91
Forks
141
Avg merge
2d 18h
Merged PRs (30d)
3

Description

#### Description
I would like to add an option for ami datasource that will "ignore failure" when a ami is not found between aws ami's.

#### Use Case(s)

I have 2 cases using same packer file:
- the ami exists
- the ami does not exits, and I want to fall back to hardcoded ami id.
The current version of the plugin fails when the datasource doesn't find any ami by the given filters.

#### Potential References
Error example:
`Error: Datasource.Execute failed: No AMI was found matching filters:`

I will apply a PR for this one and mention it here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.