Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid InvalidAMIID errors #320

Merged
merged 1 commit into from
Jun 8, 2019
Merged

Avoid InvalidAMIID errors #320

merged 1 commit into from
Jun 8, 2019

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Jun 7, 2019

DescribeImages may return an error when passing an invalid AMI ID. In the case, TFLint aborts the current inspection with the following error message:

$ tflint --deep
Error: Failed to check `aws_instance_invalid_ami` rule: An error occurred while describing images; InvalidAMIID.NotFound: The image id '[ami-0abc1234]' does not exist

This pull request changes the error handling to avoid these expected errors. It will emit issues instead.

@wata727 wata727 merged commit 30b2bf1 into master Jun 8, 2019
@wata727 wata727 deleted the avoid_invalid_ami_errors branch June 8, 2019 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant