首页 \ 问答 \ 如何使用Cloudformation从其他VPC EC2实例访问RDS(How I can access RDS from other VPC EC2 instance using Cloudformation)

如何使用Cloudformation从其他VPC EC2实例访问RDS(How I can access RDS from other VPC EC2 instance using Cloudformation)

我是AWS的新手。 我有VPC-A和VPC-B。 我想从VPC-B EC2实例访问VPC-A中的RDS。 我创建了VPC对等但无法访问RDS。 当我将VPC-B EC2实例ID添加到VPC-A RDS安全组时,它正在工作。 但我需要从Cloudformation中做到这一点。 我可以从CloudFormation更新现有安全组吗? 感谢前进:)


I am new to AWS. I have VPC-A and VPC-B. I want to access RDS which is in VPC-A from VPC-B EC2 instance. I created VPC peering but not able to access RDS. When I am adding VPC-B EC2 instance id into VPC-A RDS security group its working. But I need to do it from Cloudformation. Can I update existing security group from CloudFormation? Thanks for Advance :)


原文:https://stackoverflow.com/questions/42811034
更新时间:2022-03-26 20:03

最满意答案

我发现我的“if(GUI.Button ......”,我的游戏不喜欢:)结尾处有一个分号


i found out that i had a semicolon at the end of my "if (GUI.Button ..." which my game didn't like :)

相关问答

更多
  • 我发现我的“if(GUI.Button ......”,我的游戏不喜欢:)结尾处有一个分号 i found out that i had a semicolon at the end of my "if (GUI.Button ..." which my game didn't like :)
  • 这是一个非常复杂的教程,所以我没有完全阅读它,但问题似乎是MouseDrag检测。 好吧,基本上你想在单击Box内的GUI元素时停止事件传播,对吗? 为此,请致电: Event.current.Use() 用户每次在其中一个组件上拖动鼠标时。 使用你提到的资源,我改变了Node类并在Draw()方法中添加了一个滑块,结尾如下: public void Draw() { inPoint.Draw(); outPoint.Draw(); GUI.Box(rect, title, sty ...
  • 如果您的游戏对象被停用,则无法找到 最好使用get组件GetComponent.()的泛型方法GetComponent.() 。如果PlayerController在FPSArms_Axe @ Idle的父级中,则不会找到GetComponent(PlayerController) 如果PlayerController在FPSArms_Axe@Idle子级中,则应使用GetComponentInChildren 唯一可行的情况是Play ...
  • GUI.BeginScrollView(...)是一个返回Vector2的静态函数。 此返回值是已修改的scrollPosition。 与大多数Unity的即时模式UI构造一样,这是您应该在下一次迭代时反馈到函数调用中的值。 所以至少看起来应该是这样的 scrollPosition = GUI.BeginScrollView (Rect (10,300,100,100),scrollPosition, Rect (0, 0, 220, 200)); GUI.BeginScrollView(...) is ...
  • 好吧,通过反复试验,我能够将脚本放在一起,按预期显示所有内容。 困扰我的是我需要估计滚动条的大小并计算按钮的像素值以创建滚动视图。 我想,对于更复杂的用户界面来说,明确地计算这些值会非常引人注目。 有没有更好的方法来实现这一点,类似于在Android中创建ListView相对容易? #pragma strict //not implemented yet var selectObjectIcon : Texture2D; var addEntityIcon : Texture2D; var selectN ...
  • 在第一个示例中,您似乎尝试使用messageText而不初始化它,这意味着当调用Start()时,messageText为NULL。 In the first example it looks like you're trying to use messageText without initializing it, meaning that when Start() is called messageText is NULL.
  • 如果使用Unity,则不应使用System.Drawing。 请改用http://docs.unity3d.com/Documentation/ScriptReference/GUIStyle.CalcSize.html 。 例如: Vector2 size = yourStyle.CalcSize (new GUIContent ("your text")); 如果使用当前皮肤中指定的样式, yourStyle用GUI.skin.[...]替换GUI.skin.[...] ( http://docs.u ...
  • 有多种方法可以做到这一点。 您可以使禁用的按钮透明,然后在代码中使用简单的if else逻辑使它们可以在onclickable上进行。 There are multiple ways of doing this. You can make the disabled buttons transparent then make them onclickable by using simple if else logic in your code.
  • 当你创建一个扩展JButton的类并在其上调用setVisible(true)时,你会有点困惑,好像它是一个顶级窗口,如JFrame或JDialog,这没有意义。 由于它不是顶级窗口,因此没有默认关闭操作或理解这意味着什么也是有意义的。 我建议您只在顶级窗口上调用此方法,例如在JFrame或JDialog等上。 作为一个侧面推荐,我通常避免使用setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 而且更经常做setDefaultCloseOperation(JFra ...
  • 我在community.gamedev.tv上找到了两个人的帮助。 首先,这个问题是在音频有机会播放之前由场景改变引起的。 其次,我不得不将我的LoadScene添加到我的协同程序中,以便让它处理延迟并加载下一个场景。 我还必须通过我的协同程序将name变量作为字符串传递。 I've discovered the answer with the help of two folks over at community.gamedev.tv. First, the issue was caused by the ...

相关文章

更多

最新问答

更多
  • 您如何使用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)