From 19f8310145b00b817f90f3d4f78c6482003cc2e8 Mon Sep 17 00:00:00 2001 From: Steven Martin Date: Mon, 16 Dec 2024 12:53:02 -0500 Subject: [PATCH] include policy name for teleport db configure print-iam (#50263) --- 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.").