-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Add ability to add features to existing feature groups in Sagemaker #27933
base: main
Are you sure you want to change the base?
Add ability to add features to existing feature groups in Sagemaker #27933
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @aShevc 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
Updated the pull request with the following approach: Replaced initial CustomizeDiff function with the function showing errors in case if feature definitions of existing features change Hence, currently, it will give an error in case if feature definitions change on plan. Still found no way for now to force changes at that stage. Will proceed on working on acceptance tests and make it ready for review |
@YakDriver @DrFaust92 can I gently ask to have an initial look at this guys? |
aShevc looks good but we are still with the issue of needing to force change as it will make operator to target destroy/taint and it think its bad UX |
I understand, but it is really the only option we have at the moment until the issue in Terraform plugin SDK is fixed. Do you think we can move forward temporarily with this solution and adjust it later? Also, if you have other thoughts on how we could better deal with this scenario, this would be largely appreciated. Thank you! |
If Maintainers are ok with this its up to them, as i personally opted to just not submit a similar PR im against half measures |
@ewbankkit would you mind re-approving the actions run? I have had the Lint formatting fixed, so it should build now. Thanks! |
@ewbankkit @DrFaust92 since all checks are authorized, would the team be ready to merge it in soon? Do you guys have a plan on releasing this? Please do let know. Thank you! |
sorry to ping but any updates here? <3 would love to get this merged. FeatureGroup updates are a nightmare to handle through terraform as of now |
Description
This leverages newly added UpdateFeatureGroupRequest in order to introduce adding new features to feature groups.
NOTE: in order to enable feature additions, I have had to remove
ForceNew
attribute fromfeature_definition
field in order to disable recreation of the feature group when the size changes, but replaced it withCustomizeDiff
. However, I was not able to simultaneously force creating the new feature group in case if the existing feature groups change, it will only force feature groups recreation when the new size of feature definitions is smaller. The reason for not being able to detect change of existing feature definitions seems to be the improper handling ofCustomizeDiff
attribute forTypeList
fields. I have added an issue into Terraform SDK Plugin repo in order to address this. However, while resolving this definitely might take some time, I have fallen back to the solution on returning an error in case if the existing feature groups change upon applying the plan.At this time, as I have tried quite a bit of different approaches, as seen in the issue above, and I would largely appreciate suggestions on any alternatives, I will gladly try to apply worthwhile suggestions
Some of the potential alternatives on the plate include:
ComputedIf
and/orSetNew
in case if undesired feature groups change are introduced.However, from what I see from my experience with
TypeList
andCustomizeDiff
function, it may happen that those changes won't bring the required effect. Specifically, redesigning a service to use Terraform Framework rather than SDK may be quite a big change, especially given relatively small impact.Therefore, the second thing beyond discussing alternative solutions would be to determine the plausibility of a fallback option I introudced. Woud largely appreciate a feedback on this
TODO:
Relations
Closes #26809
References
Output from Acceptance Testing