mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-22 11:11:26 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
22 lines
650 B
Go
22 lines
650 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !enterprise
|
|
|
|
package aws
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/aws/aws-sdk-go/aws"
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
)
|
|
|
|
// assumeRoleStatic assumes an AWS role for cross-account static role management.
|
|
// It uses the role ARN and session name provided in the staticRoleEntry configuration
|
|
// to generate credentials for the assumed role.
|
|
func (b *backend) assumeRoleStatic(ctx context.Context, s logical.Storage, entry *staticRoleEntry) (*aws.Config, error) {
|
|
return nil, fmt.Errorf("cross-account static roles are only supported in Vault Enterprise")
|
|
}
|