title: Create AWS Lambda Function using Boto3 Python Code?
body: <p>I need to create a lambda function using from scratch option. I see there are 3 options in AWS Application. I went through AWS Boto3 document but unable to find the way to select 3 ways of selecting.</p>
  <p>I tried looking into Boto3 Doc. My code is failing for S3 key. How can I create a simple lambda function using Boto3 code!</p>
  <p>My code:</p>
  <pre><code>  lambda_Client = boto3.client('lambda', aws_access_key_id=accessKey,
                         aws_secret_access_key=secretKey,region_name=region)
    response =lambda_Client.create_function(
              Code={
                  'S3Bucket': 's3bucket',
                  'S3Key': 'function.zip', #how can i create or fetch this S3Key
              },
              Description='Process image objects from Amazon S3.',
              FunctionName='function_name',
              Handler='index.handler',
              Publish=True,
              Role='arn:aws:iam::123456789012:role/lambda-role',
              Runtime='nodejs12.x',
          )
  
          print(response)
  </code></pre>
  <p>Error:
  GetObjet S3 key is invalid.</p>
  <p>How can I create an s3 key or is there a simple way to create an AWS Lambda Function without any dependency. Please guide me!</p>