pulumi / pulumi-aws

An Amazon Web Services (AWS) Pulumi resource package, providing multi-language access to AWS
Apache License 2.0
465 stars 157 forks source link

Wrong type ipAddressType for aws.alb.LoadBalancer #4684

Open nicolashuby opened 3 weeks ago

nicolashuby commented 3 weeks ago

Describe what happened

Unlike de description , "dualstack-without-public-ipv4" is not available in type IpAddressType for a alb . A workaround is to use a lb that has string for type IpAddressType

Sample program

/**
     * Type of IP addresses used by the subnets for your load balancer. The possible values depend upon the load balancer type: `ipv4` (all load balancer types), `dualstack` (all load balancer types), and `dualstack-without-public-ipv4` (type `application` only).
     */
    ipAddressType?: pulumi.Input<IpAddressType>;
export declare const IpAddressType: {
    readonly Ipv4: "ipv4";
    readonly Dualstack: "dualstack";
};

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

CLI          
Version      3.120.0
Go Version   go1.22.4
Go Compiler  gc

Plugins
KIND      NAME        VERSION
resource  aws         6.56.1
resource  cloudflare  5.40.1
resource  datadog     4.34.1
language  nodejs      unknown

Host     
OS       ubuntu
Version  22.04
Arch     x86_64

This project is written in nodejs: executable='/home/****/.volta/bin/node' version='v18.18.0

Additional context

NA

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

corymhall commented 3 weeks ago

@nicolashuby thanks for reporting this! It looks like this is a bug due to our use of overlays

The fix to this should include two things

  1. We should handle this case in a similar way to aws_instance.instance_type and allow for both the overlay type and a plain string value.
  2. We should update the overlay types to include the new value https://github.com/pulumi/pulumi-aws/blob/b1d1cd12dd2a6eca814cf9457706359cd8ded245/provider/types.go#L128-L136