sops command doesn't read --aws-profile flag value
Author: mohammedalnaggarCreated Feb 23, 2024Updated Aug 12, 2026
Labelskeyservice/awskmsarea/keyservice
version: sops 3.8.0
Problem: The problem is noticed if you have multiple AWS profiles and you want to specify which credentials to use while using the sops command, unfortunately, sops keeps using the default profile from your ~/.aws/credentials
Workaround: export the aws profile of interest to the ENV var AWS_PROFILE
Source: getsops/sops