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

Match error: Unknown key in field temporaryCredentials #231

Open
Fauphi opened this issue Feb 16, 2018 · 3 comments
Open

Match error: Unknown key in field temporaryCredentials #231

Fauphi opened this issue Feb 16, 2018 · 3 comments

Comments

@Fauphi
Copy link

Fauphi commented Feb 16, 2018

I get this error when trying to create a directive with temporary credentials.
Is this functionality deprecated? (it is still in the docs)

@aranair
Copy link

aranair commented Aug 17, 2018

I'm using temporary credentials and it works^ (although I'm hitting other issues)

@marcusmendes-dev
Copy link

when creating the policy:

Slingshot.createDirective('directiveName', Slingshot.S3Storage.TempCredentials, {
  region: "YOURREGION",
  bucket: "YOURBUCKETNAME",
  [HERE NOT PASS AWSAccessKeyId PROP]
  temporaryCredentials: Meteor.wrapAsync(function (expire, callback) {

...put credentials in settings.json.

  "AWS":  {
    "AccessKeyId": "YOURKEYHERE",
    "SecretAccessKey": "YOURSECRETACCESSKEY"
  },

This resolves your error.

@smohantyCME
Copy link

Is there an updated status on this, I'm still getting the same issue. I do not have my keys in createDirective, I do have them in settings

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

4 participants