fluidasserts.cloud.aws.cloudformation.elb2 module

AWS CloudFormation checks for ELB v2 (Elastic Load Balancing v2).

fluidasserts.cloud.aws.cloudformation.elb2.has_access_logging_disabled(path, exclude=None)

Check if LoadBalancers have access_logs.s3.enabled set to true.

Parameters
  • path (str) – Location of CloudFormation’s template file.

  • exclude (typing.Optional[typing.List[str]]) – Paths that contains any string from this list are ignored.

Returns

  • OPEN if access_logs.s3.enabled* attribute in the LoadBalancerAttributes section is not set or false.

  • UNKNOWN on errors.

  • CLOSED otherwise.

Return type

fluidasserts.Result

fluidasserts.cloud.aws.cloudformation.elb2.has_not_deletion_protection(path, exclude=None)

Check if LoadBalancers have Deletion Protection.

Parameters
  • path (str) – Location of CloudFormation’s template file.

  • exclude (typing.Optional[typing.List[str]]) – Paths that contains any string from this list are ignored.

Returns

  • OPEN if deletion_protection.enabled* attribute in the LoadBalancerAttributes section is not set or false.

  • UNKNOWN on errors.

  • CLOSED otherwise.

Return type

fluidasserts.Result