Comments (5)
Hi Paul-
We probably need to make this more clear in the readme, but the credentials are read from the AWS credentials file. Assuming you're using a Mac or Linux machine, this is typically in the ~/.aws/credentials file. The easiest way to set this up is to install the AWS CLI using the pip tool and then type "aws configure." Assuming you want to use your default profile for the CLI, no other changes are required to deploy the project.
Let us know if that works for you.
Justin
from aws-serverless-auth-reference-app.
I'm trying to get this demo running in a Cloud9 dev environment, which I'm not super familiar with. When I do this:
paulfryer:~/workspace (master) $ sudo pip install awscli --upgrade --force-reinstall
I get this error:
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
ext/_yaml.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
Full log attached here:
It looks like the main Python file is missing? Perhaps I'm running this from the wrong location? I do have python installed, verified by doing this:
paulfryer:~/workspace (master) $ python --version
Python 2.7.6
from aws-serverless-auth-reference-app.
For Cloud9 workspaces, you first need to install some additional Python development tools to allow the CLI to install correctly. This issue for AWS CLI installation on Cloud9 is documented #https://community.c9.io/t/error-when-installing-aws-cli-on-ubuntu-workspace/11398
You'll need to uninstall the half-installed CLI, then re-install the AWS CLI after installing the extra python dependencies, then run "aws configure." This will prompt you for your AWS access key and AWS secret access key while will then be stored in your AWS credentials file at ~/.aws/credentials. Once this file is created, you can simply run "gulp deploy" and it will pick up the local credentials.
Let us know if you're able to get the deployment to succeed after resolving the AWS CLI installation issue.
from aws-serverless-auth-reference-app.
To provide the full perspective, though the CLI's generated credentials file is the recommended way to save credentials to local disk securely, there are several options that would work as this project uses the Node.js JavaScript SDK. All options possible are documented at http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials-node.html.
from aws-serverless-auth-reference-app.
@justonian Thanks for the info, I did get this deployment working on my local Mac after installing the AWS CLI. I'll try to get Cloud9 working next.
from aws-serverless-auth-reference-app.
Related Issues (20)
- Side menu version HOT 1
- CAN'T CONVERT IONIC TO PWA..!!
- regenerating sdk causes issues HOT 3
- How can you add a second IdP without losing roles logic?
- "Bookings" failed on showing booked resource list-Run in a web browser HOT 1
- Store Login data and auto login
- Tighten Up Lambda Execution Role Policy By Using Policy Variable (identity ID or Subscriber ID) Fine-Grained Access to DynamoDB HOT 5
- Can not connect using putty and ec2-user HOT 6
- Is the user information in account-management.service.ts secure?
- AWSCognito is not defined in account-management.service.ts
- lambda wrapper functions break any Promise returns
- api create_sdk command fails HOT 2
- Token refresh
- Cannot run gulp deploy HOT 2
- Generated Java API SDK has lots of Syntax errors HOT 2
- Could you provide some sample Java code for Cognito UserPool Authorizer client
- Account Image is not persisted
- How can i get my temporary credentials for my federated Id token ? HOT 1
- gulp deploy fails on lambda creation - repo needs to be updated for supported nodejs version HOT 3
- Demo to migrate to AppSync and GraphQL?
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 aws-serverless-auth-reference-app.