Skip to main content

Security Group

Create a security group, used to restrict network access to the EC2 instances.

Add new ingress and egress rules with SecurityGroupRuleIngress and SecurityGroupRuleEgress

const sg = await provider.makeSecurityGroup({
name: "securityGroup",
dependencies: { vpc },
properties: () => ({
create: {
Description: "Security Group SSH",
},
}),
});

Examples#

Properties#

Dependencies#

Used By#