@renovosolutions/cdk-aspects-library-security-group
TypeScript icon, indicating that this package has built-in type declarations

2.1.115 • Public • Published

cdk-aspects-library-security-group

build

A CDK library containing EC2 security group related CDK Aspects and the ability to define custom aspects.

Features

  • Utilize built in aspects for common cases:
    • Disallow public access to any port
    • Disallow public access to AWS Restricted Common ports (per the AWS Config rule)
    • Disallow public access to SSH or RDP per CIS Benchmark guidelines and general good practice
    • Disallow public or ALL access to common management ports like SSH, RDP, WinRM, WinRM over HTTPS
    • Disallow public or ALL access common relational DB ports like MSSQL, MySQL, PostgreSQL, and Oracle
    • Disallow public or ALL common web ports like HTTP (80, 8080) and HTTPS (443, 8443)
  • Create any other aspect using the base security group aspect class.
  • By default aspects generate errors in the CDK metadata which the deployment or synth process will find, but this can be changed with the annotationType property
  • All default provided aspects restrict based on the public access CIDRs (0.0.0.0/0 and ::/0) but you can also defined aspects with any set of restricted CIDRs or security group IDs you like

API Doc

See API

Examples

Typescript

// Add an existing aspect to your stack
Aspects.of(stack).add(new NoPublicIngressAspect());

// Add a custom aspect to your stack
Aspects.of(stack).add(new SecurityGroupAspectBase({
  annotationText: 'This is a custom message warning you how you should not do what you are doing.',
  annotationType: AnnotationType.WARNING,
  ports: [5985],
  restrictedCidrs: ['10.1.0.0/16'],
}));

