Empty user and password for backups for AWS Instance roles

Cette révision appartient à :
Hugo Galindo
2024-02-23 13:25:17 +11:00
Parent e931e103fe
révision 7a50e647b4
+3
Voir le fichier
@@ -511,6 +511,9 @@ def list_target_files(config):
# connect to the region & bucket # connect to the region & bucket
try: try:
if config['target_user'] == "" and config['target_pass'] == "":
s3 = boto3.client('s3', endpoint_url=f'https://{target.hostname}')
else:
s3 = boto3.client('s3', \ s3 = boto3.client('s3', \
endpoint_url=f'https://{target.hostname}', \ endpoint_url=f'https://{target.hostname}', \
aws_access_key_id=config['target_user'], \ aws_access_key_id=config['target_user'], \