best-lifeguard-91445
05/13/2020, 9:41 PMapp_sg.createIngressRule("app_allow_edge_in", {
location: { sourceSecurityGroupId: edge_sg.id },
ports: new awsx.ec2.AllTcpPorts(),
description: "allow HTTP access from anywhere",
});
This works -- but this doesn't: (doesn't compile)
app_sg.createIngressRule("app_allow_edge_in", {
sourceSecurityGroupId: edge_sg.id,
ports: new awsx.ec2.AllTcpPorts(),
description: "allow HTTP access from anywhere",
});
error:
No overload matches this call.
Overload 1 of 2, '(name: string, args: SimpleSecurityGroupRuleArgs, opts?: ComponentResourceOptions | undefined): IngressSecurityGroupRule', gave the following error.
Argument of type '{ sourceSecurityGroupId: Output<string>; toPort: awsx.ec2.AllTcpPorts; fromPort: awsx.ec2.AllTcpPorts; protocol: string; description: string; }' is not assignable to parameter of type 'SimpleSecurityGroupRuleArgs'.
Object literal may only specify known properties, and 'sourceSecurityGroupId' does not exist in type 'SimpleSecurityGroupRuleArgs'.ts(2769)
little-cartoon-10569
05/13/2020, 10:00 PMlittle-cartoon-10569
05/13/2020, 10:01 PMlittle-cartoon-10569
05/13/2020, 10:02 PMlocation
variant with Crosswalk.best-lifeguard-91445
05/13/2020, 10:12 PM