Skip to main content

3.x Rekey S3 Credentials

Script

Update the AWS S3 access key and secret key on a LucidLink 3.x filespace after rotating IAM credentials. Keeps your 3.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 3x-rekey-s3-credentials.py

It also accepts the same JSON object the Admin Assistant sends on stdin:

python 3x-rekey-s3-credentials.py <<'JSON'{  "targetFilespace": "fs_3x.company",  "accessKey": "AKIAIOSFODNN7EXAMPLE",  "secretKey": "new-secret-key",  "adminPassword": "filespace-admin-pw"}JSON