-
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
fix: typo r_studio_package_manager_url in sagemaker domain #38547
fix: typo r_studio_package_manager_url in sagemaker domain #38547
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @felipempda 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
Output from Acceptance Testing% make testacc TESTS=TestAccDomain_rStudioServerProDomainSettings PKG=sagemaker
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/sagemaker/... -v -count 1 -parallel 20 -run='TestAccDomain_rStudioServerProDomainSettings' -timeout 360m
=== RUN TestAccDomain_rStudioServerProDomainSettings
--- PASS: TestAccDomain_rStudioServerProDomainSettings (389.88s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker 390.147s
... |
I couldn't run test if function name was lowercase: make testacc TESTS=testAccDomain_rStudioServerProDomainSettings PKG=sagemaker
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/sagemaker/... -v -count 1 -parallel 20 -run='testAccDomain_rStudioServerProDomainSettings' -timeout 360m
testing: warning: no tests to run
PASS Converting it now to lowercase and putting it inside Domain because of SageMaker limits. If you want to test the acceptance test, you would have to go back to previous commit: 914b99c. I hope this is up to standards! |
Some feedback IMO you should use the existing base terraform code for test case and attach license manager inline policy. Do not create a new one. @DrFaust92 if you want review this bug fix PR |
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
…gurationError: Domain-level App [arn:aws:sagemaker:us-west-2:...:app/d-bejfwx765inu/domain-shared/RStudioServerPro/default] failed to start: [ResourceNotFoundError: No available licenses were found. Validate that a license for RStudio Workbench exists in AWS License Manager that is in Active state.]'.
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 TESTARGS='-run=TestAccSageMaker_serial/^Domain$$/rStudioServer' PKG=sagemaker
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/sagemaker/... -v -count 1 -parallel 20 -run=TestAccSageMaker_serial/^Domain$/rStudioServer -timeout 360m
=== RUN TestAccSageMaker_serial
=== PAUSE TestAccSageMaker_serial
=== CONT TestAccSageMaker_serial
=== RUN TestAccSageMaker_serial/Domain
=== RUN TestAccSageMaker_serial/Domain/rStudioServerProAppSettings
=== RUN TestAccSageMaker_serial/Domain/rStudioServerProDomainSettings
acctest.go:1624: skipping test for aws/us-west-2: Error running apply: exit status 1
Error: creating SageMaker Domain (d-xaufbhd7ggt1): waiting for completion: unexpected state 'Failed', wanted target 'InService'. last error: ConfigurationError: Domain-level App [arn:aws:sagemaker:us-west-2:123456789012:app/d-xaufbhd7ggt1/domain-shared/RStudioServerPro/default] failed to start: [ResourceNotFoundError: No available licenses were found. Validate that a license for RStudio Workbench exists in AWS License Manager that is in Active state.].
with aws_sagemaker_domain.test,
on terraform_plugin_test.tf line 86, in resource "aws_sagemaker_domain" "test":
86: resource "aws_sagemaker_domain" "test" {
--- PASS: TestAccSageMaker_serial (904.12s)
--- PASS: TestAccSageMaker_serial/Domain (904.12s)
--- PASS: TestAccSageMaker_serial/Domain/rStudioServerProAppSettings (270.94s)
--- SKIP: TestAccSageMaker_serial/Domain/rStudioServerProDomainSettings (633.18s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker 909.188s
@felipempda Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.61.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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Attribute
r_studio_package_manager_url
in SageMaker domain shows up in Terraform plan but is not used on API calls to AWS due to a typo.Relations
Closes #38546
References
In order to run this tests you'd need a license shared from Posit to your account: https://docs.aws.amazon.com/sagemaker/latest/dg/rstudio-license.html
Output from Acceptance Testing
Please see comments below.