https://pulumi.com logo
#general
Title
# general
s

stocky-spring-27341

02/17/2022, 6:17 AM
Hola! New user here. What's the suggested approach for filing bugs?
e

echoing-dinner-19531

02/17/2022, 9:40 AM
Bugs can be raised at https://github.com/pulumi/pulumi/issues or our other repos if you know it was an issue with a specific cloud provider (e.g kubernetes issues can go to https://github.com/pulumi/pulumi-kubernetes/issues)
👍 1
b

brainy-church-78120

02/17/2022, 10:07 AM
@stocky-spring-27341 can you share some details of the bug you've hit?
s

stocky-spring-27341

02/17/2022, 12:28 PM
sure, this is what I see when I try to update my load balancer listener rule
Copy code
Diagnostics:
  pulumi:pulumi:Stack (xxxx):
    error: update failed
 
  aws:alb:ListenerRule (xxxx-listener-rule):
    error: 1 error occurred:
    	* updating urn:pulumi:staging::ecs::aws:alb/listenerRule:ListenerRule::xxxxx-listener-rule: 1 error occurred:
    	* Error modifying LB Listener Rule: ValidationError: Target group stickiness duration must be between 1 and 604800 seconds
    	status code: 400, request id: c07e03d7-7cc1-4c0f-8d7a-6a7716bab38f
NOTE: Stickiness is disabled on my listener rule. I saw a similar validation error when I tried to import my existing listener rule, I had to manually enable stickiness to be able to successfully import it.
I have been able to work around by setting
enabled=False
and set
duration
to any number > 1. This is on
aws.lb.ListenerDefaultActionForwardStickinessArgs
Ideally, I would expect validation to not fail when
enabled=False
and
duration
field is not set (default is
None
)
e

echoing-dinner-19531

02/17/2022, 12:33 PM
import
There's a number of known issues with import right now, I suspect you probably got hit by one of those.
👍 1
s

stocky-spring-27341

02/17/2022, 12:34 PM
Copy code
stickiness=aws.alb.ListenerDefaultActionForwardStickinessArgs(
    TypeError: __init__() missing 1 required keyword-only argument: 'duration'
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
As per the definition, I see
duration
is an
Optional
field
Hey Fraser! I understand.
e

echoing-dinner-19531

02/17/2022, 12:50 PM
As per the definition, I see 
duration
 is an 
Optional
 field
Not sure what definition your looking at but the AWS schema says this is required. The stickiness object itself is optional. Did you write the code to set stickiness or was that bit generated by the import codegen?
s

stocky-spring-27341

02/17/2022, 1:03 PM
Ah, my bad, I misread the documentation. Apologies.
Thanks for the clarification anyways, I'll file a bug for this.
13 Views