aws / aws/aws-toolkit-visual-studio

Unable to use SSO Profiles when running `dotnet restore`

Open
#356 9 comments 0 reactions 0 assignees View on GitHub
service:codeartifact
Dominant language
No language data
Stars
135
Forks
37
PR merge metrics
No merged PRs in 30d

Description

We are migrating from local AWS profiles using access keys and secret keys to IAM Identity Center credentials using SSO. We have our credentials file working, and running commands like `aws s3api list-buckets --query "Buckets[].Name" --profile profile1` are working correctly.

But I am unable to install nuget packages from CodeArtifact using the SSO profiles. Typically we would run `dotnet restore --no-cache` to update our packages, but running this now results in the following error.

`error NU1301: Unable to load the service index for source https://{account}.d.codeartifact.us-east-1.
amazonaws.com/nuget/{accountName}/v3/index.json.`

#200 mentions that SSO profiles are supported, so I'm sure I'm using it wrong. Can anyone point me in the correct direction? TIA

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified in the issue. Start by reproducing `dotnet restore --no-cache` with the working SSO profile and compare it with the successful AWS CLI command; done means NuGet packages restore from the CodeArtifact source without NU1301.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, csharp
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.