Giter Club home page Giter Club logo

Comments (7)

baopham avatar baopham commented on August 16, 2024 1

Good question.

Found this in the docs: "If no credentials are provided, the SDK will attempt to load them from the environment". Have you tried to not set anything and see? Ultimately, you can write your own service provider (replace BaoPham\DynamoDb\DynamoDbServiceProvider::class with your own in the config/app.php which should look like DynamoDbServiceProvider with the exception that you will pass in $config that has no credentials.

from laravel-dynamodb.

baopham avatar baopham commented on August 16, 2024 1

Ah yeah, this should be easy to do.

from laravel-dynamodb.

michaelshaffer37 avatar michaelshaffer37 commented on August 16, 2024

@hakimirahim Just for clarity, have you created an instance profile, and assigned the role to that profile?

from laravel-dynamodb.

hakimirahim avatar hakimirahim commented on August 16, 2024

just managed to dive into this project again.
the solution that works is by creating my own service provider as suggested. completely removing the credentials from $config made it work.

Thank you

from laravel-dynamodb.

stemis avatar stemis commented on August 16, 2024

@baopham
Hi Baopham

First of all, I appreciate you writing this plugin and I will be gladly using it for my project!

About this issue:
As this is the most "best-practice" method to identify yourself with the AWS API's, I think this should be a feature of your project.

If adding a simple empty statement checking for any of the 'key', 'secret' or 'token' vars could delete the whole 'credentials' item from the array could solve this issue. This would mean that I do not have to clone your Service Provider and can use the package out of the box.

Do you think it is a possibility to add this feature?

Thank you.

Steff

from laravel-dynamodb.

baopham avatar baopham commented on August 16, 2024

@hakimirahim @stemis
This should work now. You just need to leave these envs DYNAMODB_KEY, DYNAMODB_SECRET, AWS_SESSION_TOKEN empty

from laravel-dynamodb.

stemis avatar stemis commented on August 16, 2024

@baopham

Should do yes!
Thank you for the quick response :)

from laravel-dynamodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.