diff --git a/Part1 - Google/create-GCP-and-put-docs.py b/Part1 - Google/create-GCP-and-put-docs.py index 467e8d7c626c9c05f514b4bdbd6e24ad9e13ba8b..5de6c8df3910b9b63818b58b1bac231213f52778 100644 --- a/Part1 - Google/create-GCP-and-put-docs.py +++ b/Part1 - Google/create-GCP-and-put-docs.py @@ -13,16 +13,15 @@ def create_bucket(gcp_client, bucket_name): bucket = gcp_client.create_bucket(bucket_name) -# Function to write files to S3 def write_files(gcp_client, directory, bucket): bucket = gcp_client.bucket(bucket) for filename in os.listdir(directory): - if filename.endswith(".pdf"): # Check if the file is a PDF - file_path = os.path.join(directory, filename) + if filename.endswith(".pdf"): # Vérifie si c'est un fichier PDF + file_path = os.path.join(directory, filename) # Crée le chemin complet vers le fichier with open(file_path, 'rb') as file: print(f"Uploading {filename} to bucket {bucket}...") blob = bucket.blob(filename) - blob.upload_from_filename(filename) + blob.upload_from_filename(file_path) # Utilise le chemin complet ici print(f"{filename} uploaded successfully.") def main(bucket_name, local_dir): diff --git a/Part1/Labo 1 2024.pdf b/Part1/Labo 1 2024.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3f057ac5eca20e92abc4b9535e14ce734698992e Binary files /dev/null and b/Part1/Labo 1 2024.pdf differ diff --git a/Part1/Pellandini_Proxmox_final.pdf b/Part1/Pellandini_Proxmox_final.pdf new file mode 100644 index 0000000000000000000000000000000000000000..bb172a12b61d610c9ef80c382d5bebb79ca13ac3 Binary files /dev/null and b/Part1/Pellandini_Proxmox_final.pdf differ diff --git a/Part2/config.ini b/Part2/config.ini index 68d9b697943d5f86dc565134bf64a93cb2b6e2fb..738293618e87c8e95ba8309b8875381012a1d497 100644 --- a/Part2/config.ini +++ b/Part2/config.ini @@ -1,10 +1,10 @@ [aws] -aws_access_key_id = -aws_secret_access_key = -region = +aws_access_key_id = AKIAVEKYIBTQMWQQUPM4 +aws_secret_access_key = 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 +region = us-east-1 [opensearch] -endpoint = -index_name = +endpoint = 6oi83zhfbs2kidzcr2a4.us-east-1.aoss.amazonaws.com +index_name = firstpdfgroupe4 diff --git a/pdf/Labo 1 2024.pdf b/pdf/Labo 1 2024.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3f057ac5eca20e92abc4b9535e14ce734698992e Binary files /dev/null and b/pdf/Labo 1 2024.pdf differ diff --git a/pdf/Pellandini_Proxmox_final.pdf b/pdf/Pellandini_Proxmox_final.pdf new file mode 100644 index 0000000000000000000000000000000000000000..bb172a12b61d610c9ef80c382d5bebb79ca13ac3 Binary files /dev/null and b/pdf/Pellandini_Proxmox_final.pdf differ