vpc.yml [27:52]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: AWS::Lambda::Function
    Properties:
      Code:
        ZipFile: |
          import boto3
          import json
          import sys
          import urllib
          import urllib3
          from botocore.auth import SigV4Auth
          from botocore.awsrequest import AWSRequest
          
          http = urllib3.PoolManager()
          
          session = boto3.Session()
          credentials = session.get_credentials()
          creds = credentials.get_frozen_credentials()
          
          def signed_request(method, url, region, data=None, params=None, headers=None):
              request = AWSRequest(method=method, url=url, data=data, params=params, headers=headers)
              # "service_name" is generally "execute-api" for signing API Gateway requests
              SigV4Auth(creds, "execute-api", region).add_auth(request) 
              #return requests.request(method=method, url=url, headers=dict(request.headers), data=data)
              response = http.request(method, url,
                           headers=dict(request.headers),
                           )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



vpc.yml [170:195]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: AWS::Lambda::Function
    Properties:
      Code:
        ZipFile: |
          import boto3
          import json
          import sys
          import urllib
          import urllib3
          from botocore.auth import SigV4Auth
          from botocore.awsrequest import AWSRequest
          
          http = urllib3.PoolManager()
          
          session = boto3.Session()
          credentials = session.get_credentials()
          creds = credentials.get_frozen_credentials()
          
          def signed_request(method, url, region, data=None, params=None, headers=None):
              request = AWSRequest(method=method, url=url, data=data, params=params, headers=headers)
              # "service_name" is generally "execute-api" for signing API Gateway requests
              SigV4Auth(creds, "execute-api", region).add_auth(request)
              #return requests.request(method=method, url=url, headers=dict(request.headers), data=data)
              response = http.request(method, url,
                           headers=dict(request.headers),
                           )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



