Skip to content

Commit d40b9e6

Browse files
Pass command context option
Signed-off-by: Matthew DeVenny <matt@boxboat.com>
1 parent e7ae5f2 commit d40b9e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmd/aws.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ keyD: "<value-of-secret/root-d-from-aws-secrets-manager>"
9898
Run: func(cmd *cobra.Command, args []string) {
9999
common.Logger.Debug("get-secrets called")
100100

101-
opts := []aws.SecretsClientOpt{aws.CacheTTL(common.DefaultCacheTTL), aws.Profile(profile), aws.Region(region)}
101+
opts := []aws.SecretsClientOpt{
102+
aws.CacheTTL(common.DefaultCacheTTL),
103+
aws.Profile(profile),
104+
aws.Region(region),
105+
aws.WithContext(awsCmd.Context()),
106+
}
102107
if useChainCredentials {
103108
opts = append(opts, aws.UseChainCredentials())
104109
} else {

0 commit comments

Comments
 (0)