GithubHelp home page GithubHelp logo

Comments (5)

justonian avatar justonian commented on August 24, 2024

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.

paulfryer avatar paulfryer commented on August 24, 2024

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:

install-awscli-log.txt

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.

justonian avatar justonian commented on August 24, 2024

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.

justonian avatar justonian commented on August 24, 2024

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.

paulfryer avatar paulfryer commented on August 24, 2024

@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)

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.