首页 \ 问答 \ 如何在谷歌计算引擎上将数据库从一个实例复制到另一个实例?(How to copy database from one instance to another on google compute engine?)

如何在谷歌计算引擎上将数据库从一个实例复制到另一个实例?(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
更新时间:2023-03-07 21:03

最满意答案

此处的错误表示您的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"]; ...
  • 没有简单的“身份验证”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 ...
  • 用户必须使用Login With Amazon SDK(LWA)登录其亚马逊帐户,无论他们是否通过移动应用程序 , 网站或直接调用REST API的设备使用Alexa语音服务(AVS) ,你需要一个来自LWA的访问令牌。 “ 入门指南”中详细介绍了身份验证流程。 因此,您将无法允许未经身份验证的(即匿名)用户呼叫AVS。 Cognito有一种记录的方式将LWA与您现有的未经身份验证的代码集成在一起 ,但您的用户必须先使用Amazon登录才能利用AVS。 关于为什么需要这个的解释由亚马逊人在这个帖子中用声明澄 ...
  • 默认情况下,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 ...
  • 开发人员指南介绍了需要进行哪些操作以启动身份验证和响应身份验证挑战的请求。 您可能会发现使用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 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)