Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable validation for AWS credentials #49

Open
klowdo opened this issue Mar 18, 2025 · 1 comment
Open

Option to disable validation for AWS credentials #49

klowdo opened this issue Mar 18, 2025 · 1 comment

Comments

@klowdo
Copy link

klowdo commented Mar 18, 2025

Nice additions where made in #30

But when we run our integrations tests in ci pipeline we don't have a profile and don't want it to reach out to aws at all.
I get this error
[Error](03/18/2025 11:35) 816: 2025-03-18T11:35:18.2065247Z Failed to connect to AWS using AWS SDK config: Profile:,Region:eu-west-1
That is showing that we don't have a profile.

I made some workaround like this

    .WithReference(awsConfig, noValidation: isIntegrationTests)

So something like this would be nice or if you have a smarter solution for this,

Thanks in advance!

@normj
Copy link
Member

normj commented Mar 20, 2025

Sounds like a good idea. Would it be better to turn off the validation on AddAWSSDKConfig call? I'm assuming if you want validation turned off you would want it turned off in all references. There could be a WithValidation method you could fluently call after the AddAWSSDKConfig that will set some state on the sdk config and where the validations are done check that state.

If you are interested in contributing a PR to get the work added sooner I'm happy to take a look at a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants