docs
docs copied to clipboard
Python "Usage with Lambda" example raises Exception
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]))