access-analyzer/iam-role-findings-resolution/iam_access_analyzer_findings_remediation/iam_access_analyzer_findings_remediation_stack.py [98:109]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def create_dependencies_layer(
        self, id: str, requirements_path: str, output_dir: str
    ) -> aws_lambda.LayerVersion:
        # Install requirements for layer
        if not os.environ.get("SKIP_PIP"):
            subprocess.check_call(
                # Note: Pip will create the output dir if it does not exist
                f"pip install -r {requirements_path} -t {output_dir}/python".split()
            )
        return aws_lambda.LayerVersion(
            self, id, code=aws_lambda.Code.from_asset(output_dir)
        )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



access-analyzer/step-functions-archive-findings/access_analyzer_example/access_analyzer_example_stack.py [226:237]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  def create_dependencies_layer(
      self, id: str, requirements_path: str, output_dir: str
  ) -> aws_lambda.LayerVersion:
      # Install requirements for layer
      if not os.environ.get("SKIP_PIP"):
          subprocess.check_call(
              # Note: Pip will create the output dir if it does not exist
              f"pip install -r {requirements_path} -t {output_dir}/python".split()
          )
      return aws_lambda.LayerVersion(
          self, id, code=aws_lambda.Code.from_asset(output_dir)
      )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



