AWS Commands

Amplify Commands S3

Command reference

AWS Cli

AWS Cli S3

User Guide

Quick Reference

Commands

Buckets

s3api
aws s3api list-buckets

Repositories

basic operations
$aws s3 help
$aws s3 ls
$aws s3 ls s3://bucket-name
$aws s3 cp file.txt s3://my-bucket/
$aws s3 rm s3://my-bucket/path/MyFile2.rtf

Sync

Attempt sync without –delete option – nothing happens
$ aws s3 sync . s3://my-bucket/path

Sync with deletion – object is deleted from bucket
$ aws s3 sync . s3://my-bucket/path –delete
delete: s3://my-bucket/path/MyFile1.txt

Delete object from bucket
$ aws s3 rm s3://my-bucket/path/MySubdirectory/MyFile3.txt
delete: s3://my-bucket/path/MySubdirectory/MyFile3.txt

Sync with deletion – local file is deleted
$ aws s3 sync s3://my-bucket/path . –delete
delete: MySubdirectory\MyFile3.txt

Sync with Infrequent Access storage class
$ aws s3 sync . s3://my-bucket/path –storage-class STANDARD_IA

SAM

sam init sam build sam local start-api –host [ip] sam deploy –guided sam deploy –no-confirm-changeset

Install AWS Software

AWS Client2

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

SAM Client

(with brew)

brew tap aws/tap
brew install aws-sam-cli
sam --version

Amplify install

React/Material Ui examples

aws cli

npm install -g @aws-amplify/cli

aws react

npm install aws-amplify @aws-amplify/ui-react

aws js config


import Amplify from "aws-amplify";
import awsExports from "./aws-exports";
Amplify.configure(awsExports);

Amplify UI Components

yarn add aws-amplify @aws-amplify/ui-react

authentication

Posted in aws

Leave a Reply

Your email address will not be published.