@@ -55,10 +55,10 @@ pre-configured.
5555 Create a Cognito User Pool with pre-configured best practices.
5656 Create Cognito User Pool Clients.
5757 Create a Cognito User Pool Domain.
58+ Create Cognito User Pool Resource Servers as associated scopes.
5859
5960- * Features not yet implemented* :
6061 [ ` cognito_user_group ` ] ( https://www.terraform.io/docs/providers/aws/r/cognito_user_group.html )
61- [ ` cognito_resource_server ` ] ( https://www.terraform.io/docs/providers/aws/r/cognito_resource_server.html )
6262
6363## Getting Started
6464
@@ -424,6 +424,36 @@ for details and use-cases.
424424 The ARN of an ISSUED ACM certificate in us-east-1 for a custom domain.
425425 Default is not to use a custom domain.
426426
427+ #### Cognito User Pool Resource Servers
428+
429+ - ** ` resource_servers ` ** : * (Optional ` list(resource_server) ` )
430+
431+ A list of objects with resource server declarations.
432+ Default is [ ]
433+
434+ ** Example:**
435+
436+ A resource server declaration with scopes. For details see the [ Terraform AWS Cognito Resource Server Docs]
437+
438+ ``` hcl
439+ resource_servers = [
440+ {
441+ identifier = "https://api.resourceserver.com"
442+ name = "API"
443+ scopes = [
444+ {
445+ scope_name = "users:read"
446+ scope_description = "Read user data"
447+ },
448+ {
449+ scope_name = "users:write"
450+ scope_description = "Write user data"
451+ }
452+ ]
453+ }
454+ ]
455+ ```
456+
427457#### Cognito User Pool Clients
428458
429459- ** ` clients ` ** : * (Optional ` list(client) ` )*
@@ -660,3 +690,4 @@ Copyright © 2020 [Mineiros GmbH][homepage]
660690[ Cognito User Pools ] : https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html
661691[ attributes docs ] : https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html
662692[ Terraform AWS Cognito User Pool Client Docs ] : https://www.terraform.io/docs/providers/aws/r/cognito_user_pool_client.html
693+ [ Terraform AWS Cognito Resource Server Docs ] : https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_resource_server
0 commit comments