Security Group
Provides a Security Group:
const sg = provider.makeSecurityGroup({
name: `security-group`,
dependencies: { resourceGroup },
properties: () => ({
properties: {
securityRules: [
{
name: "SSH",
properties: {
access: "Allow",
direction: "Inbound",
protocol: "Tcp",
destinationPortRange: "22",
destinationAddressPrefix: "*",
sourcePortRange: "*",
sourceAddressPrefix: "*",
priority: 1000,
},
},
{
name: "ICMP",
properties: {
access: "Allow",
direction: "Inbound",
protocol: "Icmp",
destinationAddressPrefix: "*",
destinationPortRange: "*",
sourceAddressPrefix: "*",
sourcePortRange: "*",
priority: 1001,
},
},
],
},
}),
});