actionELBv2

set_security_groups

Changes the security groups for the specified load balancer(s)

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.elbv2.actions
Nameset_security_groups
Returnlist

This action will replace the existing security groups on an application load balancer with the specified security groups.

Usage

JSON

{
  "name": "set-security-groups",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.elbv2.actions",
    "func": "set_security_groups",
    "arguments": {
      "load_balancer_names": [],
      "security_group_ids": []
    }
  }
}

YAML

name: set-security-groups
provider:
  arguments:
    load_balancer_names: []
    security_group_ids: []
  func: set_security_groups
  module: chaosaws.elbv2.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
load_balancer_nameslistYesLoad Balancer Names
security_group_idslistYesSecurity Group IDsList of security group identifiers

returns

[
  {
    "LoadBalancerArn": "string",
    "SecurityGroupIds": ["sg-0000000", "sg-0000001"]
  },
  ...
]

Signature

def set_security_groups(
        load_balancer_names: List[str],
        security_group_ids: List[str],
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
    pass