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

fix: Prevent an error when VPC Flow log log_group and role is not created #844

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

air3ijai
Copy link
Contributor

Description

We can use try function to check if resources used in local return the value and if not set it to the null (#841).

Motivation and Context

It is related to the Second run of destroy failed when VPC Flow log is enabled and full module output is set.

Breaking Changes

No breaking changes

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

vpc-flow-logs.tf Show resolved Hide resolved
@antonbabenko antonbabenko changed the title feat: Don't thrown the error when VPC Flow log log_group and role is not created fix: Prevent an error when VPC Flow log log_group and role is not created Oct 14, 2022
@antonbabenko antonbabenko merged commit b0c81ad into terraform-aws-modules:master Oct 14, 2022
antonbabenko pushed a commit that referenced this pull request Oct 14, 2022
### [3.16.1](v3.16.0...v3.16.1) (2022-10-14)

### Bug Fixes

* Prevent an error when VPC Flow log log_group and role is not created ([#844](#844)) ([b0c81ad](b0c81ad))
@antonbabenko
Copy link
Member

This PR is included in version 3.16.1 🎉

@air3ijai air3ijai deleted the patch-2 branch October 15, 2022 05:29
spr-mweber3 pushed a commit to spring-media/terraform-aws-vpc that referenced this pull request Oct 28, 2022
spr-mweber3 pushed a commit to spring-media/terraform-aws-vpc that referenced this pull request Oct 28, 2022
### [3.16.1](terraform-aws-modules/terraform-aws-vpc@v3.16.0...v3.16.1) (2022-10-14)

### Bug Fixes

* Prevent an error when VPC Flow log log_group and role is not created ([terraform-aws-modules#844](terraform-aws-modules#844)) ([b0c81ad](terraform-aws-modules@b0c81ad))
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants