docs icon indicating copy to clipboard operation
docs copied to clipboard

Python "Usage with Lambda" example raises Exception

Open smcoll opened this issue 5 years ago • 0 comments

File: docs/reference/pkg/aws/lb/targetgroupattachment.md

The Python code for Usage with Lambda results in an exception:

Exception: 'depends_on' was passed a value that was not a Resource.

i believe changing the depends_on value resolves it:

# ...
test_target_group_attachment = aws.lb.TargetGroupAttachment("testTargetGroupAttachment",
    target_group_arn=test_target_group.arn,
    target_id=test_function.arn,
    opts=ResourceOptions(depends_on=[with_lb]))

smcoll avatar Jul 26 '20 15:07 smcoll