Skip to content

endpoint_url from profile is ignored #4212

@hammypants

Description

@hammypants

Describe the bug

The endpoint_url of a credentials/profile file setup (in their default locations) is not used.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

I would expect this to work as if one had set AWS_Endpoint_Url, which does work.

Current Behavior

endpoint_url in a profile config file is not used despite other profile config values being used.

Reproduction Steps

Given credentials like

[localstack]
aws_access_key_id = test
aws_secret_access_key = test

and a config profile:

[profile localstack]
region = us-east-1
endpoint_url = http://localhost.localstack.cloud:4566
output = json

When launching a dotnet app with the environment variable AWS_Profile set (or the profile set via Microsoft's configuration APIs, or AWSOptions, etc... doesn't matter which) to localstack, the profile is resolved, the region is respected, but the endpoint_url is not.

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

All AWS packages, straight from the project references:

<PackageReference Include="Amazon.Extensions.Configuration.SystemsManager" Version="7.0.0" />
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="4.0.2" />
<PackageReference Include="AWS.Messaging" Version="1.0.0" />
<PackageReference Include="AWSSDK.S3" Version="4.0.3.2" />
<PackageReference Include="AWSSDK.SSO" Version="4.0.1.8" />
<PackageReference Include="AWSSDK.SSOOIDC" Version="4.0.2.5" />

Targeted .NET Platform

.NET 8

Operating System and version

Windows 11, Ubuntu 20+

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.closing-soonThis issue will automatically close in 4 days unless further comments are made.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions