Terraform module to create Amazon Cognito User Pools, configure its attributes and resources such as app clients, domain, resource servers. Amazon Cognito User Pools provide a secure user directory that scales to hundreds of millions of users.
This PR reintroduces the previously removed lifecyle ignore block.
As described in https://github.com/lgallard/terraform-aws-cognito-user-pool/issues/125 , the underlying issue is still present. I'm not sure if its an upstream issue in the Hashicorp package or not, but at least as interim solution, its worth bringing this block back. Without it, we are unable to deploy any changes via this module.
I've tested the fork against our config and appears to work correctly.
The error shown is:
│ Error: updating Cognito User Pool (): cannot modify or remove schema items
│
│ with module.application.module.delivery_layer.module.cognito.module.cognito.aws_cognito_user_pool.pool[0],
│ on .terraform/modules/application.delivery_layer.cognito.cognito/main.tf line 1, in resource "aws_cognito_user_pool" "pool":
│ 1: resource "aws_cognito_user_pool" "pool" {
This PR reintroduces the previously removed lifecyle ignore block.
As described in https://github.com/lgallard/terraform-aws-cognito-user-pool/issues/125 , the underlying issue is still present. I'm not sure if its an upstream issue in the Hashicorp package or not, but at least as interim solution, its worth bringing this block back. Without it, we are unable to deploy any changes via this module.
I've tested the fork against our config and appears to work correctly.
The error shown is:
With the relevant chunk of the plan:
We've also attempted to explicitly set the constraints with:
And...
But that is ignored