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_project - new resource #21534

Merged
merged 13 commits into from
Jan 21, 2022
Merged

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Oct 28, 2021

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 #21490

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccSageMakerProject_' PKG_NAME=internal/service/sagemaker
--- PASS: TestAccSageMakerProject_description (426.65s)
--- PASS: TestAccSageMakerProject_basic (427.42s)
--- PASS: TestAccSageMakerProject_tags (674.57s)
--- PASS: TestAccSageMakerProject_disappears (236.10s)

@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. 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 28, 2021
@DrFaust92
Copy link
Collaborator Author

DrFaust92 commented Oct 28, 2021

Still trying to figure out how to allow sagemaker to find SC product

        Error: error creating SageMaker Project tf-acc-test-****: ValidationException: Product prod-xxxxxxxx does not exist or access was denied

edit:

managed to workaround the servicecatalog permissions model

@DrFaust92 DrFaust92 added the new-resource Introduces a new resource. label Oct 28, 2021
@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. sweeper Pertains to changes to or issues with the sweeper. labels Nov 30, 2021
@DrFaust92 DrFaust92 marked this pull request as ready for review November 30, 2021 11:36
@DrFaust92
Copy link
Collaborator Author

Update seems to be eventual consistent or just doesn't work.

        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          ~ update in-place
        
        Terraform will perform the following actions:
        
          # aws_sagemaker_project.test will be updated in-place
          ~ resource "aws_sagemaker_project" "test" {
                id                  = "tf-acc-test-681159631628448959"
              ~ project_description = "tf-acc-test-681159631628448959" -> "tf-acc-test-5355559471089804246"
                tags                = {}
                # (4 unchanged attributes hidden)
        
                # (1 unchanged block hidden)
            }

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 🚀.

% make testacc TESTARGS='-run=TestAccSageMakerProject_' PKG_NAME=internal/service/sagemaker
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/sagemaker/... -v -count 1 -parallel 20 -run=TestAccSageMakerProject_ -timeout 180m
=== RUN   TestAccSageMakerProject_basic
=== PAUSE TestAccSageMakerProject_basic
=== RUN   TestAccSageMakerProject_description
=== PAUSE TestAccSageMakerProject_description
=== RUN   TestAccSageMakerProject_tags
=== PAUSE TestAccSageMakerProject_tags
=== RUN   TestAccSageMakerProject_disappears
=== PAUSE TestAccSageMakerProject_disappears
=== CONT  TestAccSageMakerProject_basic
=== CONT  TestAccSageMakerProject_tags
=== CONT  TestAccSageMakerProject_disappears
=== CONT  TestAccSageMakerProject_description
--- PASS: TestAccSageMakerProject_disappears (164.61s)
--- PASS: TestAccSageMakerProject_basic (194.46s)
--- PASS: TestAccSageMakerProject_description (278.19s)
--- PASS: TestAccSageMakerProject_tags (295.66s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/sagemaker	299.356s

@ewbankkit
Copy link
Contributor

@DrFaust92 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit e7b5e5a into hashicorp:main Jan 21, 2022
@github-actions github-actions bot added this to the v3.74.0 milestone Jan 21, 2022
@github-actions
Copy link

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

@DrFaust92 DrFaust92 deleted the sagemaker_project branch February 12, 2022 12:53
@github-actions
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 May 19, 2022
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. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/sagemaker Issues and PRs that pertain to the sagemaker service. size/XL Managed by automation to categorize the size of a PR. sweeper Pertains to changes to or issues with the sweeper. 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.

None yet

2 participants