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

tests/provider: SageMaker Endpoint Configuration Test Fail (GovCloud) #16053

Closed
breathingdust opened this issue Nov 5, 2020 · 2 comments
Closed
Labels
bug Addresses a defect in current functionality. partition/aws-us-gov Pertains to the aws-us-gov partition. service/sagemaker Issues and PRs that pertain to the sagemaker service. stale Old or inactive issues managed by automation, if no further action taken these will get closed. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Comments

@breathingdust
Copy link
Member

breathingdust commented Nov 5, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Affected Resource(s)

  • aws_sagemaker_endpoint_configuration

Terraform Configuration Files

resource "aws_sagemaker_endpoint_configuration" "test" {
  name = %q

  production_variants {
    variant_name           = "variant-1"
    model_name             = aws_sagemaker_model.test.name
    initial_instance_count = 2
    instance_type          = "ml.t2.medium"
    accelerator_type       = "ml.eia1.medium"
    initial_variant_weight = 1
  }
}

Debug Output

Expected Behavior

Test should skip if Elastic Inference types are not available in a region

Actual Behavior

=== CONT  TestAccAWSSagemakerEndpointConfiguration_productionVariants_AcceleratorType
    resource_aws_sagemaker_endpoint_configuration_test.go:122: Step 1/2 error: Error running apply: 2020/11/05 08:38:47 [DEBUG] Using modified User-Agent: Terraform/0.12.29 HashiCorp-terraform-exec/0.10.0

        Error: error creating SageMaker Endpoint Configuration: ValidationException: Accelerator type ml.eia1.medium is not supported for the chosen region.
        	status code: 400, request id: 613dd255-cde2-4d16-8590-7d0c2b1a7779


--- FAIL: TestAccAWSSagemakerEndpointConfiguration_productionVariants_AcceleratorType (14.78s)

Steps to Reproduce

  1. make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSSagemakerEndpointConfiguration_productionVariants_AcceleratorType'

Important Factoids

Only affects GovCloud, documentation does not point out that this is not supported:

https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-sagemaker.html

However pricing shows this instance type is not available:

TestAccAWSSagemakerEndpointConfiguration_productionVariants_AcceleratorType

References

@breathingdust breathingdust added bug Addresses a defect in current functionality. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/sagemaker Issues and PRs that pertain to the sagemaker service. partition/aws-us-gov Pertains to the aws-us-gov partition. labels Nov 5, 2020
@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Oct 26, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2022
@github-actions
Copy link

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.
If you have found a problem that seems similar to this, 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 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. partition/aws-us-gov Pertains to the aws-us-gov partition. service/sagemaker Issues and PRs that pertain to the sagemaker service. stale Old or inactive issues managed by automation, if no further action taken these will get closed. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

No branches or pull requests

1 participant