// Change an existing aspects message and type
Aspects.of(stack).add(new NoPublicIngressAspect(
  annotationText: 'This is custom text.',
  annotationType: AnnotationType.WARNING
));

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.1151latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.1151
1.0.3351
2.1.1141
1.0.3341
1.0.3331
1.0.3321
2.1.1131
2.1.1121
2.1.1111
2.1.1101
1.0.3311
2.1.1091
2.1.1081
2.1.1072
1.0.3301
2.1.1061
1.0.3291
1.0.3281
2.1.1051
2.1.1041
2.1.1031
2.1.1021
2.1.1012
1.0.3271
1.0.3261
1.0.3251
1.0.3241
2.1.1001
1.0.3231
1.0.3221
2.1.991
1.0.3211
2.1.981
1.0.3201
2.1.971
1.0.3191
2.1.961
2.1.951
1.0.3181
2.1.941
2.1.931
1.0.3171
2.1.921
1.0.3161
2.1.911
2.1.901
1.0.3151
2.1.891
1.0.3141
2.1.881
1.0.3131
1.0.3121
2.1.871
2.1.861
1.0.3111
1.0.3101
2.1.851
2.1.841
1.0.3091
2.1.831
1.0.3081
1.0.3071
2.1.821
2.1.811
1.0.3061
2.1.801
1.0.3051
2.1.791
1.0.3041
2.1.781
2.1.771
1.0.3031
2.1.761
1.0.3021
2.1.751
1.0.3011
2.1.741
1.0.3001
2.1.731
1.0.2991
2.1.721
1.0.2981
2.1.711
1.0.2971
1.0.2961
2.1.701
2.1.691
1.0.2951
2.1.681
1.0.2941
1.0.2931
2.1.671
2.1.661
1.0.2921
1.0.2911
2.1.651
2.1.641
1.0.2901
2.1.631
1.0.2891
2.1.621
1.0.2881
1.0.2871
2.1.611
2.1.601
1.0.2861
2.1.591
1.0.2851
2.1.581
1.0.2841
1.0.2831
2.1.571
1.0.2821
2.1.561
1.0.2811
2.1.551
2.1.541
1.0.2801
2.1.531
1.0.2791
2.1.521
1.0.2781
2.1.511
1.0.2771
1.0.2761
2.1.501
1.0.2751
2.1.491
1.0.2741
2.1.481
1.0.2731
1.0.2721
2.1.471
2.1.461
1.0.2711
1.0.2701
2.1.451
2.1.441
1.0.2691
2.1.431
1.0.2681
2.1.421
2.1.411
1.0.2671
1.0.2661
2.1.401
2.1.391
1.0.2651
1.0.2641
2.1.381
2.1.371
1.0.2631
2.1.361
1.0.2621
2.1.351
1.0.2611
2.1.341
1.0.2601
2.1.331
2.1.321
1.0.2591
1.0.2581
2.1.311
2.1.301
1.0.2571
2.1.291
1.0.2561
2.1.281
1.0.2551
2.1.271
1.0.2541
1.0.2531
2.1.261
2.1.251
1.0.2521
1.0.2511
2.1.241
2.1.231
1.0.2501
2.1.221
1.0.2491
2.1.211
1.0.2481
2.1.201
1.0.2471
1.0.2461
2.1.191
2.1.181
1.0.2451
2.1.171
1.0.2441
1.0.2431
2.1.161
2.1.151
1.0.2421
1.0.2411
2.1.141
2.1.131
1.0.2401
1.0.2391
2.1.121
2.1.111
1.0.2381
2.1.101
1.0.2371
2.1.91
1.0.2361
2.1.81
1.0.2351
1.0.2341
2.1.71
2.1.61
2.1.51
2.1.41
1.0.2331
2.1.31
1.0.2321
2.1.21
1.0.2311
2.1.11
2.1.01
2.0.2441
1.0.2301
2.0.2431
1.0.2291
2.0.2421
1.0.2281
2.0.2411
1.0.2271
2.0.2401
2.0.2391
1.0.2261
2.0.2381
1.0.2251
1.0.2241
2.0.2371
1.0.2231
2.0.2361
1.0.2221
2.0.2351
2.0.2341
1.0.2211
1.0.2201
2.0.2331
2.0.2321
1.0.2191
2.0.2311
1.0.2181
1.0.2171
2.0.2301
1.0.2161
2.0.2291
2.0.2281
1.0.2151
2.0.2271
1.0.2141
2.0.2261
1.0.2131
2.0.2251
1.0.2121
2.0.2241
1.0.2111
2.0.2231
1.0.2101
2.0.2221
1.0.2091
1.0.2081
2.0.2211
2.0.2201
1.0.2071
1.0.2061
2.0.2191
2.0.2181
2.0.2171
1.0.2051
2.0.2161
1.0.2041
1.0.2031
2.0.2151
2.0.2143
1.0.2021
2.0.2131
1.0.2011
2.0.2121
2.0.2111
1.0.2001
1.0.1991
2.0.2101
2.0.2091
1.0.1981
2.0.2081
2.0.2071
1.0.1971
2.0.2061
1.0.1961
1.0.1951
2.0.2051
2.0.2041
1.0.1941
2.0.2031
1.0.1931
2.0.2021
1.0.1921
1.0.1911
2.0.2011
2.0.2001
1.0.1901
2.0.1991
1.0.1891
2.0.1981
1.0.1881
1.0.1871
2.0.1971
2.0.1961
1.0.1861
1.0.1851
2.0.1951
1.0.1841
2.0.1941
1.0.1831
2.0.1931
2.0.1921
1.0.1821
2.0.1911
2.0.1901
1.0.1811
1.0.1801
2.0.1891
2.0.1881
1.0.1791
2.0.1871
1.0.1781
2.0.1861
1.0.1771
2.0.1851
1.0.1761
2.0.1841
1.0.1751
1.0.1741
2.0.1831
2.0.1821
1.0.1731
1.0.1721
2.0.1811
1.0.1711
2.0.1801
2.0.1791
1.0.1701
2.0.1781
1.0.1691
2.0.1771
1.0.1681
2.0.1761
1.0.1671
1.0.1661
2.0.1751
2.0.1741
1.0.1651
2.0.1731
2.0.1721
1.0.1641
2.0.1711
1.0.1631
1.0.1621
2.0.1701
2.0.1691
1.0.1611
1.0.1601
2.0.1681
2.0.1671
1.0.1591
2.0.1661
1.0.1581
2.0.1651
2.0.1641
1.0.1571
2.0.1631
1.0.1561
2.0.1621
1.0.1551
2.0.1611
1.0.1541
2.0.1601
1.0.1531
2.0.1591
1.0.1521
2.0.1581
1.0.1511
2.0.1571
1.0.1501
1.0.1491
2.0.1561
2.0.1551
1.0.1481
2.0.1541
1.0.1471
2.0.1531
1.0.1461
2.0.1521
1.0.1451
2.0.1511
1.0.1441
2.0.1501
1.0.1431
2.0.1491
2.0.1481
1.0.1421
1.0.1411
2.0.1471
1.0.1401
2.0.1461
1.0.1391
2.0.1451
1.0.1381
2.0.1441
1.0.1371
2.0.1431
1.0.1361
1.0.1351
2.0.1421
1.0.1341
2.0.1411
2.0.1401
1.0.1331
2.0.1391
1.0.1321
2.0.1381
1.0.1311
2.0.1371
1.0.1301
2.0.1361
1.0.1291
1.0.1281
2.0.1351
1.0.1271
2.0.1341
1.0.1261
2.0.1331
2.0.1321
1.0.1251
2.0.1311
1.0.1241
2.0.1301
1.0.1231
2.0.1291
1.0.1221
2.0.1281
1.0.1211
2.0.1271
1.0.1201
2.0.1261
1.0.1191
2.0.1251
1.0.1181
2.0.1241
1.0.1171
2.0.1231
1.0.1161
2.0.1221
1.0.1151
2.0.1211
1.0.1141
2.0.1201
1.0.1131
1.0.1121
2.0.1191
2.0.1181
1.0.1111
2.0.1171
1.0.1101
2.0.1161
1.0.1091
1.0.1081
2.0.1151
1.0.1071
2.0.1141
1.0.1061
2.0.1131
1.0.1051
2.0.1121
1.0.1041
2.0.1111
1.0.1031
2.0.1101
1.0.1021
2.0.1091
1.0.1011
2.0.1081
1.0.1001
2.0.1071
1.0.991
2.0.1061
1.0.981
2.0.1051
1.0.971
2.0.1041
1.0.961
2.0.1031
1.0.951
2.0.1021
1.0.941
2.0.1011
1.0.931
1.0.921
2.0.1001
1.0.911
2.0.991
2.0.981
1.0.901
2.0.971
1.0.891
1.0.881
2.0.961
2.0.951
1.0.871
1.0.861
2.0.941
2.0.931
1.0.851
2.0.921
1.0.841
2.0.911
1.0.831
2.0.901
1.0.821
2.0.891
2.0.881
2.0.871
1.0.811
1.0.801
2.0.861
2.0.851
1.0.791
2.0.841
1.0.781
2.0.831
1.0.771
2.0.821
1.0.761
2.0.811
1.0.751
2.0.801
1.0.741
2.0.791
1.0.731
2.0.781
1.0.721
2.0.771
1.0.711
2.0.761
1.0.701
2.0.751
2.0.741
1.0.691
2.0.731
1.0.681
2.0.721
1.0.671
2.0.711
1.0.661
2.0.701
1.0.651
2.0.691
1.0.641
2.0.681
1.0.631
2.0.671
1.0.621
2.0.661
2.0.651
2.0.641
1.0.611
2.0.631
1.0.601
2.0.621
1.0.591
2.0.611
2.0.601
1.0.581
2.0.591
1.0.571
2.0.581
1.0.561
2.0.571
1.0.551
2.0.561
1.0.541
2.0.551
1.0.531
2.0.541
1.0.521
2.0.531
1.0.511
2.0.521
1.0.501
2.0.511
2.0.501
1.0.491
2.0.491
1.0.481
2.0.481
1.0.471
2.0.471
1.0.461
2.0.461
1.0.451
2.0.451
1.0.441
2.0.441
1.0.431
1.0.421
2.0.431
1.0.411
2.0.421
1.0.401
2.0.411
1.0.391
2.0.401
1.0.381
2.0.391
2.0.381
1.0.371
1.0.361
2.0.371
2.0.361
1.0.351
2.0.351
1.0.341
1.0.331
2.0.341
1.0.321
2.0.331
2.0.321
1.0.311
1.0.301
2.0.311
2.0.301
1.0.291
1.0.281
2.0.291
1.0.271
2.0.281
2.0.271
1.0.261
2.0.261
1.0.251
2.0.251
1.0.241
2.0.241
1.0.231
2.0.231
1.0.221
1.0.211
2.0.221
2.0.211
1.0.201
1.0.191
2.0.201
2.0.191
1.0.181
2.0.181
1.0.171
1.0.161
2.0.171
1.0.151
2.0.161
1.0.141
2.0.151
1.0.131
2.0.141
2.0.131
1.0.121
2.0.121
1.0.111
1.0.101
2.0.111
2.0.101
1.0.91
2.0.91
1.0.81
2.0.81
1.0.71
1.0.61
2.0.71
1.0.51
2.0.61
2.0.51
1.0.41
2.0.41
1.0.31
2.0.31
1.0.21
2.0.21
1.0.11
2.0.11
1.0.01
2.0.01
0.2.61
0.2.51
0.2.41
0.2.31
0.2.22
0.2.11
0.2.01
0.1.361
0.1.352
0.1.341
0.1.331
0.1.321
0.1.311
0.1.301
0.1.291
0.1.281
0.1.271
0.1.261
0.1.251
0.1.241
0.1.231
0.1.221
0.1.211
0.1.202
0.1.192
0.1.181
0.1.171
0.1.161
0.1.151
0.1.141
0.1.131
0.1.121
0.1.111
0.1.101
0.1.91
0.1.81
0.1.71
0.1.61
0.1.51
0.1.42
0.1.31
0.1.21
0.1.11
0.1.01
0.0.41
0.0.31
0.0.21
0.0.11
0.0.01

Package Sidebar

Install

npm i @renovosolutions/cdk-aspects-library-security-group

Weekly Downloads

753

Version

2.1.115

License

Apache-2.0

Unpacked Size

227 kB

Total Files

9

Last publish

Collaborators

  • renovosolutions_automation
  • bmiller08
  • sfarage