Skip to content

Commit

Permalink
Pass command context option
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew DeVenny <[email protected]>
  • Loading branch information
matthewdevenny committed Feb 13, 2024
1 parent 3c8be62 commit acb0e96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ keyD: "<value-of-secret/root-d-from-aws-secrets-manager>"
Run: func(cmd *cobra.Command, args []string) {
common.Logger.Debug("get-secrets called")

opts := []aws.SecretsClientOpt{aws.CacheTTL(common.DefaultCacheTTL), aws.Profile(profile), aws.Region(region)}
opts := []aws.SecretsClientOpt{
aws.CacheTTL(common.DefaultCacheTTL),
aws.Profile(profile),
aws.Region(region),
aws.WithContext(awsCmd.Context()),
}
if useChainCredentials {
opts = append(opts, aws.UseChainCredentials())
} else {
Expand Down

0 comments on commit acb0e96

Please sign in to comment.