Introducing Amplify to Amazon Linux 2 AMI

environment

Work content

--Introduction of Node.js --Introduction of Amplify

Introducing Node.js

Install Node Version Manager (nvm)

#Installation
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

#activation
$ . ~/.nvm/nvm.sh

Install the latest version of Node.js

#Installation
$ nvm install node

#Confirmation
$ node -e "console.log('Running Node.js ' + process.version)"

Node.js version switching

#Check the installable version
$ nvm ls-remote

# Install the specified version
$ nvm install 14.15.0

#Switch the version to use
$ nvm use 14.15.0

#Check the version
$ node -v

Introduction of Amplify

Install Amplify CLI

$ npm install -g @aws-amplify/cli

Pass through PATH (necessary response when switching Node.js version)

$ vi .bash_profile

Add the following

# Amplify
export PATH=$HOME/.nvm/versions/node/v14.15.0/bin:$PATH

Operation check

$ amplify


| Category      |
| ------------- |
| notifications |
| analytics     |
| api           |
| auth          |
| function      |
| hosting       |
| interactions  |
| predictions   |
| storage       |
| xr            |

 █████╗ ███╗   ███╗██████╗ ██╗     ██╗███████╗██╗   ██╗    ███████╗██████╗  █████╗ ███╗   ███╗███████╗██╗    ██╗ ██████╗ ██████╗ ██╗  ██╗
██╔══██╗████╗ ████║██╔══██╗██║     ██║██╔════╝╚██╗ ██╔╝    ██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝██║    ██║██╔═══██╗██╔══██╗██║ ██╔╝
███████║██╔████╔██║██████╔╝██║     ██║█████╗   ╚████╔╝     █████╗  ██████╔╝███████║██╔████╔██║█████╗  ██║ █╗ ██║██║   ██║██████╔╝█████╔╝ 
██╔══██║██║╚██╔╝██║██╔═══╝ ██║     ██║██╔══╝    ╚██╔╝      ██╔══╝  ██╔══██╗██╔══██║██║╚██╔╝██║██╔══╝  ██║███╗██║██║   ██║██╔══██╗██╔═██╗ 
██║  ██║██║ ╚═╝ ██║██║     ███████╗██║██║        ██║       ██║     ██║  ██║██║  ██║██║ ╚═╝ ██║███████╗╚███╔███╔╝╚██████╔╝██║  ██║██║  ██╗
╚═╝  ╚═╝╚═╝     ╚═╝╚═╝     ╚══════╝╚═╝╚═╝        ╚═╝       ╚═╝     ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝ ╚══╝╚══╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
                                                                                                                                         
amplify <command> <subcommand>

  init                Initializes a new project, sets up deployment resources in the cloud, and makes your project ready for Amplify.                              
  configure           Configures the attributes of your project for amplify-cli, such as switching front-end framework and adding/removing cloud-provider plugins. 
  push                Provisions cloud resources with the latest local developments.                                                                               
  pull                Fetch upstream backend environment definition changes from the cloud and updates the local environment to match that definition.             
  publish             Executes amplify push, and then builds and publishes client-side application for hosting.                                                    
  serve               Executes amplify push, and then executes the project's start command to test run the client-side application locally.                        
  status              Shows the state of local resources not yet pushed to the cloud (Create/Update/Delete).                                                       
  delete              Deletes all of the resources tied to the project from the cloud.                                                                             
  <category> add      Adds a resource for an Amplify category in your local backend                                                                                
  <category> update   Update resource for an Amplify category in your local backend.                                                                               
  <category> push     Provisions all cloud resources in a category with the latest local developments.                                                             
  <category> remove   Removes a resource for an Amplify category in your local backend.                                                                            
  <category>          Displays subcommands of the specified Amplify category.                                                                                      
  mock                Run mock server for testing categories locally.                                                                                              
  codegen             Generates GraphQL statements(queries, mutations and eventHandlers) and type annotations.                                                     
  env                 Displays and manages environment related information for your Amplify project.                                                               
  console             Opens the web console for the selected cloud resource. 

Recommended Posts

Introducing Amplify to Amazon Linux 2 AMI
How to install wkhtmltopdf (Amazon Linux2)
How to update php on Amazon linux 2
Upgraded mysql on Cloud9 (Amazon Linux) (5.5 to 5,7)
How to install Anisble on Amazon Linux 2
Introducing Japanese input system to Serene Linux
Introducing Docker Engine to Linux From Scratch
[Amazon Linux] Switching from Python 2 series to Python 3 series
[Linux] Introduction to Linux
Creating an AWS EC2 EC2 Instance (Amazon Linux AMI) 2
Added firewalld to Amazon Linux 2 (IP address restrictions)
Jupyter Notebook Settings-How to use (EC2 Amazon Linux 2)
Introduce serverspec to Linux
Linux commands to remember
Copy files directly from Amazon EC2 (Amazon linux) to S3
AWS EC2 2nd SSH connection to EC2 Instance (Amazon Linux2)
Introducing Python 2.7 to CentOS 6.6
OpenVPN Summary + Amazon Linux2
[AWS EC2] How to install Maven on Amazon Linux 2
Introducing a desktop environment to Arch Linux (LightDM + Xfce4)
How to build a Python environment on amazon linux 2
[Amazon Linux 2] Change from public key authentication to password authentication
[AWS] How to expand disk space on Amazon linux
[AWS EC2] Settings you want to do on Amazon Linux 2
[Windows] RDP to Windows via Linux
Addition of amazon linux swap
A super introduction to Linux
Introducing PyMySQL to raspberry pi3
[Linux] welcome to emergency mode!
Put jenv on Amazon Linux
I tried to reintroduce Linux
Install tomcat 5.5 on Amazon Linux.
Introducing Elixir on Linux Mint
Make Amazon Linux 2 (CentOS) GUI
Use sshpass on Amazon linux2
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Run Amazon Linux 2 in VirtualBox
I tried to create an environment of MkDocs on Amazon Linux
Add users with SSH access to your Amazon EC2 Linux instance