Creates an AWS Cognito Resource Server with a custom scope defined, linked to a user pool.

Terraform Template

resource "aws_cognito_resource_server" "resource" {
  identifier = "https://example.com"
  name = "example"
  scope = ["a Sample Scope Description", "sample-scope"]
  user_pool_id = aws_cognito_user_pool.pool.id
}

resource "aws_cognito_user_pool" "pool" {
  name = "pool"
}