Last active
June 28, 2021 13:11
-
-
Save yutakahashi114/9f58aedb19bfb4f8b1f2d2cc347a9428 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var endpoint *string | |
cognitoEndpoint = os.Getenv("COGNITO_ENDPOINT") | |
if cognitoEndpoint != "" { | |
endpoint = aws.String(cognitoEndpoint) | |
} | |
client := cognitoidentityprovider.New( | |
session.Must(session.NewSessionWithOptions(session.Options{ | |
Config: aws.Config{Endpoint: endpoint}, | |
SharedConfigState: session.SharedConfigEnable, | |
})), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment