| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ |
Upload File : |
o
;j0 � @ sl d Z ddlZddlZe�e�Zdd� Z
ddd�Zdd
d�Z ddd�Z ddd�Z
dS )a`
Manage AWS Application Load Balancer
.. versionadded:: 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
<http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html>`_.
If IAM roles are not used you need to specify them either in a pillar file or
in the minion's config file:
.. code-block:: yaml
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:
.. code-block:: yaml
myprofile:
keyid: GKTADJGHEIQSXMKKRBJ08H
key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
region: us-east-1
� Nc C s dt v rdS dS )z)
Only load if boto is available.
�boto_elbv2.target_group_existsZ
boto_elbv2)Fz?The boto_elbv2 module cannot be loaded: boto3 library not found)�__salt__� r r �J/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/boto_elbv2.py�__virtual__* s r �HTTP�traffic-port�/� � � c K s� | ddi d�}t d | ||||�rd|d<