简体   繁体   English

如何在 Cognito terraform 中更改 ID 池

[英]how to change id pool in cognito terraform

I deleted a pool manually in cognito (aws) and terraform has a relation with the pool deleted so it says:我在 cognito (aws) 中手动删除了一个池,terraform 与删除的池有关系,所以它说:

reading Amazon Cognito IDP (Identity Provider) User (xxxx): ResourceNotFoundException: User pool ********_xxxxxxxxx does not exist.读取 Amazon Cognito IDP(身份提供者)用户 (xxxx):ResourceNotFoundException:用户池 *********_xxxxxxxxx 不存在。

is it posible to create a new pool with a custom id in order to match the deleted one?是否可以创建一个具有自定义 ID 的新池以匹配已删除的池? or there is a trick to make in terraform to avoid the error?或者在 terraform 中有一个技巧可以避免错误?

I tried to set a custom id in aws but i dont find the option我试图在 aws 中设置自定义 ID,但我找不到该选项

It's not possible to set a custom ID, but for fix the terraform error you can remove from the state the Cognito IDP with无法设置自定义 ID,但要修复 terraform 错误,您可以使用以下命令从 state 中删除 Cognito IDP

terraform state rm ADDRESS

and after that or you'll recreate it with terraform or if you done by hand you can import it into the state with之后,或者您将使用 terraform 重新创建它,或者如果您手动完成,则可以将其导入到 state 中

terraform import aws_cognito_identity_provider.example us-west-2_abc123:CorpAD

as reported in documentation文档中所述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS Cognito 用户池:给定一个应用程序客户端 ID,如何获取其池 ID? - AWS Cognito User Pool : Given an App client id, how to get its Pool Id? 如何通过 Terraform 为 cognito 用户池启用身份提供者? - How can I enable identity provider for cognito user pool via Terraform? 使用 Terraform 为 AWS Cognito 用户池设置账户恢复首选项 - Set account recovery preference for AWS Cognito User Pool with Terraform 如何在创建 AWS Cognito 用户池时更改 phone_number 格式? - How to change phone_number format upon creation of a AWS Cognito User Pool? 如何在 Cognito 用户池组中添加用户? - How to add a user in Cognito User Pool group? 如何删除分配给 Cognito 用户池组的角色 ARN? - How to Delete a Role ARN Assigned to a Cognito User Pool Group? 过滤 azure terraform backend_address_pool 输出,其中后端池的名称并获取 ID。? - Filter azure terraform backend_address_pool outputs, where name of backend pool and get the id.? 如何从 AWS Cognito 上的托管 UI 获取用户池令牌 - How to get the User pool token from Hosted UI on AWS Cognito AWS + 无服务器 - 如何获取 Cognito 用户池生成的密钥 - AWS + Serverless - how to get at the secret key generated by cognito user pool 如何将 Cognito 用户池设置导出到 CloudFormation 模板? - How to export Cognito User Pool settings to CloudFormation template?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM