aws_cognito_identity_provider

Provides a Cognito User Identity Provider resource.

Example Usage

resource "aws_cognito_user_pool" "example" {
  name                      = "example-pool"
  auto_verified_attributes  = ["email"]
}

resource "aws_cognito_identity_provider" "example_provider" {
  user_pool_id  = "${aws_cognito_user_pool.example.id}"
  provider_name = "Google"
  provider_type = "Google"

  provider_details {
    authorize_scopes  = "email"
    client_id         = "your client_id"
    client_secret     = "your client_secret"
  }

  attribute_mapping {
    email    = "email"
    username = "sub"
  }
}

Argument Reference

The following arguments are supported:

Import

aws_cognito_identity_provider resources can be imported using their User Pool ID and Provider Name, e.g.

$ terraform import aws_cognito_identity_provider.example xxx_yyyyy:example

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/cognito_identity_provider.html