-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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_notebook_instance: Root access to Sagemaker notebook instance #14184
r/sagemaker_notebook_instance: Root access to Sagemaker notebook instance #14184
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.
Hey, small change request.
ForceNew: true, | ||
Default: sagemaker.RootAccessEnabled, | ||
ValidateFunc: validation.StringInSlice([]string{ | ||
sagemaker.RootAccessDisabled, |
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, can you change this to sagemaker.RootAccess_Values()
return fmt.Sprintf(` | ||
resource "aws_sagemaker_notebook_instance" "foo" { | ||
name = %[1]q | ||
role_arn = "${aws_iam_role.foo.arn}" |
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.
use tf12 syntax
resource "aws_iam_role" "foo" { | ||
name = %[1]q | ||
path = "/" | ||
assume_role_policy = "${data.aws_iam_policy_document.assume_role.json}" |
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.
same as above
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: TestAccAWSSagemakerNotebookInstance_root_access (699.92s)
@DrFaust92 - Is this good to merge? We are eagerly anticipating this being available in a near future release. |
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.
$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSSagemakerNotebookInstance_root_access\|TestAccAWSSagemakerNotebookInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerNotebookInstance_root_access\|TestAccAWSSagemakerNotebookInstance_basic -timeout 120m
=== RUN TestAccAWSSagemakerNotebookInstance_basic
=== PAUSE TestAccAWSSagemakerNotebookInstance_basic
=== RUN TestAccAWSSagemakerNotebookInstance_root_access
=== PAUSE TestAccAWSSagemakerNotebookInstance_root_access
=== CONT TestAccAWSSagemakerNotebookInstance_basic
=== CONT TestAccAWSSagemakerNotebookInstance_root_access
--- PASS: TestAccAWSSagemakerNotebookInstance_basic (305.93s)
--- PASS: TestAccAWSSagemakerNotebookInstance_root_access (625.81s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 625.849s
LGTM! 🚀 Thanks @dinakar29 Verified Acceptance Tests in Commercial (us-west-2) make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSSagemakerNotebookInstance_root_access\|TestAccAWSSagemakerNotebookInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerNotebookInstance_root_access\|TestAccAWSSagemakerNotebookInstance_basic -timeout 120m
=== RUN TestAccAWSSagemakerNotebookInstance_basic
=== PAUSE TestAccAWSSagemakerNotebookInstance_basic
=== RUN TestAccAWSSagemakerNotebookInstance_root_access
=== PAUSE TestAccAWSSagemakerNotebookInstance_root_access
=== CONT TestAccAWSSagemakerNotebookInstance_basic
=== CONT TestAccAWSSagemakerNotebookInstance_root_access
--- PASS: TestAccAWSSagemakerNotebookInstance_basic (332.52s)
--- PASS: TestAccAWSSagemakerNotebookInstance_root_access (671.71s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 673.305s Verified Acceptance Tests in GovCloud (us-gov-west-1) make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSSagemakerNotebookInstance_root_access\|TestAccAWSSagemakerNotebookInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSagemakerNotebookInstance_root_access\|TestAccAWSSagemakerNotebookInstance_basic -timeout 120m
=== RUN TestAccAWSSagemakerNotebookInstance_basic
=== PAUSE TestAccAWSSagemakerNotebookInstance_basic
=== RUN TestAccAWSSagemakerNotebookInstance_root_access
=== PAUSE TestAccAWSSagemakerNotebookInstance_root_access
=== CONT TestAccAWSSagemakerNotebookInstance_basic
=== CONT TestAccAWSSagemakerNotebookInstance_root_access
--- PASS: TestAccAWSSagemakerNotebookInstance_basic (297.88s)
--- PASS: TestAccAWSSagemakerNotebookInstance_root_access (693.07s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 694.530s |
This has been released in version 3.9.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
Closes #NA
Release note for CHANGELOG:
Output from acceptance testing: