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

[Bug]: aws_sagemaker_workteam workforce_name is not a required field #39488

Closed
BeRT2me opened this issue Sep 25, 2024 · 5 comments · Fixed by #39630
Closed

[Bug]: aws_sagemaker_workteam workforce_name is not a required field #39488

BeRT2me opened this issue Sep 25, 2024 · 5 comments · Fixed by #39630
Labels
bug Addresses a defect in current functionality. service/sagemaker Issues and PRs that pertain to the sagemaker service.
Milestone

Comments

@BeRT2me
Copy link

BeRT2me commented Sep 25, 2024

Terraform Core Version

1.7.5

AWS Provider Version

5.68.0

Affected Resource(s)

  • aws_sagemaker_workteam

Expected Behavior

workforce_name should not be a required field.

Actual Behavior

The argument "workforce_name" is required, but no definition was found.

An Error is raised, even on an imported resource...

Relevant Error/Panic Output Snippet

╷
│ Error: Missing required argument
│ 
│   on ../workforce.tf line 26, in resource "aws_sagemaker_workteam" "workteams":
│   26: resource "aws_sagemaker_workteam" "workteams" {
│ 
│ The argument "workforce_name" is required, but no definition was found.
╵

Terraform Configuration Files

resource "aws_sagemaker_workteam" "workteams" {
for_each = var.user_groups

workteam_name = each.key
description = "Default workteam for AWS Samurai"

member_definition {
cognito_member_definition {
client_id = aws_cognito_user_pool_client.client.id
user_pool = aws_cognito_user_pool.pool.id
user_group = aws_cognito_user_group.user_groups[each.key].name
}
}

Steps to Reproduce

  • Add or import an aws_sagemaker_workteam
  • Run terraform validate

Debug Output

No response

Panic Output

No response

Important Factoids

No error is raised when running aws sagemaker create-workteam ... without a WorkforceName input.

References

https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateWorkteam.html#API_CreateWorkteam_RequestParameters

Would you like to implement a fix?

No

@BeRT2me BeRT2me added the bug Addresses a defect in current functionality. label Sep 25, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added service/sagemaker Issues and PRs that pertain to the sagemaker service. needs-triage Waiting for first response or review from a maintainer. labels Sep 25, 2024
@trutled3
Copy link
Contributor

Hey @BeRT2me - I see the same on the AWS SDK Go V2. I will draft a pull request for this.

Copy link

github-actions bot commented Oct 9, 2024

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.71.0 milestone Oct 9, 2024
Copy link

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

Copy link

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 have found a problem that seems similar to this, 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 Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/sagemaker Issues and PRs that pertain to the sagemaker service.
Projects
None yet
3 participants