AWS Amazon Cognito Resource Server

This page shows how to write Terraform and CloudFormation for Amazon Cognito Resource Server and write them securely.

aws_cognito_resource_server (Terraform)

The Resource Server in Amazon Cognito can be configured in Terraform with the resource name aws_cognito_resource_server. The following sections describe 4 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconkronostechnologies/aws-mocks
resource "aws_cognito_resource_server" "resource" {
    identifier = "somresource"
    name = "somresource"
    user_pool_id = aws_cognito_user_pool.main.id

    scope {
github-iconJamesWoolfenden/terraform-aws-cognito
resource "aws_cognito_resource_server" "main" {
  name         = var.fqdn
  identifier   = var.fqdn
  user_pool_id = aws_cognito_user_pool.main.id
}
github-iconleomenezessz/pizza-orders
resource "aws_cognito_resource_server" "resource" {
  identifier = "orders-app"
  name       = "orders-app"

  scope {
    scope_name        = "read_orders"
github-iconcloudveto/terraform-modules
resource "aws_cognito_resource_server" "resource" {
  identifier   = var.identifier
  name         = var.name
  user_pool_id = var.user_pool_id

  scope {

Parameters

Explanation in Terraform Registry

Provides a Cognito Resource Server.

AWS::Cognito::UserPoolResourceServer (CloudFormation)

The UserPoolResourceServer in Cognito can be configured in CloudFormation with the resource name AWS::Cognito::UserPoolResourceServer. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

The AWS::Cognito::UserPoolResourceServer resource creates a new OAuth2.

0 resource server and defines custom scopes in it.

Frequently asked questions

What is AWS Amazon Cognito Resource Server?

AWS Amazon Cognito Resource Server is a resource for Amazon Cognito of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon Cognito Resource Server?

For Terraform, the kronostechnologies/aws-mocks, JamesWoolfenden/terraform-aws-cognito and leomenezessz/pizza-orders source code examples are useful. See the Terraform Example section for further details.