To run a check if the deployed correctly, go to the slack dashboard and click on the app you created. In the directory of the app, deploy the app by running $ serverless deploy -aws-profile exampleslackapp. The runtime python 3.8, and the SLACK_TOKEN is the OAth token from your slack app, also SIGNING_SECRET is the signing secret of your slack app. Below is an example of my serverless.yml file. In the directory where you created your app, a serverless.yml file is created. Navigate to the directory of your app and run $ serverless $ serverless deploy –-aws-profile exampleslackapp The block of code is used to install serverless package, run serverless, and deploy the serverless application $ npm install -g serverless Open your terminal and install the serverless package using npm: $ npm install -g serverless This is to say the servers will be fully and efficiently managed by the cloud provider (AWS) when deploying the code or application. Then click on install to workspace What does Serverless mean?Īn environment where the developers no longer need to worry about managing or developing the application with the traditional method is referred to as Serverless. Navigate to Feature, click on OAuth & Permissions at the right side and scroll down Scopes. The result is shown belowĬlick on your app icon to see created apps or to create a new oneĪfter giving your app name and choosing your preferred workspace, click on create app icon. Run $ aws configure and put in the downloaded credential as stated. To test if installation is a successful run $ aws –-version NOTE: make sure your user has programmatic access to AWS and download the credentials as CSV file for later use. For this blog, I will be proceeding as a current user.Īfter login, this page should be displayed. If you already have an account, you can log in as a user or create an account as a first-time user. The screenshots are added for easy reference There are few requirements for the project: この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。ĭeploying Slack Bot with Serverless framework on AWS Introduction to Serverless FrameworkĪfter about a few months of working with Amazon Web Service tools, I finally laid my hands on deploying a Slack Bot application with a Serverless framework and hosting it on AWS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |