-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
f/aws_sagemaker_model: adding model attribute for container #15371
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests but TestAccAWSSagemakerModel_primaryContainerModeSingle
are failing the following way:
=== CONT TestAccAWSSagemakerModel_primaryContainerEnvironment
resource_aws_sagemaker_model_test.go:177: After applying this test step, the plan was not empty.
stdout:
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# aws_sagemaker_model.foo must be replaced
-/+ resource "aws_sagemaker_model" "foo" {
~ arn = "arn:aws:sagemaker:us-west-2:544685987707:model/terraform-testacc-sagemaker-model-tqxkp6xb1h" -> (known after apply)
- enable_network_isolation = false -> null
execution_role_arn = "arn:aws:iam::544685987707:role/terraform-testacc-sagemaker-model-tqxkp6xb1h"
~ id = "terraform-testacc-sagemaker-model-tqxkp6xb1h" -> (known after apply)
name = "terraform-testacc-sagemaker-model-tqxkp6xb1h"
~ primary_container {
environment = {
"foo" = "bar"
}
image = "174872318107.dkr.ecr.us-west-2.amazonaws.com/kmeans:1"
- mode = "SingleModel" -> null
}
}
mode
needs to be set as default for SingleModel
.
@@ -360,6 +379,10 @@ func flattenContainer(container *sagemaker.ContainerDefinition) []interface{} { | |||
|
|||
cfg["image"] = *container.Image | |||
|
|||
if container.Mode != nil { | |||
cfg["mode"] = *container.Mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, wrap with aws.StringValue()
updated the default value and its passing now. TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerModel_primaryContainerEnvironment -timeout 120m |
@nikhil-goenka lets also add the its the default value the the docs. |
already done |
Missed it 😅 . running tests now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
--- PASS: TestAccAWSSagemakerModel_networkIsolation (57.62s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (58.01s)
--- PASS: TestAccAWSSagemakerModel_basic (61.42s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModeSingle (61.54s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (62.15s)
--- PASS: TestAccAWSSagemakerModel_containers (76.41s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (84.87s)
--- PASS: TestAccAWSSagemakerModel_tags (87.15s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (96.73s)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @nikhil-goenka 🚀
Output from acceptance testing (tags testing previously flaky and unrelated):
--- FAIL: TestAccAWSSagemakerModel_tags (25.48s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerHostname (35.25s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModeSingle (36.71s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerModelDataUrl (46.65s)
--- PASS: TestAccAWSSagemakerModel_basic (48.03s)
--- PASS: TestAccAWSSagemakerModel_vpcConfig (50.85s)
--- PASS: TestAccAWSSagemakerModel_containers (52.39s)
--- PASS: TestAccAWSSagemakerModel_primaryContainerEnvironment (53.36s)
--- PASS: TestAccAWSSagemakerModel_networkIsolation (54.68s)
This has been released in version 3.13.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! |
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! |
Community Note
Relates OR Closes #14891
Release note for CHANGELOG:
Output from acceptance testing: