[英]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.