code: def generate_s3_bucket():
      
      logger.debug("[#] Setting up S3 bucket")
      client = boto3.client("s3", region_name=PRIMARY_REGION)
      buckets = client.list_buckets()
      matches = [x for x in buckets.get('Buckets', list())
                 if x['Name'].startswith(S3_BUCKET)]
      if len(matches) > 0:
          logger.debug("[*] Bucket already exists")
          return matches.pop()
  
      response = client.create_bucket(
          Bucket=S3_BUCKET,
          CreateBucketConfiguration={
              'LocationConstraint': PRIMARY_REGION
          }
      )
      logger.info("[#] Successfully setup the S3 bucket")
  
      return response
docs: Create the blockade bucket if not already there.