Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not enough arguments in call to kinesis.NewAuth #41

Open
ulutomaz opened this issue Jul 9, 2015 · 3 comments
Open

not enough arguments in call to kinesis.NewAuth #41

ulutomaz opened this issue Jul 9, 2015 · 3 comments

Comments

@ulutomaz
Copy link

ulutomaz commented Jul 9, 2015

  1. and 4. line of code is what I had before and it worked. Now I wanted to implement Godep but it looks like that I am a little bit too late.

First four lines below are what I had before and it worked. Now I am trying to implement it like you implemented it in example.go ... but keep getting errors...

  • not enough arguments in call to kinesis.NewAuth
  • undefined: kinesis.Region (even if i pass kinesis.Region{} as second parameter to kinesis.New function
  • cannot use &auth (type *_kinesis.AuthCredentials) as type kinesis.Auth in argument to kinesis.New:
    *_kinesis.AuthCredentials does not implement kinesis.Auth (missing GetAccessKey method)

I would really appreciate some help here... since code don't work for me the way it is in example.go.

Best,
Tomaz

// KINESIS AUTHENTIACTION
// set env variables AWS_ACCESS_KEY and AWS_SECRET_KEY AWS_REGION_NAME
//auth := kinesis.NewAuth()
//ksis := kinesis.New(&auth, kinesis.Region{})

var (
    err  error
    auth kinesis.Auth
)

auth, err = kinesis.NewAuthFromEnv()
if err != nil {
    fmt.Printf("unable to retrieve authentication credentials from the environment: %v", err)
    os.Exit(1)
}

ksis := kinesis.New(auth, "")
@le0pard
Copy link
Contributor

le0pard commented Jul 11, 2015

Hello, @ulutomaz Did you looks in kinesis_test.go? Maybe this will help?

@grandmore
Copy link

Did you get a fix on this as I have the same issue.

@grandmore
Copy link

After working through the code I found the issue.

ksis := kinesis.New(auth, "")

should actually be

ksis := kinesis.New(auth, REGION)

where REGION is the aws region to communicate with. i.e. us-east-1

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

No branches or pull requests

2 participants