错误:“cognito_identity_providers.0.client_id必须只包含字母数字字符和下划线”
此问题来自aws_cognito_identity_pool资源上的client_id和provider_name。我们从哪里获得这些价值观。 Terraform不遵循AWS命名。我尝试过Pool id和Pool ARN。但那些不起作用我也尝试过App client id
以下文档中提供的示例不清楚
[System.Management.Automation.PSCredential]
答案 0 :(得分:2)
应提供client_id和provider_name,如下所示
cognito_identity_providers {
client_id = "${aws_cognito_user_pool_client.client.id}"
provider_name = "cognito-idp.us-east-1.amazonaws.com/${aws_cognito_user_pool.ur_pool.id}"
server_side_token_check = true
}
答案 1 :(得分:1)
它应该像这样:
cognito_identity_providers {
client_id = "${aws_cognito_user_pool_client.YOURCLIENT.id}"
provider_name = "${aws_cognito_user_pool.YOURPOOL.endpoint}"
server_side_token_check = false
}