buildAwsAccountDefaultsDefaultSecurityGroupPresets
buildAwsAccountDefaultsDefaultSecurityGroupPresets: (vpcName: string) => AwsAccountDefaultsDefaultSecurityGroupPreset[]Returns static built-in default security-group presets for AwsAccountDefaults.
Remarks
The returned presets cover public HTTP/HTTPS access and restricted HTTP/HTTPS/MySQL/PostgreSQL access using the repository's built-in allow-list. The vpcName argument is written into each returned AwsSecurityGroupArgs object so the preset can be passed directly to AwsSecurityGroup or inspected by consumers.
Type
(vpcName: string) => AwsAccountDefaultsDefaultSecurityGroupPreset[]
Example
CODE
const presets = buildAwsAccountDefaultsDefaultSecurityGroupPresets('production');
const restrictedHttps = presets.find((preset) => preset.key === 'httpsRestricted');