diff --git a/plugins/modules/elb_network_lb.py b/plugins/modules/elb_network_lb.py index 22e419328d9..1cddb886b2d 100644 --- a/plugins/modules/elb_network_lb.py +++ b/plugins/modules/elb_network_lb.py @@ -190,6 +190,22 @@ TargetGroupName: mytargetgroup # Required. The name of the target group state: present +- name: Create NLB for S3 bucket in us-east-1 + community.aws.elb_network_lb: + name: simple-s3-nlb + region: us-east-1 + endpoint_url: "http://my-static-123456-bucket.s3-website-us-east-1.amazonaws.com" + state: present + subnets: + - subnet-12345678 + - subnet-87654321 + listeners: + - Protocol: TCP + Port: 80 + DefaultActions: + - Type: forward + TargetGroupName: s3-static-tg + - name: Remove an ELB community.aws.elb_network_lb: name: myelb