Comments (7)
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.
Ah yeah, this should be easy to do.
from laravel-dynamodb.
@hakimirahim Just for clarity, have you created an instance profile, and assigned the role to that profile?
from laravel-dynamodb.
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.
@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.
@hakimirahim @stemis
This should work now. You just need to leave these envs DYNAMODB_KEY
, DYNAMODB_SECRET
, AWS_SESSION_TOKEN
empty
from laravel-dynamodb.
Should do yes!
Thank you for the quick response :)
from laravel-dynamodb.
Related Issues (20)
- I can't sort the items on a query HOT 3
- Could you fix this code? (PHP5.6 FatalError Analyzer.php ) HOT 1
- Issue using Nested attributes HOT 1
- Could I use AssumeRole with baopham dynamodb? HOT 2
- Force KeyCondition when filtering by only partition key in a table with a composite key HOT 1
- Add DAX Client HOT 1
- Pagination HOT 3
- DynamoDbModel constructor is not calling the `initializeTraits()` method like the parent HOT 1
- Unable to update data using where() HOT 6
- dynamodb.php not recognized HOT 1
- How to use 'Sort descending' HOT 1
- How to query List\Map Key-Value field HOT 2
- Invalid Query or Scan syntax with "single-table design" indexes HOT 1
- How can we use API resources?
- Expecting RequestInterface, given RulesetEndpoint HOT 6
- Cannot access property/attribute of returned record HOT 2
- get() with a non-existent value as the primary key using where returns a collection with null instead of an empty collection
- Laravel 11 support HOT 12
- problem in nested query HOT 1
- Problem with security HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-dynamodb.