pulumi_wasm_providers_aws_mini::ec2

Module proxy_protocol_policy

source
Expand description

Provides a proxy protocol policy, which allows an ELB to carry a client connection information to a backend.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let lb = load_balancer::create(
        "lb",
        LoadBalancerArgs::builder()
            .availability_zones(vec!["us-east-1a",])
            .listeners(
                vec![
                    LoadBalancerListener::builder().instancePort(25)
                    .instanceProtocol("tcp").lbPort(25).lbProtocol("tcp").build_struct(),
                    LoadBalancerListener::builder().instancePort(587)
                    .instanceProtocol("tcp").lbPort(587).lbProtocol("tcp")
                    .build_struct(),
                ],
            )
            .name("test-lb")
            .build_struct(),
    );
    let smtp = proxy_protocol_policy::create(
        "smtp",
        ProxyProtocolPolicyArgs::builder()
            .instance_ports(vec!["25", "587",])
            .load_balancer("${lb.name}")
            .build_struct(),
    );
}

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments