forked from TrueCloudLab/frostfs-s3-gw
[#241] Add aws-cli-credentials flag
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
07dd0e1af4
commit
345dafb29d
2 changed files with 30 additions and 1 deletions
|
@ -47,6 +47,7 @@ var (
|
|||
sessionTokenFlag bool
|
||||
lifetimeFlag uint64
|
||||
containerPolicies string
|
||||
awcCliCredFile string
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -209,6 +210,12 @@ func issueSecret() *cli.Command {
|
|||
Required: false,
|
||||
Destination: &containerPolicies,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "aws-cli-credentials",
|
||||
Usage: "path to the aws cli credential file",
|
||||
Required: false,
|
||||
Destination: &awcCliCredFile,
|
||||
},
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
ctx, log := prepare()
|
||||
|
@ -264,6 +271,7 @@ func issueSecret() *cli.Command {
|
|||
ContainerPolicies: policies,
|
||||
SessionTkn: sessionTokenFlag,
|
||||
Lifetime: lifetimeFlag,
|
||||
AwsCliCredentialsFile: awcCliCredFile,
|
||||
}
|
||||
|
||||
if err = agent.IssueSecret(ctx, os.Stdout, issueSecretOptions); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue