Hola! New user here. What's the suggested approach...
# general
s
Hola! New user here. What's the suggested approach for filing bugs?
e
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
@stocky-spring-27341 can you share some details of the bug you've hit?
s
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
import
There's a number of known issues with import right now, I suspect you probably got hit by one of those.
👍 1
s
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
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
Ah, my bad, I misread the documentation. Apologies.
Thanks for the clarification anyways, I'll file a bug for this.