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

Deploy changes on TF output changes #687

Merged
merged 5 commits into from
May 11, 2021
Merged

Conversation

DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented May 6, 2021

Fixes #481, Fixes #695

@DanielMSchmidt DanielMSchmidt self-assigned this May 6, 2021
@DanielMSchmidt DanielMSchmidt added this to the v0.4 milestone May 6, 2021
const applyActions = [PlannedResourceAction.UPDATE, PlannedResourceAction.CREATE, PlannedResourceAction.DELETE, PlannedResourceAction.READ];
return resources.filter(resource => (applyActions.includes(resource.action)));
}
export abstract class AbstractTerraformPlan implements TerraformPlan {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I abstracted the data mangling work and business logic into an abstract class to DRY things up, hope that works for y'all :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Just make sure to consider #449 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good point, I tested this as well :)

@DanielMSchmidt DanielMSchmidt force-pushed the fix-481-output-not-picked-up branch 2 times, most recently from 8ed6df1 to 3c33477 Compare May 6, 2021 16:46
@ansgarm ansgarm merged commit e787990 into main May 11, 2021
@ansgarm ansgarm deleted the fix-481-output-not-picked-up branch May 11, 2021 13:18
@github-actions
Copy link
Contributor

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've 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 Dec 11, 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.

React Error with multi-value TerraformOutput Deploy Change of Terraform Outputs Only
3 participants