如何使用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
最满意答案
我发现我的“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 ...
-
Unity3d中的NullReferenceException使用unityscript(NullReferenceException in Unity3d using unityscript)[2022-01-09]
如果您的游戏对象被停用,则无法找到 最好使用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 ...
-
文本GUI Unity3D上的NullReferenceException [重复](NullReferenceException on Text GUI Unity3D [duplicate])[2022-08-08]
在第一个示例中,您似乎尝试使用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.
-
GUI关闭问题?(GUI close issue?)[2022-12-03]
当你创建一个扩展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 ...