Skip to content

Conversation

m-hosoi
Copy link

@m-hosoi m-hosoi commented Jun 25, 2021

Usage:

import (
  ...
  v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
)
...

// signature expired
// resp, err := client.Do(...)

resp, err := client.DoFunc(func()(*retryablehttp.Request, error) {
  req, err := http.NewRequestWithContext(...)
  signer := v4.NewSigner(...)
  signer.Sign(ctx, req, ...)
  return retryablehttp.FromRequest(req)
})

@hashicorp-cla
Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants