Closed Shaked closed 5 months ago
Hi @Shaked ,
The AWS SDK is code generated from the API model of each AWS service it interacts with. In this case, the service API for sagemaker was not modeled with the ml.t3.* instance types. I was not sure if this was intentional or simply an oversight in terms of modeling so I have reached out to the Sagemaker service team internally and got this response:
SageMaker inference does not support ml.t3. instance type hence this is intentional. We enable only the instance types that are supported by our service.
Thanks, Ran~
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Hey I'm working with https://github.com/hashicorp/terraform-provider-aws which uses the aws-sdk-go client. While using
aws_sagemaker_endpoint_configuration
there's an instance type validation running:https://github.com/hashicorp/terraform-provider-aws/blob/624d56a4205acbbc4cf59b6ccf2ae96e8e3b1f7a/internal/service/sagemaker/endpoint_configuration.go#L310-L316
This validation uses https://github.com/aws/aws-sdk-go/blob/main/service/sagemaker/api.go, which seems to have ml.t2.medium but not ml.t3.medium:
Expected Behavior
In this case
terraform plan
will allowml.t2.medium
but fail when runningterraform apply
and won't allow aterraform plan
withml.t3.medium
while it should work via apply.Current Behavior
The following error is thrown for during a
terraform plan
forml.t3.medium
A similar error is thrown when using
terraform apply
withml.t2.medium
since it's not available in the region I'm working with.Reproduction Steps
aws_sagemaker_endpoint_configuration
ml.t3.medium
as the instance typeAlternatively you most likely be able to use
ProductionVariantInstanceType_Values()
and run it against the non existing instance type which should prove the pointPossible Solution
Either to add
ml.t3.*
machines or to automatically generate it from AWS instance listAdditional Information/Context
No response
SDK version used
v1.51.23
Environment details (Version of Go (
go version
)? OS name and version, etc.)Mac/Linux/Go 1.21