DEV Community

architec
architec

Posted on • Edited on

AWS Cloud Quest: Set Up a Cloud Development Environment Study Note

This is the DIY challenge of the Set Up a Cloud Development Environment task in AWS Cloud Quest.

DIY Steps:

  1. Add missing code to the upload_file function

    if object_name is None:
        object_name = file_name
    s3_client = boto3.client('s3')
    try:
        response = s3_client.upload_file(file_name, bucket, object_name)
    except ClientError as e:
        logging.error(e)
        return False
    return True
    
  2. push the changes to CodeCommit

Top comments (0)