Manage AWS Application Load Balancer
New in version 2017.7.0.
Add and remove targets from an ALB target group.
This module uses boto3
, which can be installed via package, or pip.
This module accepts explicit alb credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More information available here.
If IAM roles are not used you need to specify them either in a pillar file or in the minion's config file:
elbv2.keyid: GKTADJGHEIQSXMKKRBJ08H
elbv2.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
elbv2.region: us-west-2
It's also possible to specify key
, keyid
and region
via a profile, either
passed in as a dict, or as a string to pull from pillars or minion config:
myprofile:
keyid: GKTADJGHEIQSXMKKRBJ08H
key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
region: us-east-1
salt.states.boto_elbv2.
targets_deregistered
(name, targets, region=None, key=None, keyid=None, profile=None)¶Remove targets to an Application Load Balancer target group.
New in version Unknown.
remove-targets:
boto_elb.targets_deregistered:
- name: arn:myloadbalancer
- targets:
- instance-id1
- instance-id2
salt.states.boto_elbv2.
targets_registered
(name, targets, region=None, key=None, keyid=None, profile=None)¶New in version 2017.7.0.
Add targets to an Application Load Balancer target group. This state will not remove targets.
add-targets:
boto_elb.targets_registered:
- name: arn:myloadbalancer
- targets:
- instance-id1
- instance-id2