From 7991cbd413d0f78eb22b9fff4ee93809856b7143 Mon Sep 17 00:00:00 2001 From: stevenGravy Date: Sat, 14 Dec 2024 21:24:38 -0500 Subject: [PATCH] include policy name for teleport db configure print-iam --- tool/teleport/common/teleport.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/teleport/common/teleport.go b/tool/teleport/common/teleport.go index 9cd4436c68680..8318fcf68a45f 100644 --- a/tool/teleport/common/teleport.go +++ b/tool/teleport/common/teleport.go @@ -327,6 +327,7 @@ func Run(options Options) (app *kingpin.Application, executedCommand string, con dbConfigureAWSPrintIAM.Flag("role", "IAM role name to attach policy to. Mutually exclusive with --user").StringVar(&configureDatabaseAWSPrintFlags.role) dbConfigureAWSPrintIAM.Flag("user", "IAM user name to attach policy to. Mutually exclusive with --role").StringVar(&configureDatabaseAWSPrintFlags.user) dbConfigureAWSPrintIAM.Flag("policy", "Only print IAM policy document.").BoolVar(&configureDatabaseAWSPrintFlags.policyOnly) + dbConfigureAWSPrintIAM.Flag("policy-name", fmt.Sprintf("Name of the Teleport Database agent policy. Default: %q.", awsconfigurators.DatabaseAccessPolicyName)).Default(awsconfigurators.DatabaseAccessPolicyName).StringVar(&configureDatabaseAWSPrintFlags.policyName) dbConfigureAWSPrintIAM.Flag("boundary", "Only print IAM boundary policy document.").Hidden().BoolVar(&configureDatabaseAWSPrintFlags.boundaryOnly) dbConfigureAWSPrintIAM.Flag("assumes-roles", "Comma-separated list of additional IAM roles that the IAM identity should be able to assume. Each role can be either an IAM role ARN or the name of a role in the identity's account.").