2.x Rekey S3 Credentials
ScriptUpdate the AWS S3 access key and secret key on a LucidLink 2.x filespace after rotating IAM credentials. Keeps your 2.x filespace connected to its S3 bucket without downtime.
Running from the command line
Run the script with no arguments and it prompts for each value, masking the key and password:
python 2x-rekey-s3-credentials.pyIt also accepts the same JSON object the Admin Assistant sends on stdin:
python 2x-rekey-s3-credentials.py <<'JSON'{"sourceFilespace": "fs_2x.company","accessKey": "AKIAIOSFODNN7EXAMPLE","secretKey": "new-secret-key","adminPassword": "filespace-admin-pw"}JSON