Skip to content

Instantly share code, notes, and snippets.

@ahmad2x4
Created May 18, 2020 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmad2x4/ff629cd86bebc9cc4086a51d85e144e7 to your computer and use it in GitHub Desktop.
Save ahmad2x4/ff629cd86bebc9cc4086a51d85e144e7 to your computer and use it in GitHub Desktop.
Pulumi sample infra source code part 2
const rdsSecurityGroup = new aws.ec2.SecurityGroup(`dbsecgrp`, {
vpcId: vpc.id,
ingress: [
{
protocol: "tcp",
fromPort: 1433,
toPort: 1433,
cidrBlocks: [vpc.vpc.cidrBlock],
},
],
});
const dbSubnets = new aws.rds.SubnetGroup("dbsubnets", {
subnetIds: vpc.privateSubnetIds,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment