Skip to content
GitHubXDiscord

TLSInspectionConfiguration

The TLSInspectionConfiguration resource allows you to manage and configure TLS inspection settings for AWS Network Firewall, enabling you to monitor and inspect encrypted traffic. For more details, refer to the AWS NetworkFirewall TLSInspectionConfigurations documentation.

Create a basic TLS Inspection Configuration with required properties and common optional settings:

import AWS from "alchemy/aws/control";
const tlsInspectionConfig = await AWS.NetworkFirewall.TLSInspectionConfiguration("basicTlsInspectionConfig", {
TLSInspectionConfigurationName: "BasicTLSInspection",
Description: "A basic TLS inspection configuration for monitoring traffic",
TLSInspectionConfiguration: {
// Define the TLS inspection configuration settings here
},
Tags: [
{ Key: "Environment", Value: "Development" }
]
});

Configure a TLS Inspection Configuration with detailed settings for certificate validation and logging:

const advancedTlsInspectionConfig = await AWS.NetworkFirewall.TLSInspectionConfiguration("advancedTlsInspectionConfig", {
TLSInspectionConfigurationName: "AdvancedTLSInspection",
Description: "An advanced TLS inspection configuration with detailed settings",
TLSInspectionConfiguration: {
// Example configuration settings
CertificateValidation: {
// Define certificate validation rules
},
LoggingConfiguration: {
LogLevel: "INFO",
LogDestination: "S3"
}
},
Tags: [
{ Key: "Environment", Value: "Production" },
{ Key: "Project", Value: "NetworkSecurity" }
]
});

Set up a TLS Inspection Configuration with a custom logging setup for enhanced security monitoring:

const customLoggingTlsInspectionConfig = await AWS.NetworkFirewall.TLSInspectionConfiguration("customLoggingTlsInspectionConfig", {
TLSInspectionConfigurationName: "CustomLoggingTLSInspection",
Description: "TLS inspection config with custom logging for security audits",
TLSInspectionConfiguration: {
LoggingConfiguration: {
LogLevel: "ERROR",
LogDestination: "CloudWatchLogs",
LogGroup: "TLSInspectionLogs"
}
},
Tags: [
{ Key: "Compliance", Value: "PCI-DSS" }
]
});

Adopt an existing TLS Inspection Configuration instead of failing if it already exists:

const adoptExistingTlsInspectionConfig = await AWS.NetworkFirewall.TLSInspectionConfiguration("adoptExistingTlsInspectionConfig", {
TLSInspectionConfigurationName: "ExistingTLSInspection",
Description: "Adopting an existing TLS inspection configuration",
TLSInspectionConfiguration: {
// Use existing settings from the deployed configuration
},
adopt: true // Enable adoption
});