Resource Type definition for AWS::Cognito::IdentityPool
This will create a default identity pool.
If identity_pool_name
is not set, a name will be automatically generated.
resource "awscc_cognito_identity_pool" "default-test-pool" {
allow_unauthenticated_identities = false
}
This requires a user pool and the corresponding app client ID to be created in the user pool beforehand.
resource "aws_cognito_user_pool" "example_user_pool" {
name = "example-user-pool"
}
resource "aws_cognito_user_pool_client" "example_user_pool_client" {
name = "example-user-pool-client"
user_pool_id = aws_cognito_user_pool.example_user_pool.id
}
resource "awscc_cognito_identity_pool" "example_identity_pool" {
identity_pool_name = "example-identity-pool"
allow_unauthenticated_identities = false //regardless of whether this is true or not, this requires configuration of aws_cognito_identity_pool_roles_attachment
cognito_identity_providers = [{
client_id = aws_cognito_user_pool_client.example_user_pool_client.id
provider_name = aws_cognito_user_pool.example_user_pool.endpoint
}]
}
allow_unauthenticated_identities
(Boolean)allow_classic_flow
(Boolean)cognito_events
(String)cognito_identity_providers
(Attributes List) (see below for nested schema)cognito_streams
(Attributes) (see below for nested schema)developer_provider_name
(String)identity_pool_name
(String)open_id_connect_provider_ar_ns
(List of String)push_sync
(Attributes) (see below for nested schema)saml_provider_ar_ns
(List of String)supported_login_providers
(String)id
(String) Uniquely identifies the resource.identity_pool_id
(String)name
(String)cognito_identity_providers
Required:
client_id
(String)provider_name
(String)Optional:
server_side_token_check
(Boolean)cognito_streams
Optional:
role_arn
(String)stream_name
(String)streaming_status
(String)push_sync
Optional:
application_arns
(List of String)role_arn
(String)Import is supported using the following syntax:
$ terraform import awscc_cognito_identity_pool.example <resource ID>