File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/boto_elbv2.cpython-310.pyc
Back
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<