Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Help #38

Open
Akhilalex143 opened this issue Apr 15, 2023 · 17 comments
Open

Need Help #38

Akhilalex143 opened this issue Apr 15, 2023 · 17 comments

Comments

@Akhilalex143
Copy link

Hi Team Can you Give Me the Detailed information about How to uses this Repo and And How to deploy

  • Step-by-Step installations Process
  • Requirements

Im Facing Lot of issues to Deploy this Code in My Ubuntu 20.4 Server

@iandees Plz ........

@Akhilalex143
Copy link
Author

``
Screenshot_1

@iandees
Copy link
Owner

iandees commented Apr 15, 2023

Can you try my suggestion in #36

@Akhilalex143
Copy link
Author

ive Try this But its Not Working Again and Again Getting Same Error

@Akhilalex143
Copy link
Author

you Update the README.md File

and mention Detail installation Process ??

@iandees
Copy link
Owner

iandees commented Apr 15, 2023

Yes, please make sure you follow all of the Readme.

Also, please include your entire console session. The screenshot you posted continues and might include more information about the error.

@Akhilalex143
Copy link
Author

Sure ill Update it give some time

@Akhilalex143
Copy link
Author

ubuntu 20.4 Server

sudo apt-get update

sudo apt install npm


image

sudo npm install -g serverless


image

serverless create \
  --template-url="https://github.com/iandees/aws-billing-to-slack.git" \
  --path="app-aws-cost" \
  --name="app-aws-cost"


image


wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz
sudo apt-get install xz-utils
sudo tar -C /usr/local --strip-components 1 -xJf node-v14.17.0-linux-x64.tar.xz
node -v


image

Again i Try to Execute commands

serverless create \
  --template-url="https://github.com/iandees/aws-billing-to-slack.git" \
  --path="app-aws-cost" \
  --name="app-aws-cost"

Output


image



image

pip install pipenv

image

serverless plugin install -n serverless-python-requirements
image

serverless deploy --stage="prod" --param="slack_url=https://hooks.slack.com/services/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"


image

@iandees .........................

@Akhilalex143
Copy link
Author


image

@iandees
Copy link
Owner

iandees commented Apr 17, 2023

It looks like your Python installation is broken. You could try adding $HOME/.local/bin to your path like so:

export PATH="${PATH}:${HOME}/.local/bin"

And running the serverless deploy command again.

@Akhilalex143
Copy link
Author

Akhilalex143 commented Apr 19, 2023

Its not Working ....
again im Create a New Server Doing From Scratch But Deployment time I'm Facing an Issue is their any alternate Solution form this

You Can Also try to Deploy Same using Ubuntu Server ? may be you know Exactly Problem i think

@Akhilalex143
Copy link
Author

Hello @iandees @ohe @estahn @stevemac007 Can you Give me Solution for this

@iandees
Copy link
Owner

iandees commented Apr 28, 2023

The setup instructions in the readme work for me from a Ubuntu 22.04 server. Please make sure you're installing pipenv as described in the instructions.

@Akhilalex143
Copy link
Author


image

im Using ubuntu 22.04 Server Still One error

@Akhilalex143
Copy link
Author

@iandees Can you Describe the Steps you Follow in ubutnu 22.4 Version

@iandees
Copy link
Owner

iandees commented May 2, 2023

Here's how I got it working on a fresh Ubuntu 22.04 Docker image:

  1. Install node + npm

    sudo apt update
    sudo apt install -y npm
    
  2. Install serverless

    npm -g install serverless
    
  3. Create the serverless project from the Github URL

    serverless create \
        --template-url="https://github.com/iandees/aws-billing-to-slack.git" \
        --path="app-aws-cost" \
        --name="app-aws-cost"
    
  4. Install Python, pip, pipenv

    sudo apt install python3-pip
    pip install pipenv
    
  5. Install serverless plugin for python

    cd app-aws-cost
    serverless plugin install -n serverless-python-requirements
    
  6. Deploy the serverless app to your AWS infrastructure

    serverless deploy \
         --stage="prod" \
         --param="slack_url=https://hooks.slack.com/services/xxx/yyy/zzzz"
    

@Akhilalex143
Copy link
Author

Akhilalex143 commented May 4, 2023

@Akhilalex143
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants