[Bug]: Empty jupyter_lab_image_config block in aws_sagemaker_app_image_config not persisted #37766
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/sagemaker
Issues and PRs that pertain to the sagemaker service.
Terraform Core Version
1.8.4
AWS Provider Version
5.51.1
Affected Resource(s)
Expected Behavior
The empty
jupyter_lab_image_config
block is meaningful and should be persisted.Actual Behavior
The empty
jupyter_lab_image_config
block is not persisted. Note that terraform apply succeeds, but anInternalFailure
error occurs when JupyterLab starts. In addition, a plan diff still remains after apply and never converge.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
You can see that the plan diff is still there after apply.
The resource doesn't contain the
“JupyterLabAppImageConfig”:{}
parameter.Debug Output
I checked the trace log and the API request for UpdateAppImageConfig did not contain the
“JupyterLabAppImageConfig”:{}
parameter.Panic Output
No response
Important Factoids
As already mentioned in #36828 (comment), it is possible to persist the
jupyter_lab_image_config
by including an emptycontainer_config
block.However, this doesn't persist the empty container_config and results in a plan diff after apply.
A temporary workaround is to specify
ignore_changes
tocontainer_config
.References
#36828
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: