简体   繁体   English

AWS CDK - 将新安全组添加到现有 VPC 终端节点

[英]AWS CDK - Add New Security Group to an Existing VPC Endpoint

I have an existing VPC Endpoint, Now using CDK, I need to add a new SecurityGroup to the existing endoint.我有一个现有的 VPC 端点,现在使用 CDK,我需要向现有端点添加一个新的 SecurityGroup。 CDK has an option to Import the endpoint using following method: CDK 可以选择使用以下方法导入端点:

const vpce = InterfaceVpcEndpoint.fromInterfaceVpcEndpointAttributes(this, 'TransferVpce', {
  port: 443,
  vpcEndpointId: "vpce-EndPointID",

}
);

But once Imported, it does not give me an option to Update it by adding a new Security Group.但是一旦导入,它就不会让我选择通过添加新的安全组来更新它。 Any suggestions?有什么建议么?

InterfaceVpcEndpoint returns Connections where you can find your security_groups . InterfaceVpcEndpoint返回Connections ,您可以在其中找到您的security_groups Then you can create your SecurityGroup and modify the rules.然后您可以创建您的安全组并修改规则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM