aimlnerd's picture
add
f273844
raw
history blame
662 Bytes
bucketname = input(" Enter the name of your bucket: ")
inputted_s3_uri = f"s3://{bucketname}"
replace_with_input_source = "s3://legal-entity-blog"
input_source = f"{inputted_s3_uri}"
replace_with_input_annotations = "s3://legal-entity-blog"
input_annotations = f"{inputted_s3_uri}"
with open("output.manifest") as output_file:
data = output_file.read()
data = data.replace(replace_with_input_source, input_source)
data = data.replace(replace_with_input_annotations, input_annotations)
with open("output.manifest", "w") as parsed_output_file:
parsed_output_file.write(data)
print("The manifest file is updated with the correct bucket")