Terraform data source for viewing AWS SSO Admin Principal Application Assignments.
data "aws_ssoadmin_principal_application_assignments" "example" {
instance_arn = tolist(data.aws_ssoadmin_instances.test.arns)[0]
principal_id = aws_identitystore_user.test.user_id
principal_type = "USER"
}
The following arguments are required:
instance_arn
- (Required) ARN of the instance of IAM Identity Center.principal_id
- (Required) An identifier for an object in IAM Identity Center, such as a user or group.principal_type
- (Required) Entity type for which the assignment will be created. Valid values are USER
or GROUP
.This data source exports the following attributes in addition to the arguments above:
application_assignments
- List of principals assigned to the application. See the application_assignments
attribute reference below.application_assignments
Attribute Referenceapplication_arn
- ARN of the application.principal_id
- An identifier for an object in IAM Identity Center, such as a user or group.principal_type
- Entity type for which the assignment will be created. Valid values are USER
or GROUP
.