# Class LittleGhost::Providers::Bedrock::CredentialResolver

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Providers/Bedrock/CredentialResolver.html

Resolves common AWS credentials without depending on an AWS SDK.

## Inheritance

`LittleGhost::Providers::Bedrock::CredentialResolver < Object`

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
.new(environment: ENV, profile: nil, credentials_file: nil)
```

Uses `environment` and the selected shared-credentials `profile`.

## Instance methods

<a id="method-i-call"></a>
### `#call`

```ruby
#call()
```

Returns the first complete credential set from the environment, shared
credentials, container metadata, or IMDSv2.

<a id="method-i-region"></a>
### `#region`

```ruby
#region()
```

Returns the configured AWS region, when one can be resolved.
