README.md

January 1, 2026 · View on GitHub

Project Banner

Latest ReleaseSlack CommunityGet Support

This component is responsible for provisioning and managing AWS Cognito resources.

This component can provision the following resources:

Tip

👽 Use Atmos with Terraform

Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform.
Works with Github Actions, Atlantis, or Spacelift.

Watch demo of using Atmos with Terraform
Example of running atmos to manage infrastructure from our Quick Start tutorial.

Usage

Stack Level: Global

Here's an example snippet for how to use this component:

components:
  terraform:
    cognito:
      settings:
        spacelift:
          workspace_enabled: true
      vars:
        enabled: true
        # The full name of the User Pool will be: <namespace>-<environment>-<stage>-<name>
        name: cognito
        schemas:
          - name: "email"
            attribute_data_type: "String"
            developer_only_attribute: false
            mutable: false
            required: true

Risk Configuration Examples

Basic Account Takeover Protection

components:
  terraform:
    cognito:
      vars:
        enabled: true
        name: cognito
        # Configure account takeover risk protection
        account_takeover_risk_configuration:
          notify_configuration:
            block_email:
              html_body: "Your account has been blocked due to suspicious activity."
              subject: "Account Security Alert"
              text_body: "Your account has been blocked due to suspicious activity."
            from: "security@[company].com"
            # Replace with your SES verified identity ARN for the correct region/account
            source_arn: "<SES_SOURCE_ARN>"  # e.g., arn:aws:ses:REGION:ACCOUNT:identity/email@domain.com
          actions:
            high_action:
              event_action: "BLOCK"
              notify: true
            medium_action:
              event_action: "MFA_REQUIRED"
              notify: true
            low_action:
              event_action: "NO_ACTION"
              notify: false

Compromised Credentials Detection

components:
  terraform:
    cognito:
      vars:
        enabled: true
        name: cognito
        # Configure compromised credentials detection
        compromised_credentials_risk_configuration:
          event_filter: ["SIGN_IN", "PASSWORD_CHANGE"]
          actions:
            event_action: "BLOCK"

IP-Based Risk Exceptions

components:
  terraform:
    cognito:
      vars:
        enabled: true
        name: cognito
        # Configure IP-based risk exceptions
        risk_exception_configuration:
          blocked_ip_range_list:
            - "192.0.2.0/24"    # Block this IP range
            - "203.0.113.0/24"  # Block this IP range
          skipped_ip_range_list:
            - "10.0.0.0/8"      # Skip risk detection for internal network
            - "172.16.0.0/12"   # Skip risk detection for private network

Client-Specific Risk Configuration

components:
  terraform:
    cognito:
      vars:
        enabled: true
        name: cognito
        clients:
          - name: "web-app"
            generate_secret: false
          - name: "mobile-app"
            generate_secret: true
        # Configure risk settings for specific clients
        # Note: client_id must be the actual App Client ID, not the client name
        risk_configurations:
          - client_id: "1a2b3c4d5e6f7g8h9i0j1k2l3m"  # Actual App Client ID for web-app
            account_takeover_risk_configuration:
              actions:
                high_action:
                  event_action: "BLOCK"
                  notify: false
                medium_action:
                  event_action: "MFA_IF_CONFIGURED"
                  notify: false
                low_action:
                  event_action: "NO_ACTION"
                  notify: false
          - client_id: "9z8y7x6w5v4u3t2s1r0q9p8o7n"  # Actual App Client ID for mobile-app
            compromised_credentials_risk_configuration:
              event_filter: ["SIGN_IN"]
              actions:
                event_action: "BLOCK"

Important: The client_id field requires the actual AWS Cognito App Client ID, not the client name. To reference the App Client ID from the module outputs, use module.cognito.client_ids_map["client-name"] where client-name is the name you defined in the clients configuration.

Comprehensive Risk Configuration

components:
  terraform:
    cognito:
      vars:
        enabled: true
        name: cognito
        # Comprehensive risk configuration with all features
        risk_configurations:
          - # Global User Pool configuration
            account_takeover_risk_configuration:
              notify_configuration:
                block_email:
                  html_body: "<h1>Security Alert</h1><p>Your account has been temporarily blocked due to suspicious activity.</p>"
                  subject: "Account Security Alert - Action Required"
                  text_body: "Your account has been temporarily blocked due to suspicious activity. Please contact support."
                mfa_email:
                  html_body: "<h1>Additional Verification Required</h1><p>We detected unusual activity and require additional verification.</p>"
                  subject: "Additional Verification Required"
                  text_body: "We detected unusual activity and require additional verification."
                no_action_email:
                  html_body: "<h1>Security Notice</h1><p>We detected some unusual activity but no action is required.</p>"
                  subject: "Security Notice"
                  text_body: "We detected some unusual activity but no action is required."
                from: "security@[company].com"
                reply_to: "noreply@[company].com"
                # Replace with your SES verified identity ARN for the correct region/account
                source_arn: "<SES_SOURCE_ARN>"  # e.g., arn:aws:ses:REGION:ACCOUNT:identity/email@domain.com
              actions:
                high_action:
                  event_action: "BLOCK"
                  notify: true
                medium_action:
                  event_action: "MFA_REQUIRED"
                  notify: true
                low_action:
                  event_action: "NO_ACTION"
                  notify: true
            compromised_credentials_risk_configuration:
              event_filter: ["SIGN_IN", "PASSWORD_CHANGE", "SIGN_UP"]
              actions:
                event_action: "BLOCK"
            risk_exception_configuration:
              blocked_ip_range_list:
                - "192.0.2.0/24"
                - "203.0.113.0/24"
              skipped_ip_range_list:
                - "10.0.0.0/8"
                - "172.16.0.0/12"
                - "192.168.0.0/16"

Using Module Outputs for Client IDs

When you need to reference App Client IDs from the same module (e.g., in a separate resource or data source), use the client_ids_map output:

# Example: Using the cognito module's client_ids_map output in another resource
components:
  terraform:
    cognito:
      vars:
        enabled: true
        name: cognito
        clients:
          - name: "web-app"
            generate_secret: false
          - name: "mobile-app"
            generate_secret: true

    # Separate resource that needs the client IDs
    cognito-risk-config:
      vars:
        user_pool_id: "${module.cognito.id}"
        web_app_client_id: "${module.cognito.client_ids_map['web-app']}"
        mobile_app_client_id: "${module.cognito.client_ids_map['mobile-app']}"

Important

In Cloud Posse's examples, we avoid pinning modules to specific versions to prevent discrepancies between the documentation and the latest released versions. However, for your own projects, we strongly advise pinning each module to the exact version you're using. This practice ensures the stability of your infrastructure. Additionally, we recommend implementing a systematic approach for updating versions to avoid unexpected changes.

Requirements

NameVersion
terraform>= 1.0.0
aws>= 4.51.0, < 6.0.0

Providers

NameVersion
aws>= 4.51.0, < 6.0.0

Modules

NameSourceVersion
iam_roles../account-map/modules/iam-rolesn/a
thiscloudposse/label/null0.25.0

Resources

NameType
aws_cognito_identity_provider.identity_providerresource
aws_cognito_resource_server.resourceresource
aws_cognito_risk_configuration.risk_configresource
aws_cognito_user_group.mainresource
aws_cognito_user_pool.poolresource
aws_cognito_user_pool_client.clientresource
aws_cognito_user_pool_domain.domainresource
aws_caller_identity.currentdata source
aws_region.currentdata source

Inputs

NameDescriptionTypeDefaultRequired
account_takeover_risk_configurationAccount takeover risk configuration settings. Configures detection and response to suspicious authentication attempts
object({
notify_configuration = optional(object({
block_email = optional(object({
html_body = optional(string)
subject = optional(string)
text_body = optional(string)
}))
mfa_email = optional(object({
html_body = optional(string)
subject = optional(string)
text_body = optional(string)
}))
no_action_email = optional(object({
html_body = optional(string)
subject = optional(string)
text_body = optional(string)
}))
from = optional(string)
reply_to = optional(string)
source_arn = optional(string)
}))
actions = optional(object({
high_action = optional(object({
event_action = string
notify = optional(bool)
}))
medium_action = optional(object({
event_action = string
notify = optional(bool)
}))
low_action = optional(object({
event_action = string
notify = optional(bool)
}))
}))
})
{}no
additional_tag_mapAdditional key-value pairs to add to each map in tags_as_list_of_maps. Not added to tags or id.
This is for some rare cases where resources want additional configuration of tags
and therefore take a list of maps with tag key, value, and additional configuration.
map(string){}no
admin_create_user_configThe configuration for AdminCreateUser requestsmap(any){}no
admin_create_user_config_allow_admin_create_user_onlySet to true if only the administrator is allowed to create user profiles. Set to false if users can sign themselves up via an appbooltrueno
admin_create_user_config_email_messageThe message template for email messages. Must contain {username} and {####} placeholders, for username and temporary password, respectivelystring"{username}, your temporary password is {####}"no
admin_create_user_config_email_subjectThe subject line for email messagesstring"Your verification code"no
admin_create_user_config_sms_messageThe message template for SMS messages. Must contain {username} and {####} placeholders, for username and temporary password, respectivelystring"Your username is {username} and temporary password is {####}"no
alias_attributesAttributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username. Conflicts with username_attributeslist(string)nullno
attributesID element. Additional attributes (e.g. workers or cluster) to add to id,
in the order they appear in the list. New attributes are appended to the
end of the list. The elements of the list are joined by the delimiter
and treated as a single ID element.
list(string)[]no
auto_verified_attributesThe attributes to be auto-verified. Possible values: email, phone_numberlist(string)[]no
client_access_token_validityTime limit, between 5 minutes and 1 day, after which the access token is no longer valid and cannot be used. This value will be overridden if you have entered a value in token_validity_units.number60no
client_allowed_oauth_flowsList of allowed OAuth flows (code, implicit, client_credentials)list(string)[]no
client_allowed_oauth_flows_user_pool_clientWhether the client is allowed to follow the OAuth protocol when interacting with Cognito user poolsbooltrueno
client_allowed_oauth_scopesList of allowed OAuth scopes (phone, email, openid, profile, and aws.cognito.signin.user.admin)list(string)[]no
client_auth_session_validityThe duration, in minutes, of a user session. The default is 3 minutes and the maximum is 1440 minutes (24 hours).number3no
client_callback_urlsList of allowed callback URLs for the identity providerslist(string)[]no
client_default_redirect_uriThe default redirect URI. Must be in the list of callback URLsstring""no
client_enable_propagate_additional_user_context_dataSet to true to enable the propagation of additional user context data. See AWS documentation for more detailsboolfalseno
client_enable_token_revocationSet to true to enable token revocation for the user pool clientboolfalseno
client_explicit_auth_flowsList of authentication flows (ADMIN_NO_SRP_AUTH, CUSTOM_AUTH_FLOW_ONLY, USER_PASSWORD_AUTH)list(string)[]no
client_generate_secretShould an application secret be generatedbooltrueno
client_id_token_validityTime limit, between 5 minutes and 1 day, after which the ID token is no longer valid and cannot be used. Must be between 5 minutes and 1 day. Cannot be greater than refresh token expiration. This value will be overridden if you have entered a value in token_validity_units.number60no
client_logout_urlsList of allowed logout URLs for the identity providerslist(string)[]no
client_nameThe name of the application clientstringnullno
client_prevent_user_existence_errorsChoose which errors and responses are returned by Cognito APIs during authentication, account confirmation, and password recovery when the user does not exist in the user pool. When set to ENABLED and the user does not exist, authentication returns an error indicating either the username or password was incorrect, and account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to LEGACY, those APIs will return a UserNotFoundException exception if the user does not exist in the user pool.stringnullno
client_read_attributesList of user pool attributes the application client can read fromlist(string)[]no
client_refresh_token_validityThe time limit in days refresh tokens are valid for. Must be between 60 minutes and 3650 days. This value will be overridden if you have entered a value in token_validity_unitsnumber30no
client_supported_identity_providersList of provider names for the identity providers that are supported on this clientlist(string)[]no
client_token_validity_unitsConfiguration block for units in which the validity times are represented in. Valid values for the following arguments are: seconds, minutes, hours or days.any
{
"access_token": "minutes",
"id_token": "minutes",
"refresh_token": "days"
}
no
client_write_attributesList of user pool attributes the application client can write tolist(string)[]no
clientsUser Pool clients configurationany[]no
compromised_credentials_risk_configurationCompromised credentials risk configuration settings. Configures detection of known compromised passwords
object({
event_filter = optional(list(string))
actions = optional(object({
event_action = string
}))
})
{}no
contextSingle object for setting entire context at once.
See description of individual variables for details.
Leave string and numeric variables as null to use default value.
Individual variable settings (non-null) override settings in context object,
except for attributes, tags, and additional_tag_map, which are merged.
any
{
"additional_tag_map": {},
"attributes": [],
"delimiter": null,
"descriptor_formats": {},
"enabled": true,
"environment": null,
"id_length_limit": null,
"label_key_case": null,
"label_order": [],
"label_value_case": null,
"labels_as_tags": [
"unset"
],
"name": null,
"namespace": null,
"regex_replace_chars": null,
"stage": null,
"tags": {},
"tenant": null
}
no
deletion_protection(Optional) When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature. Valid values are ACTIVE and INACTIVE, Default value is INACTIVE.string"INACTIVE"no
delimiterDelimiter to be used between ID elements.
Defaults to - (hyphen). Set to "" to use no delimiter at all.
stringnullno
descriptor_formatsDescribe additional descriptors to be output in the descriptors output map.
Map of maps. Keys are names of descriptors. Values are maps of the form
{<br/> format = string<br/> labels = list(string)<br/>}
(Type is any so the map values can later be enhanced to provide additional options.)
format is a Terraform format string to be passed to the format() function.
labels is a list of labels, in order, to pass to format() function.
Label values will be normalized before being passed to format() so they will be
identical to how they appear in id.
Default is {} (descriptors output will be empty).
any{}no
device_configurationThe configuration for the user pool's device trackingmap(any){}no
device_configuration_challenge_required_on_new_deviceIndicates whether a challenge is required on a new device. Only applicable to a new deviceboolfalseno
device_configuration_device_only_remembered_on_user_promptIf true, a device is only remembered on user promptboolfalseno
domainCognito User Pool domainstringnullno
domain_certificate_arnThe ARN of an ISSUED ACM certificate in us-east-1 for a custom domainstringnullno
email_configurationEmail configurationmap(any){}no
email_configuration_email_sending_accountInstruct Cognito to either use its built-in functionality or Amazon SES to send out emails. Allowed values: COGNITO_DEFAULT or DEVELOPERstring"COGNITO_DEFAULT"no
email_configuration_from_email_addressSender’s email address or sender’s display name with their email address (e.g. john@example.com, John Smith <john@example.com> or "John Smith Ph.D." <john@example.com>). Escaped double quotes are required around display names that contain certain characters as specified in RFC 5322stringnullno
email_configuration_reply_to_email_addressThe REPLY-TO email addressstring""no
email_configuration_source_arnThe ARN of the email configuration sourcestring""no
email_verification_messageA string representing the email verification messagestringnullno
email_verification_subjectA string representing the email verification subjectstringnullno
enabledSet to false to prevent the module from creating any resourcesboolnullno
environmentID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'stringnullno
id_length_limitLimit id to this many characters (minimum 6).
Set to 0 for unlimited length.
Set to null for keep the existing setting, which defaults to 0.
Does not affect id_full.
numbernullno
identity_providersCognito Identity Providers configurationlist(any)[]no
label_key_caseControls the letter case of the tags keys (label names) for tags generated by this module.
Does not affect keys of tags passed in via the tags input.
Possible values: lower, title, upper.
Default value: title.
stringnullno
label_orderThe order in which the labels (ID elements) appear in the id.
Defaults to ["namespace", "environment", "stage", "name", "attributes"].
You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present.
list(string)nullno
label_value_caseControls the letter case of ID elements (labels) as included in id,
set as tag values, and output by this module individually.
Does not affect values of tags passed in via the tags input.
Possible values: lower, title, upper and none (no transformation).
Set this to title and set delimiter to "" to yield Pascal Case IDs.
Default value: lower.
stringnullno
labels_as_tagsSet of labels (ID elements) to include as tags in the tags output.
Default is to include all labels.
Tags with empty values will not be included in the tags output.
Set to [] to suppress all generated tags.
Notes:
The value of the name tag, if included, will be the id, not the name.
Unlike other null-label inputs, the initial setting of labels_as_tags cannot be
changed in later chained modules. Attempts to change it will be silently ignored.
set(string)
[
"default"
]
no
lambda_configConfiguration for the AWS Lambda triggers associated with the User Poolanynullno
lambda_config_create_auth_challengeThe ARN of the lambda creating an authentication challengestring""no
lambda_config_custom_email_senderA custom email sender AWS Lambda triggermap(any){}no
lambda_config_custom_messageAWS Lambda trigger custom messagestring""no
lambda_config_custom_sms_senderA custom SMS sender AWS Lambda triggermap(any){}no
lambda_config_define_auth_challengeAuthentication challengestring""no
lambda_config_kms_key_idThe Amazon Resource Name of Key Management Service Customer master keys. Amazon Cognito uses the key to encrypt codes and temporary passwords sent to CustomEmailSender and CustomSMSSender.stringnullno
lambda_config_post_authenticationA post-authentication AWS Lambda triggerstring""no
lambda_config_post_confirmationA post-confirmation AWS Lambda triggerstring""no
lambda_config_pre_authenticationA pre-authentication AWS Lambda triggerstring""no
lambda_config_pre_sign_upA pre-registration AWS Lambda triggerstring""no
lambda_config_pre_token_generationAllow to customize identity token claims before token generationstring""no
lambda_config_user_migrationThe user migration Lambda config typestring""no
lambda_config_verify_auth_challenge_responseVerifies the authentication challenge responsestring""no
mfa_configurationMulti-factor authentication configuration. Must be one of the following values (ON, OFF, OPTIONAL)string"OFF"no
nameID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as a tag.
The "name" tag is set to the full id string. There is no tag with the value of the name input.
stringnullno
namespaceID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally uniquestringnullno
number_schemasA container with the number schema attributes of a user pool. Maximum of 50 attributeslist(any)[]no
password_policyUser Pool password policy configuration
object({
minimum_length = number,
require_lowercase = bool,
require_numbers = bool,
require_symbols = bool,
require_uppercase = bool,
temporary_password_validity_days = number
})
nullno
password_policy_minimum_lengthThe minimum password lengthnumber8no
password_policy_require_lowercaseWhether you have required users to use at least one lowercase letter in their passwordbooltrueno
password_policy_require_numbersWhether you have required users to use at least one number in their passwordbooltrueno
password_policy_require_symbolsWhether you have required users to use at least one symbol in their passwordbooltrueno
password_policy_require_uppercaseWhether you have required users to use at least one uppercase letter in their passwordbooltrueno
password_policy_temporary_password_validity_daysPassword policy temporary password validity_daysnumber7no
recovery_mechanismsList of account recovery optionslist(any)[]no
regex_replace_charsTerraform regular expression (regex) string.
Characters matching the regex will be removed from the ID elements.
If not set, "/[^a-zA-Z0-9-]/" is used to remove all characters other than hyphens, letters and digits.
stringnullno
regionAWS regionstringn/ayes
resource_server_identifierResource server identifierstringnullno
resource_server_nameResource server namestringnullno
resource_server_scope_descriptionResource server scope descriptionstringnullno
resource_server_scope_nameResource server scope namestringnullno
resource_serversResource servers configurationlist(any)[]no
risk_configuration_client_idThe app client ID for risk configuration. If not provided, applies to all clients in the User Poolstringnullno
risk_configurationsList of risk configuration objects for the User Pool. Each configuration can be applied globally or to specific clients
list(object({
client_id = optional(string)
client_name = optional(string)
account_takeover_risk_configuration = optional(object({
notify_configuration = optional(object({
block_email = optional(object({
html_body = optional(string)
subject = optional(string)
text_body = optional(string)
}))
mfa_email = optional(object({
html_body = optional(string)
subject = optional(string)
text_body = optional(string)
}))
no_action_email = optional(object({
html_body = optional(string)
subject = optional(string)
text_body = optional(string)
}))
from = optional(string)
reply_to = optional(string)
source_arn = optional(string)
}))
actions = optional(object({
high_action = optional(object({
event_action = string
notify = optional(bool)
}))
medium_action = optional(object({
event_action = string
notify = optional(bool)
}))
low_action = optional(object({
event_action = string
notify = optional(bool)
}))
}))
}))
compromised_credentials_risk_configuration = optional(object({
event_filter = optional(list(string))
actions = optional(object({
event_action = string
}))
}))
risk_exception_configuration = optional(object({
blocked_ip_range_list = optional(list(string))
skipped_ip_range_list = optional(list(string))
}))
}))
[]no
risk_exception_configurationRisk exception configuration for IP-based overrides. Allows blocking or bypassing risk detection for specific IP ranges
object({
blocked_ip_range_list = optional(list(string))
skipped_ip_range_list = optional(list(string))
})
{}no
schemasA container with the schema attributes of a User Pool. Maximum of 50 attributeslist(any)[]no
sms_authentication_messageA string representing the SMS authentication messagestringnullno
sms_configurationSMS configurationmap(any){}no
sms_configuration_external_idThe external ID used in IAM role trust relationshipsstring""no
sms_configuration_sns_caller_arnThe ARN of the Amazon SNS caller. This is usually the IAM role that you've given Cognito permission to assumestring""no
sms_verification_messageA string representing the SMS verification messagestringnullno
software_token_mfa_configurationConfiguration block for software token MFA. mfa_configuration must also be enabled for this to workmap(any){}no
software_token_mfa_configuration_enabledIf true, and if mfa_configuration is also enabled, multi-factor authentication by software TOTP generator will be enabledboolfalseno
stageID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'stringnullno
string_schemasA container with the string schema attributes of a user pool. Maximum of 50 attributeslist(any)[]no
tagsAdditional tags (e.g. {'BusinessUnit': 'XYZ'}).
Neither the tag keys nor the tag values will be modified by this module.
map(string){}no
tenantID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is forstringnullno
user_group_descriptionThe description of the user groupstringnullno
user_group_nameThe name of the user groupstringnullno
user_group_precedenceThe precedence of the user groupnumbernullno
user_group_role_arnThe ARN of the IAM role to be associated with the user groupstringnullno
user_groupsUser groups configurationlist(any)[]no
user_pool_add_onsConfiguration block for user pool add-ons to enable user pool advanced security mode featuresmap(any){}no
user_pool_add_ons_advanced_security_modeThe mode for advanced security, must be one of OFF, AUDIT or ENFORCEDstringnullno
user_pool_nameUser pool name. If not provided, the name will be generated from the contextstringnullno
username_attributesSpecifies whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributeslist(string)nullno
username_configurationThe Username Configuration. Setting case_sensitive specifies whether username case sensitivity will be applied for all users in the user pool through Cognito APIsmap(any){}no
verification_message_templateThe verification message templates configurationmap(any){}no
verification_message_template_default_email_optionThe default email option. Must be either CONFIRM_WITH_CODE or CONFIRM_WITH_LINK. Defaults to CONFIRM_WITH_CODEstringnullno
verification_message_template_email_message_by_linkThe email message template for sending a confirmation link to the user, it must contain the {##Click Here##} placeholderstringnullno
verification_message_template_email_subject_by_linkThe subject line for the email message template for sending a confirmation link to the userstringnullno

Outputs

NameDescription
arnThe ARN of the User Pool
client_idsThe ids of the User Pool clients
client_ids_mapThe IDs map of the User Pool clients
client_secretsThe client secrets of the User Pool clients
client_secrets_mapThe client secrets map of the User Pool clients
creation_dateThe date the User Pool was created
domain_app_versionThe app version for the domain
domain_aws_account_idThe AWS account ID for the User Pool domain
domain_cloudfront_distribution_arnThe URL of the CloudFront distribution
domain_s3_bucketThe S3 bucket where the static files for the domain are stored
endpointThe endpoint name of the User Pool. Example format: cognito-idp.REGION.amazonaws.com/xxxx_yyyyy
idThe ID of the User Pool
last_modified_dateThe date the User Pool was last modified
resource_servers_scope_identifiersA list of all scopes configured in the format identifier/scope_name
risk_configuration_idsThe IDs of the risk configurations
risk_configuration_ids_mapMap of risk configuration IDs by client ID (or 'global' for User Pool-wide)

Check out these related projects.

  • Cloud Posse Terraform Modules - Our collection of reusable Terraform modules used by our reference architectures.
  • Atmos - Atmos is like docker-compose but for your infrastructure

References

For additional context, refer to some of these links.

Tip

Use Terraform Reference Architectures for AWS

Use Cloud Posse's ready-to-go terraform architecture blueprints for AWS to get up and running quickly.

✅ We build it together with your team.
✅ Your team owns everything.
✅ 100% Open Source and backed by fanatical support.

Request Quote

📚 Learn More

Cloud Posse is the leading DevOps Accelerator for funded startups and enterprises.

Your team can operate like a pro today.

Ensure that your team succeeds by using Cloud Posse's proven process and turnkey blueprints. Plus, we stick around until you succeed.

Day-0: Your Foundation for Success

  • Reference Architecture. You'll get everything you need from the ground up built using 100% infrastructure as code.
  • Deployment Strategy. Adopt a proven deployment strategy with GitHub Actions, enabling automated, repeatable, and reliable software releases.
  • Site Reliability Engineering. Gain total visibility into your applications and services with Datadog, ensuring high availability and performance.
  • Security Baseline. Establish a secure environment from the start, with built-in governance, accountability, and comprehensive audit logs, safeguarding your operations.
  • GitOps. Empower your team to manage infrastructure changes confidently and efficiently through Pull Requests, leveraging the full power of GitHub Actions.

Request Quote

Day-2: Your Operational Mastery

  • Training. Equip your team with the knowledge and skills to confidently manage the infrastructure, ensuring long-term success and self-sufficiency.
  • Support. Benefit from a seamless communication over Slack with our experts, ensuring you have the support you need, whenever you need it.
  • Troubleshooting. Access expert assistance to quickly resolve any operational challenges, minimizing downtime and maintaining business continuity.
  • Code Reviews. Enhance your team’s code quality with our expert feedback, fostering continuous improvement and collaboration.
  • Bug Fixes. Rely on our team to troubleshoot and resolve any issues, ensuring your systems run smoothly.
  • Migration Assistance. Accelerate your migration process with our dedicated support, minimizing disruption and speeding up time-to-value.
  • Customer Workshops. Engage with our team in weekly workshops, gaining insights and strategies to continuously improve and innovate.

Request Quote

✨ Contributing

This project is under active development, and we encourage contributions from our community.

Many thanks to our outstanding contributors:

For 🐛 bug reports & feature requests, please use the issue tracker.

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.

  1. Review our Code of Conduct and Contributor Guidelines.
  2. Fork the repo on GitHub
  3. Clone the project to your own machine
  4. Commit changes to your own branch
  5. Push your work back up to your fork
  6. Submit a Pull Request so that we can review your changes

NOTE: Be sure to merge the latest changes from "upstream" before making a pull request!

Running Terraform Tests

We use Atmos to streamline how Terraform tests are run. It centralizes configuration and wraps common test workflows with easy-to-use commands.

All tests are located in the test/ folder.

Under the hood, tests are powered by Terratest together with our internal Test Helpers library, providing robust infrastructure validation.

Setup dependencies:

To run tests:

  • Run all tests:
    atmos test run
    
  • Clean up test artifacts:
    atmos test clean
    
  • Explore additional test options:
    atmos test --help
    

The configuration for test commands is centrally managed. To review what's being imported, see the atmos.yaml file.

Learn more about our automated testing in our documentation or implementing custom commands with atmos.

🌎 Slack Community

Join our Open Source Community on Slack. It's FREE for everyone! Our "SweetOps" community is where you get to talk with others who share a similar vision for how to rollout and manage infrastructure. This is the best place to talk shop, ask questions, solicit feedback, and work together as a community to build totally sweet infrastructure.

📰 Newsletter

Sign up for our newsletter and join 3,000+ DevOps engineers, CTOs, and founders who get insider access to the latest DevOps trends, so you can always stay in the know. Dropped straight into your Inbox every week — and usually a 5-minute read.

📆 Office Hours

Join us every Wednesday via Zoom for your weekly dose of insider DevOps trends, AWS news and Terraform insights, all sourced from our SweetOps community, plus a live Q&A that you can’t find anywhere else. It's FREE for everyone!

License

License

Preamble to the Apache License, Version 2.0

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

Trademarks

All other trademarks referenced herein are the property of their respective owners.


Copyright © 2017-2026 Cloud Posse, LLC

README footer

Beacon