如何在谷歌计算引擎上将数据库从一个实例复制到另一个实例?(How to copy database from one instance to another on google compute engine?)
我在谷歌云上创建了一个MongoDB实例。 机器类型为n1-standard-2(2个vCPU,7.5 GB内存)。 这吃掉了太多资源。 我看到了这个问题,但我不明白接受的答案。 我们如何删除旧实例以确保磁盘未被删除以及我们如何在新实例上使用该磁盘?
I created a MongoDB instance on google cloud. The machine type is n1-standard-2 (2 vCPUs, 7.5 GB memory). This is eating up too many resources. I saw this question but I didn't understand the accepted answer. How would we delete the old instance making sure the disk isn't deleted and how would we use that disk on the new instance?
原文:https://stackoverflow.com/questions/33170301
最满意答案
此处的错误表示您的Sync触发器Lambda函数未以预期格式返回服务协定输出。
同步触发器遵循服务提供者接口编程范例。 Cognito将以特定的JSON格式向Lambda函数提供输入,并且它希望返回值的格式相同。
开发人员指南的格式记录了示例lambda函数。
The error here indicates that your Sync trigger Lambda function is not returning the service contract output in expected format.
Sync triggers follow the service provider interface programming paradigm. Cognito will provide input in a specific JSON format to your Lambda function and it expects the return value to be the same format.
The developer guide has the format documented with an example lambda function.
相关问答
更多-
我在AWS开发人员论坛中找到了这篇文章的解决方案。 以下是使用IAM用户而非Cognito初始化适用于iOS的AWS Mobile Analytics所需的完整代码: AWSStaticCredentialsProvider *credentialsProvider = [[AWSStaticCredentialsProvider alloc] initWithAccessKey:@"IAM_USER_ID" secretKey:@"IAM_USER_SECRET"]; ...
-
亚马逊Cognito登录(Amazon Cognito Login)[2023-07-28]
没有简单的“身份验证”API。 auth流程以“InitiateAuth”调用和一系列RespondToAuthChallenge开始。 当所有挑战(例如:MFA)完成后,只有那时RespondToAuthChallenge才会返回令牌。 描述这个的文档在这里: http : //docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html There is not a ... -
Amazon Cognito可以替代Login-With-Amazon SDK吗?(Can Amazon Cognito be a substitute for the Login-With-Amazon SDK?)[2023-05-05]
用户必须使用Login With Amazon SDK(LWA)登录其亚马逊帐户,无论他们是否通过移动应用程序 , 网站或直接调用REST API的设备使用Alexa语音服务(AVS) ,你需要一个来自LWA的访问令牌。 “ 入门指南”中详细介绍了身份验证流程。 因此,您将无法允许未经身份验证的(即匿名)用户呼叫AVS。 Cognito有一种记录的方式将LWA与您现有的未经身份验证的代码集成在一起 ,但您的用户必须先使用Amazon登录才能利用AVS。 关于为什么需要这个的解释由亚马逊人在这个帖子中用声明澄 ... -
使用Amazon Cognito Identity js阻止多个登录会话(Blocking multiple login sessions with Amazon Cognito Identity js)[2022-02-07]
默认情况下,Cognito用户池没有此功能。 但是,您是否使用Cognito提供的认证前和认证后触发器来存储用户已认证或认证时间的事实? 如果用户已经在其他地方进行了身份验证,则可以在预认证触发器中阻止请求。 There is no such feature by default with Cognito User Pools. However, have you looked into using the pre and post authentication triggers that Cognito ... -
亚马逊Cognito AuthFlow(Amazon Cognito AuthFlow)[2023-08-25]
开发人员指南介绍了需要进行哪些操作以启动身份验证和响应身份验证挑战的请求。 您可能会发现使用AdminInitiateAuth API(在同一链接中详细介绍)可以更轻松地将srp身份验证卸载到Cognito,这将为您填充这些空白。 移动SDK为您提供了SRP身份验证的包装,这有助于填写这些参数,但其他SDK不具备此类功能。 您可以使用SDK的代码(所有代码均位于GitHub中)来填充SRP_A之类的内容,但使用AdminInitiateAuth可能会更容易。 The developer guide touc ... -
它已经解决了。 我错了替换我的IAM角色参数。 一切都是对的,只有我的错误脚本。 谢谢 It has been solved. I was wrong on replace my IAM role param. everything is right, only my wrong scripts. Thank you
-
Cognito不会公开每个用户公开的属性,因此我不确定该方法是否可以直接使用。 为了实现Cognito支持的目的,您必须通过在客户端或Lambda中构建自己的挂钩来更新调用,从而镜像存储在其他位置的用户的属性。 可能更清洁的是,只存储您需要在其他地方搜索的自定义属性,并尽可能利用Cognito支持的属性。 根据要求更新更具体的细节: 想到一个粗略的轮廓: 1)客户端,一旦调用更新属性,您将构建一个新的钩子,它将更新一些远程数据存储(Elastisearch,Dynamo ......等)。 2)此数据存储应 ...
-
当您尝试获取经过身份验证的ID的凭据而不提供与其链接的任何提供者令牌时,可能会抛出该异常。 Cognito要求至少给出一个。 你能否在GetCredentialsForIdentity调用失败期间检查你是否包含了facebook令牌? 如果没有,我猜这是你的问题。 编辑: 由于您使用的是AWSCognito.defaultCognito(),因此请遵循此文档页面上的示例以确保同步客户端使用正确的凭据提供程序: let configuration = AWSServiceConfiguration(regio ...
-
当您将超过1 MB的数据放入数据集时,Cognito将抛出异常(如果内存服务,则为LimitExceededException)。 它不会截断数据并接受同步请求。 Cognito will throw an exception (LimitExceededException, if memory serves) when you have put more than 1 MB into a dataset. It won't truncate data and accept the synchronizat ...
-
此处的错误表示您的Sync触发器Lambda函数未以预期格式返回服务协定输出。 同步触发器遵循服务提供者接口编程范例。 Cognito将以特定的JSON格式向Lambda函数提供输入,并且它希望返回值的格式相同。 开发人员指南的格式记录了示例lambda函数。 The error here indicates that your Sync trigger Lambda function is not returning the service contract output in expected form ...