You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
743 B
21 lines
743 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package tailscale
|
|
|
|
import (
|
|
"context"
|
|
|
|
"tailscale.com/feature"
|
|
)
|
|
|
|
// ResolvePrefixAWSParameterStore is the string prefix for values that can be
|
|
// resolved from AWS Parameter Store.
|
|
const ResolvePrefixAWSParameterStore = "arn:aws:ssm:"
|
|
|
|
// HookResolveValueFromParameterStore resolves to [awsparamstore.ResolveValue] when
|
|
// the corresponding feature tag is enabled in the build process.
|
|
//
|
|
// It fetches a value from AWS Parameter Store given an ARN. If the provided
|
|
// value is not an Parameter Store ARN, it returns the value unchanged.
|
|
var HookResolveValueFromParameterStore feature.Hook[func(ctx context.Context, valueOrARN string) (string, error)]
|
|
|