hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[Enhancement]: aws_sagemaker_user_profile lack of profile name in attributes #37098

Open maciejmaz opened 5 months ago

maciejmaz commented 5 months ago

Description

Hello,

When you are using aws_sagemaker_user_profile resource, there is no name attribute that is required in other resources, like aws_sagemaker_space. Basically there are ID and ARN attributes which both return the ARN of user profile.

Affected Resource(s) and/or Data Source(s)

aws_sagemaker_user_profile

Potential Terraform Configuration

resource "aws_sagemaker_user_profile" "example" {
  domain_id         = aws_sagemaker_domain.test.id
  user_profile_name = "example"
}

resource "aws_sagemaker_space" "example" {
  domain_id  = aws_sagemaker_domain.test.id
  space_name = "example"
  ownership_settings {
    owner_user_profile_name = aws_sagemaker_user_profile.example.name
  }
  space_sharing_settings {
    sharing_type = "Private"
  }
}

outputs "user_profile_name" {
  value = aws_sagemaker_user_profile.example.name
}

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue