stocky-spring-27341
02/17/2022, 6:17 AMechoing-dinner-19531
02/17/2022, 9:40 AMbrainy-church-78120
02/17/2022, 10:07 AMstocky-spring-27341
02/17/2022, 12:28 PMDiagnostics:
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.enabled=False
and set duration
to any number > 1. This is on aws.lb.ListenerDefaultActionForwardStickinessArgs
enabled=False
and duration
field is not set (default is None
)echoing-dinner-19531
02/17/2022, 12:33 PMimportThere's a number of known issues with import right now, I suspect you probably got hit by one of those.
stocky-spring-27341
02/17/2022, 12:34 PMstickiness=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
fieldechoing-dinner-19531
02/17/2022, 12:50 PMAs per the definition, I seeNot 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?is anduration
fieldOptional
stocky-spring-27341
02/17/2022, 1:03 PM