Serverless framework - AWS config & hello-word setup

node -v
npm -v
npm install -g serverless
serverless — version
sls — version
# sls is just a shortcut to the serverless command
aws configure
AWS Access Key ID [None]: aws-key
AWS Secret Access Key [None]: aws-secret
Default region name [None]: eu-west-1 Default output format [None]: json
[default]
aws_access_key_id = access_key
aws_secret_access_key = secret_key
[second_profile]
aws_access_key_id = access_key2
aws_secret_access_key = secret_key2
aws s3 ls
sls deploy
sls logs -f hello -t
sls remove

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Artur Bartosik

Artur Bartosik

6 Followers

Developer, Engineer, and Cloud Enthusiastic. AWS, GCP, and K8S certified. Polish home page: https://cloud-box.pl