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

Feature/refactor tagging code to use keyvaluetags for aws sagemaker resources #10829

Conversation

teraken0509
Copy link
Contributor

@teraken0509 teraken0509 commented Nov 10, 2019

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request followers and do not help prioritize the request

Relates #10688

Release note for CHANGELOG:

NONE

Output from acceptance testing:

  • aws_sagemaker_endpoint
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSSagemakerEndpoint_'==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerEndpoint_ -timeout 120m
=== RUN   TestAccAWSSagemakerEndpoint_basic
=== PAUSE TestAccAWSSagemakerEndpoint_basic
=== RUN   TestAccAWSSagemakerEndpoint_EndpointConfigName
=== PAUSE TestAccAWSSagemakerEndpoint_EndpointConfigName
=== RUN   TestAccAWSSagemakerEndpoint_Tags
=== PAUSE TestAccAWSSagemakerEndpoint_Tags
=== CONT  TestAccAWSSagemakerEndpoint_basic
=== CONT  TestAccAWSSagemakerEndpoint_Tags
=== CONT  TestAccAWSSagemakerEndpoint_EndpointConfigName
--- PASS: TestAccAWSSagemakerEndpoint_basic (545.61s)
--- PASS: TestAccAWSSagemakerEndpoint_Tags (653.84s)
--- PASS: TestAccAWSSagemakerEndpoint_EndpointConfigName (1135.66s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	1135.759s
  • aws_sagemaker_endpoint_configuration
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSSagemakerEndpointConfiguration_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerEndpointConfiguration_ -timeout 120m
=== RUN   TestAccAWSSagemakerEndpointConfiguration_Basic
=== PAUSE TestAccAWSSagemakerEndpointConfiguration_Basic
=== RUN   TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_InitialVariantWeight
=== PAUSE TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_InitialVariantWeight
=== RUN   TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_AcceleratorType
=== PAUSE TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_AcceleratorType
=== RUN   TestAccAWSSagemakerEndpointConfiguration_KmsKeyId
=== PAUSE TestAccAWSSagemakerEndpointConfiguration_KmsKeyId
=== RUN   TestAccAWSSagemakerEndpointConfiguration_Tags
=== PAUSE TestAccAWSSagemakerEndpointConfiguration_Tags
=== CONT  TestAccAWSSagemakerEndpointConfiguration_Basic
=== CONT  TestAccAWSSagemakerEndpointConfiguration_KmsKeyId
=== CONT  TestAccAWSSagemakerEndpointConfiguration_Tags
=== CONT  TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_AcceleratorType
=== CONT  TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_InitialVariantWeight
--- PASS: TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_InitialVariantWeight (56.66s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_Basic (72.78s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_AcceleratorType (75.24s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_Tags (85.86s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_KmsKeyId (103.00s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	103.082s
  • aws_sagemaker_model
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSSagemakerModel_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerModel_ -timeout 120m
=== RUN   TestAccAWSSagemakerModel_basic
=== PAUSE TestAccAWSSagemakerModel_basic
=== RUN   TestAccAWSSagemakerModel_tags
=== PAUSE TestAccAWSSagemakerModel_tags
=== RUN   TestAccAWSSagemakerModel_primaryContainerModelDataUrl
=== PAUSE TestAccAWSSagemakerModel_primaryContainerModelDataUrl
=== RUN   TestAccAWSSagemakerModel_primaryContainerHostname
=== PAUSE TestAccAWSSagemakerModel_primaryContainerHostname
=== RUN   TestAccAWSSagemakerModel_primaryContainerEnvironment
=== PAUSE TestAccAWSSagemakerModel_primaryContainerEnvironment
=== RUN   TestAccAWSSagemakerModel_containers
=== PAUSE TestAccAWSSagemakerModel_containers
=== RUN   TestAccAWSSagemakerModel_vpcConfig
=== PAUSE TestAccAWSSagemakerModel_vpcConfig
=== RUN   TestAccAWSSagemakerModel_networkIsolation
=== PAUSE TestAccAWSSagemakerModel_networkIsolation
=== CONT  TestAccAWSSagemakerModel_basic
=== CONT  TestAccAWSSagemakerModel_primaryContainerEnvironment
=== CONT  TestAccAWSSagemakerModel_networkIsolation
=== CONT  TestAccAWSSagemakerModel_vpcConfig
=== CONT  TestAccAWSSagemakerModel_containers
=== CONT  TestAccAWSSagemakerModel_primaryContainerModelDataUrl
=== CONT  TestAccAWSSagemakerModel_primaryContainerHostname
=== CONT  TestAccAWSSagemakerModel_tags
--- PASS: TestAccAWSSagemakerModel_containers (52.44s)
--- PASS: TestAccAWSSagemakerModel_networkIsolation (55.37s)
--- PASS: TestAccAWSSagemakerModel_basic (63.34s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (68.45s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (70.60s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (78.13s)
--- PASS: TestAccAWSSagemakerModel_tags (82.80s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (86.47s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	86.613s
  • aws_sagemaker_noteboo_instance
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSSagemakerNotebookInstance_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerNotebookInstance_ -timeout 120m
=== RUN   TestAccAWSSagemakerNotebookInstance_basic
=== PAUSE TestAccAWSSagemakerNotebookInstance_basic
=== RUN   TestAccAWSSagemakerNotebookInstance_update
=== PAUSE TestAccAWSSagemakerNotebookInstance_update
=== RUN   TestAccAWSSagemakerNotebookInstance_LifecycleConfigName
=== PAUSE TestAccAWSSagemakerNotebookInstance_LifecycleConfigName
=== RUN   TestAccAWSSagemakerNotebookInstance_tags
=== PAUSE TestAccAWSSagemakerNotebookInstance_tags
=== RUN   TestAccAWSSagemakerNotebookInstance_disappears
=== PAUSE TestAccAWSSagemakerNotebookInstance_disappears
=== CONT  TestAccAWSSagemakerNotebookInstance_basic
=== CONT  TestAccAWSSagemakerNotebookInstance_tags
=== CONT  TestAccAWSSagemakerNotebookInstance_LifecycleConfigName
=== CONT  TestAccAWSSagemakerNotebookInstance_update
=== CONT  TestAccAWSSagemakerNotebookInstance_disappears
--- PASS: TestAccAWSSagemakerNotebookInstance_basic (342.21s)
--- PASS: TestAccAWSSagemakerNotebookInstance_disappears (348.06s)
--- PASS: TestAccAWSSagemakerNotebookInstance_tags (353.14s)
--- PASS: TestAccAWSSagemakerNotebookInstance_LifecycleConfigName (436.02s)
--- PASS: TestAccAWSSagemakerNotebookInstance_update (793.45s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	793.529s

@teraken0509 teraken0509 requested a review from a team November 10, 2019 09:18
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/S Managed by automation to categorize the size of a PR. service/sagemaker Issues and PRs that pertain to the sagemaker service. labels Nov 10, 2019
@teraken0509 teraken0509 reopened this Nov 11, 2019
@teraken0509 teraken0509 changed the title Feature/refactor tagging code to use keyvaluetags for aws sagemaker endpoint resource [WIP] Feature/refactor tagging code to use keyvaluetags for aws sagemaker resources Nov 11, 2019
@teraken0509 teraken0509 force-pushed the feature/refactor-tagging-code-to-use-keyvaluetags-for-aws_sagemaker_endpoint-resource branch from e625d99 to f737a4f Compare November 11, 2019 11:38
@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Nov 11, 2019
@ghost ghost added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Nov 11, 2019
@ghost ghost added the tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. label Nov 11, 2019
@teraken0509 teraken0509 changed the title [WIP] Feature/refactor tagging code to use keyvaluetags for aws sagemaker resources Feature/refactor tagging code to use keyvaluetags for aws sagemaker resources Nov 11, 2019
@bflad bflad added technical-debt Addresses areas of the codebase that need refactoring or redesign. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 14, 2019
@bflad bflad added this to the v2.36.0 milestone Nov 14, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @kterada0509 🚀

--- PASS: TestAccAWSSagemakerNotebookInstanceLifecycleConfiguration_Basic (13.09s)
--- PASS: TestAccAWSSagemakerNotebookInstanceLifecycleConfiguration_Update (17.58s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (28.38s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (32.37s)
--- PASS: TestAccAWSSagemakerModel_tags (38.38s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (57.25s)
--- PASS: TestAccAWSSagemakerModel_networkIsolation (58.30s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_KmsKeyId (66.96s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_InitialVariantWeight (69.81s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_Basic (72.72s)
--- PASS: TestAccAWSSagemakerModel_containers (80.18s)
--- PASS: TestAccAWSSagemakerEndpointConfiguration_ProductionVariants_AcceleratorType (83.74s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (84.47s)
--- PASS: TestAccAWSSagemakerModel_basic (87.51s)
--- PASS: TestAccAWSSagemakerNotebookInstance_LifecycleConfigName (281.64s)
--- PASS: TestAccAWSSagemakerNotebookInstance_basic (298.15s)
--- PASS: TestAccAWSSagemakerNotebookInstance_tags (304.80s)
--- PASS: TestAccAWSSagemakerNotebookInstance_disappears (309.15s)
--- PASS: TestAccAWSSagemakerNotebookInstance_update (556.12s)
--- PASS: TestAccAWSSagemakerEndpoint_Tags (585.78s)
--- PASS: TestAccAWSSagemakerEndpoint_basic (593.07s)
--- PASS: TestAccAWSSagemakerEndpoint_EndpointConfigName (991.56s)

@@ -84,6 +84,7 @@ var serviceNames = []string{
"redshift",
"resourcegroups",
"route53resolver",
"sagemaker",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 😄

@bflad bflad merged commit bd819c9 into hashicorp:master Nov 14, 2019
@ghost
Copy link

ghost commented Nov 14, 2019

This has been released in version 2.36.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 for triage. Thanks!

@ghost
Copy link

ghost commented Dec 15, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Dec 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/sagemaker Issues and PRs that pertain to the sagemaker service. size/L Managed by automation to categorize the size of a PR. technical-debt Addresses areas of the codebase that need refactoring or redesign. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants