-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Cannot rename a SageMaker Endpoint Configuration #21811
Comments
Found a workaround (kind of) in #14337: in addition to the autogenerated resource "aws_sagemaker_endpoint_configuration" "endpoint_config" {
name = "endpoint-config"
production_variants {
variant_name = "variant"
model_name = aws_sagemaker_model.model.name
initial_instance_count = 1
instance_type = "ml.m5.large"
}
lifecycle {
create_before_destroy = true
}
} I did not have to let Terraform generate the I still think this issue should be addressed, either in the docs or by adding a |
I agree adding a Currently the other option seems to be to add something like a date generated by |
This allows a human readable name to be used when updating aws_sagemaker_endpoint_configuration in-place Fixes hashicorp#21811
This functionality has been released in v4.62.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Hard to obtain atm (running Terraform in a custom CI pipeline), will update if needed
Expected Behavior
Not really sure,
name_prefix
instead ofname
would be nice I guessActual Behavior
ValidationException: Could not find endpoint configuration "<old_endpoint_config_arn>".
Without specifying a
name
– edit: nevermind, this seems to be random:terraform-${timestamp}
)Steps to Reproduce
terraform apply
aws_sagemaker_endpoint_configuration.endpoint_config.name
attributeterraform apply
Important Factoids
Nothing really atypical, although the SageMaker docs warns against deleting an endpoint configuration in use by an endpoint:
The text was updated successfully, but these errors were encountered: