2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Which user do you use in Windows instance? If you completed your activation process with Administrator (e.g., PowerShell in elevated mode), then the credential for the IAM role should only be available for the Administrator.
répondu il y a 7 mois
0
got it working, for some strange reason the .aws folder gets created in
C:\Windows\System32\config\systemprofile\.aws\credentials
so I have to pass
$env:AWS_SHARED_CREDENTIALS_FILE = "C:\Windows\System32\config\systemprofile\.aws\credentials"
then run
aws s3 ls --profile default --region <AWS_REGION>
répondu il y a 7 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 4 mois
- Réponse acceptéedemandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
I did the activation using the administrator mode, but then also if I try
from powershell in administrator mode, it gives
aws s3 ls
command without a--profile
option will usedefault
profile as a default. Can you check the credential and config files (e.g.,C:\Users\Administrator\.aws\credentials
,C:\Users\Administrator\.aws\config
) and see which profile was installed by your activation script? If the profile was notdefault
, you should use the command with the--profile
option instead (e.g.,aws s3 ls --profile profile_name
).