Comments (4)
It's a bit late, but I've added a bit to the readme about how to deal with this CI/CD scenario by creating a temporary ~/.aws/credentials
file- see:
I'll close this issue for now, but feel free to re-open if you have any trouble.
from serverless-better-credentials.
@thomasmichaelwallace Is it possible to have the plugin fall back to unmodified behaviour if the .aws/credentials
file is missing? This bug with IAM roles makes it hard to use the plugin since it breaks in CI.
from serverless-better-credentials.
I agree this could be useful behaviour- although it could be harder than you expect to implement because of the way credentials get resolved natively by serverless is still different from the way the aws-sdk works.
For what it's worth, I think this should just work if you have the AWS_ACCESS_KEY
&c. variables set in your ci/cd environment.
In general, however, I would recommend moving away from AWS managed profiles and instead using something like https://github.com/99designs/aws-vault.
from serverless-better-credentials.
I don't have time to work on this plugin any more - I moved to the AWS-CDK and haven't really looked back.
But I accept PRs 😄
from serverless-better-credentials.
Related Issues (20)
- Add support for serverless print HOT 3
- The simplest AWS_PROFILE doesn't even work HOT 7
- Unhelpful error when SSO session has expired HOT 5
- Error: Cannot find module '@serverless/utils/log' after installing and enabling HOT 4
- New AWS SSO config format HOT 8
- AWS-SDK v3 Compatibility HOT 3
- Error when trying to deploy dev branch with AWS Codepipeline HOT 3
- The installation command is incorrect HOT 3
- plugin breaks oidc auth Web Identity Provider authentication HOT 4
- Problems when using with serverless-domain-manager HOT 4
- Doesn't work since 1.2.0 HOT 8
- AWS SSO profile HOT 1
- plugin not working on aws with instance profile sourced temporary credentials HOT 6
- Add missing providers from the SDK default chain HOT 5
- enabled flag is not respected
- Support for aws-sdk v3 HOT 1
- Authentication fails on Mac M3 if `~/.aws/credentials` file is missing and valid SSO configuration exists in `~/.aws/config` HOT 1
- Error when invoking locally without credentials HOT 6
- Support Role profile with SSO profile as a source profile. HOT 16
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 serverless-better-credentials.