Skip to content

Instantly share code, notes, and snippets.

Last active December 8, 2021 12:07
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Python - read yaml from S3
import boto3
bucket = "bucket"
s3_client = boto3.client('s3')
response = s3_client.get_object(Bucket=bucket, Key="filename.yaml")
configfile = yaml.safe_load(response["Body"])
except yaml.YAMLError as exc:
return exc
Copy link

Normal commented Aug 10, 2020

what is yaml ?

Copy link

Copy link

Thanks a lot buddy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment