Describe the bug
When I have the HOME environment variable explicitly set on my Windows 10 system, running aws configure from a Powershell terminal results in the .aws directory and its files being created at %USERPROFILE%/.aws instead of %HOME%/.aws.
Expected Behavior
If the HOME environment variable is set, the .aws directory should be placed at %HOME%/.aws instead of %USERPROFILE%/.aws, according to the docs.
Current Behavior
The aws configure command will spit out files at %USERPROFILE%/.aws but the .NET library correctly looks in %HOME%/.aws which doesn't exist because the tool did not place the files in the right location.
Reproduction Steps
- In Windows Environment Variables, add a new user environment variable named
HOME and set it to some path like C:\linux_home.
- Restart machine.
- Execute
aws configure and follow the prompts. Insert a value for each question.
- Observe that files are created in
%USERPROFILE%/.aws which is incorrect.
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
<PackageReference Include="AWSSDK.Core" Version="3.7.8.10" />
<PackageReference Include="AWSSDK.EC2" Version="3.7.61" />
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.2" />
<PackageReference Include="AWSSDK.SecretsManager" Version="3.7.2.18" />
Targeted .NET Platform
net6.0
Operating System and version
Windows 10
Describe the bug
When I have the
HOMEenvironment variable explicitly set on my Windows 10 system, runningaws configurefrom a Powershell terminal results in the.awsdirectory and its files being created at%USERPROFILE%/.awsinstead of%HOME%/.aws.Expected Behavior
If the
HOMEenvironment variable is set, the.awsdirectory should be placed at%HOME%/.awsinstead of%USERPROFILE%/.aws, according to the docs.Current Behavior
The
aws configurecommand will spit out files at%USERPROFILE%/.awsbut the .NET library correctly looks in%HOME%/.awswhich doesn't exist because the tool did not place the files in the right location.Reproduction Steps
HOMEand set it to some path likeC:\linux_home.aws configureand follow the prompts. Insert a value for each question.%USERPROFILE%/.awswhich is incorrect.Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Targeted .NET Platform
net6.0
Operating System and version
Windows 10