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

r/sagemaker_model - add support for image_config + refactor tests #15957

Merged
merged 10 commits into from
Nov 5, 2020

Conversation

DrFaust92
Copy link
Collaborator

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" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #13826

Release note for CHANGELOG:

resource_aws_sagemaker_model - add support for `primary_container. image_config` and `containers.image_config`
resource_aws_sagemaker_model - add plan time validation for `execution_role_arn`

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSSagemakerModel_'
--- PASS: TestAccAWSSagemakerModel_disappears (56.13s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModeSingle (56.14s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (56.48s)
--- PASS: TestAccAWSSagemakerModel_basic (60.75s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerImageConfig (61.04s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (62.97s)
--- PASS: TestAccAWSSagemakerModel_networkIsolation (64.59s)
--- PASS: TestAccAWSSagemakerModel_containers (64.71s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (82.24s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (91.82s)
--- PASS: TestAccAWSSagemakerModel_tags (125.73s)

@DrFaust92 DrFaust92 requested a review from a team October 31, 2020 18:47
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. service/sagemaker Issues and PRs that pertain to the sagemaker service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Oct 31, 2020
@DrFaust92 DrFaust92 added the enhancement Requests to existing resources that expand the functionality or scope. label Oct 31, 2020
@ghost ghost added the documentation Introduces or discusses updates to documentation. label Oct 31, 2020
@DrFaust92 DrFaust92 requested a review from a team as a code owner November 3, 2020 19:26
Copy link
Contributor

@ewbankkit ewbankkit 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.

@breathingdust
Copy link
Member

LGTM 🚀 Thanks @DrFaust92

Verified Acceptance Tests in Commercial (us-west-2)

make testacc 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_primaryContainerImageConfig
=== PAUSE TestAccAWSSagemakerModel_primaryContainerImageConfig
=== RUN   TestAccAWSSagemakerModel_primaryContainerEnvironment
=== PAUSE TestAccAWSSagemakerModel_primaryContainerEnvironment
=== RUN   TestAccAWSSagemakerModel_primaryContainerModeSingle
=== PAUSE TestAccAWSSagemakerModel_primaryContainerModeSingle
=== RUN   TestAccAWSSagemakerModel_containers
=== PAUSE TestAccAWSSagemakerModel_containers
=== RUN   TestAccAWSSagemakerModel_vpcConfig
=== PAUSE TestAccAWSSagemakerModel_vpcConfig
=== RUN   TestAccAWSSagemakerModel_networkIsolation
=== PAUSE TestAccAWSSagemakerModel_networkIsolation
=== RUN   TestAccAWSSagemakerModel_disappears
=== PAUSE TestAccAWSSagemakerModel_disappears
=== CONT  TestAccAWSSagemakerModel_basic
=== CONT  TestAccAWSSagemakerModel_primaryContainerModeSingle
=== CONT  TestAccAWSSagemakerModel_disappears
=== CONT  TestAccAWSSagemakerModel_containers
=== CONT  TestAccAWSSagemakerModel_vpcConfig
=== CONT  TestAccAWSSagemakerModel_primaryContainerHostname
=== CONT  TestAccAWSSagemakerModel_primaryContainerEnvironment
=== CONT  TestAccAWSSagemakerModel_primaryContainerImageConfig
=== CONT  TestAccAWSSagemakerModel_networkIsolation
=== CONT  TestAccAWSSagemakerModel_tags
=== CONT  TestAccAWSSagemakerModel_primaryContainerModelDataUrl
--- PASS: TestAccAWSSagemakerModel_basic (30.84s)
--- PASS: TestAccAWSSagemakerModel_disappears (31.40s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (33.58s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModeSingle (33.92s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerImageConfig (35.67s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (38.47s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (40.47s)
2020/11/05 09:01:57 [DEBUG] Trying to get account information via sts:GetCallerIdentity
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (45.46s)
--- PASS: TestAccAWSSagemakerModel_containers (46.30s)
--- PASS: TestAccAWSSagemakerModel_networkIsolation (46.62s)
--- PASS: TestAccAWSSagemakerModel_tags (58.80s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	60.302s

Verified Acceptance Tests in GovCloud (us-gov-west-1)

make testacc 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_primaryContainerImageConfig
=== PAUSE TestAccAWSSagemakerModel_primaryContainerImageConfig
=== RUN   TestAccAWSSagemakerModel_primaryContainerEnvironment
=== PAUSE TestAccAWSSagemakerModel_primaryContainerEnvironment
=== RUN   TestAccAWSSagemakerModel_primaryContainerModeSingle
=== PAUSE TestAccAWSSagemakerModel_primaryContainerModeSingle
=== RUN   TestAccAWSSagemakerModel_containers
=== PAUSE TestAccAWSSagemakerModel_containers
=== RUN   TestAccAWSSagemakerModel_vpcConfig
=== PAUSE TestAccAWSSagemakerModel_vpcConfig
=== RUN   TestAccAWSSagemakerModel_networkIsolation
=== PAUSE TestAccAWSSagemakerModel_networkIsolation
=== RUN   TestAccAWSSagemakerModel_disappears
=== PAUSE TestAccAWSSagemakerModel_disappears
=== CONT  TestAccAWSSagemakerModel_basic
=== CONT  TestAccAWSSagemakerModel_primaryContainerModeSingle
=== CONT  TestAccAWSSagemakerModel_primaryContainerModelDataUrl
=== CONT  TestAccAWSSagemakerModel_networkIsolation
=== CONT  TestAccAWSSagemakerModel_disappears
=== CONT  TestAccAWSSagemakerModel_containers
=== CONT  TestAccAWSSagemakerModel_vpcConfig
=== CONT  TestAccAWSSagemakerModel_primaryContainerHostname
=== CONT  TestAccAWSSagemakerModel_primaryContainerEnvironment
=== CONT  TestAccAWSSagemakerModel_primaryContainerImageConfig
=== CONT  TestAccAWSSagemakerModel_tags
--- PASS: TestAccAWSSagemakerModel_containers (32.13s)
--- PASS: TestAccAWSSagemakerModel_basic (32.18s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (32.44s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (43.66s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModeSingle (45.24s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (47.57s)
--- PASS: TestAccAWSSagemakerModel_disappears (49.25s)
--- PASS: TestAccAWSSagemakerModel_networkIsolation (50.78s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (53.50s)
--- PASS: TestAccAWSSagemakerModel_tags (58.82s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerImageConfig (65.78s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	67.373s

@breathingdust breathingdust added this to the v3.14.0 milestone Nov 5, 2020
@breathingdust breathingdust merged commit f7cef75 into hashicorp:master Nov 5, 2020
breathingdust added a commit that referenced this pull request Nov 5, 2020
@ghost
Copy link

ghost commented Nov 6, 2020

This has been released in version 3.14.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 5, 2020

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 as resolved and limited conversation to collaborators Dec 5, 2020
@DrFaust92 DrFaust92 deleted the r/sagemaker_model_refactor branch April 15, 2021 10:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. service/sagemaker Issues and PRs that pertain to the sagemaker service. size/XL Managed by automation to categorize the size of a PR. 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.

3 participants