How to Import Security group from another stack using #AWS-CDK?
问题 I would like to know how to import security group defined in another stack, and then use in current stack. I have tried this so far.. class relayStack extends cdk.Stack { public sg_relay: ec2.SecurityGroupRefProps constructor(parent: cdk.App, name: string, props: VPCProps) { super(parent, name, props); //#IMPORT VPC PROPS const vpc = ec2.VpcNetwork.import(this, 'VPC-Hottest100', props.infra.vpc); //#AUTOSCALING GROUP const asg_relayServer = new ec2.AutoScalingGroup(this, 'ASG_Relay', { vpc,