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

feat: allow notebook-al2-v3 as platform_identifier #40484

Conversation

stefanfreitag
Copy link
Contributor

@stefanfreitag stefanfreitag commented Dec 7, 2024

Description

Change the plan-time validation to allow the platform identifier notebook-al2-v3 (Amazon Linux 2 v3) for the resource aws_sagemaker_notebook_instance.

Relations

Closes #40478

References

Output from Acceptance Testing

❯ make testacc TESTS=TestAccSageMakerNotebookInstance_Platform_identifier PKG=sagemaker
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/sagemaker/... -v -count 1 -parallel 3 -run='TestAccSageMakerNotebookInstance_Platform_identifier'  -timeout 360m
2024/12/07 22:25:42 Initializing Terraform AWS Provider...
=== RUN   TestAccSageMakerNotebookInstance_Platform_identifier
=== PAUSE TestAccSageMakerNotebookInstance_Platform_identifier
=== CONT  TestAccSageMakerNotebookInstance_Platform_identifier

--- PASS: TestAccSageMakerNotebookInstance_Platform_identifier (1163.77s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker  1163.999s

I was also trying to run

make testacc TESTS=TestAccSageMakerNotebookInstance PKG=sagemaker

but it failed with

    notebook_instance_test.go:645: Step 1/4 error: Error running apply: exit status 1
        
        Error: creating SageMaker Notebook Instance: operation error SageMaker: CreateNotebookInstance, https response error StatusCode: 400, RequestID: b52ab698-e767-4931-bf5a-f6c4bbf4e13a, ResourceLimitExceeded: The account-level service limit 'ml.inf1.xlarge for notebook instance usage' is 0 Instances, with current utilization of 0 Instances and a request delta of 1 Instances. Please use AWS Service Quotas to request an increase for this quota. If AWS Service Quotas is not available, contact AWS support to request an increase for this quota.
        
          with aws_sagemaker_notebook_instance.test,
          on terraform_plugin_test.tf line 29, in resource "aws_sagemaker_notebook_instance" "test":
          29: resource "aws_sagemaker_notebook_instance" "test" {

Will request an upgrade of the limits, so that this one can also get executed.

Copy link

github-actions bot commented Dec 7, 2024

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/sagemaker Issues and PRs that pertain to the sagemaker service. needs-triage Waiting for first response or review from a maintainer. labels Dec 7, 2024
@stefanfreitag stefanfreitag marked this pull request as ready for review December 7, 2024 21:50
@stefanfreitag stefanfreitag requested a review from a team as a code owner December 7, 2024 21:50
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Dec 9, 2024
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 🚀.

@ewbankkit
Copy link
Contributor

@stefanfreitag Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 562c58d into hashicorp:main Dec 9, 2024
53 checks passed
@github-actions github-actions bot added this to the v5.81.0 milestone Dec 9, 2024
Copy link

This functionality has been released in v5.81.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!

@stefanfreitag stefanfreitag deleted the f-sagemaker_notebook_instance-update-validation branch December 30, 2024 16:09
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 30, 2025
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. service/sagemaker Issues and PRs that pertain to the sagemaker service. 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.

[Enhancement]: sagemaker_notebook_instance: Support platform_identifier=notebook-al2-v3
2 participants