curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
which aws
# /usr/local/bin/aws
aws --version
# aws-cli/2.10.0 Python/3.11.2 Darwin/18.7.0 botocore/2.4.5
sudo chmod -R 755 /usr/local/aws-cli/
export PATH=/usr/local/bin:$PATH
source ~/.bash_profile
aws configure
vim ~/.aws/credentials
# 1 [default]
# 2 region = ap-southeast-2
# 3 aws_access_key_id = A*************
# 4 aws_secret_access_key = /q*************
aws amplify update-app --app-id <appId> --platform WEB_DYNAMIC --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB_COMPUTE --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB --region ap-northeast-2
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"start": "next start"
},
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: out # 빌드 파일 확인
files:
- '**/*'
cache:
paths:
- node_modules/**/*
ExampleMonorepo
apps
nextApp1
app2
app3
version: 1
applications:
- appRoot: apps/nextApp1
backend:
phases:
preBuild:
commands:
- *enter command*
build:
commands:
- *enter command*
postBuild:
commands:
- *enter command*
frontend:
buildPath: apps/nextApp1 # Run install and build from the monorepo project root
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
which aws
# /usr/local/bin/aws
aws --version
# aws-cli/2.10.0 Python/3.11.2 Darwin/18.7.0 botocore/2.4.5
sudo chmod -R 755 /usr/local/aws-cli/
export PATH=/usr/local/bin:$PATH
source ~/.bash_profile
aws configure
vim ~/.aws/credentials
# 1 [default]
# 2 region = ap-southeast-2
# 3 aws_access_key_id = A*************
# 4 aws_secret_access_key = /q*************
aws amplify update-app --app-id <appId> --platform WEB_DYNAMIC --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB_COMPUTE --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB --region ap-northeast-2
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"start": "next start"
},
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: out # 빌드 파일 확인
files:
- '**/*'
cache:
paths:
- node_modules/**/*
ExampleMonorepo
apps
nextApp1
app2
app3
version: 1
applications:
- appRoot: apps/nextApp1
backend:
phases:
preBuild:
commands:
- *enter command*
build:
commands:
- *enter command*
postBuild:
commands:
- *enter command*
frontend:
buildPath: apps/nextApp1 # Run install and build from the monorepo project root
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
which aws
# /usr/local/bin/aws
aws --version
# aws-cli/2.10.0 Python/3.11.2 Darwin/18.7.0 botocore/2.4.5
sudo chmod -R 755 /usr/local/aws-cli/
export PATH=/usr/local/bin:$PATH
source ~/.bash_profile
aws configure
vim ~/.aws/credentials
# 1 [default]
# 2 region = ap-southeast-2
# 3 aws_access_key_id = A*************
# 4 aws_secret_access_key = /q*************
aws amplify update-app --app-id <appId> --platform WEB_DYNAMIC --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB_COMPUTE --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB --region ap-northeast-2
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"start": "next start"
},
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: out # 빌드 파일 확인
files:
- '**/*'
cache:
paths:
- node_modules/**/*
ExampleMonorepo
apps
nextApp1
app2
app3
version: 1
applications:
- appRoot: apps/nextApp1
backend:
phases:
preBuild:
commands:
- *enter command*
build:
commands:
- *enter command*
postBuild:
commands:
- *enter command*
frontend:
buildPath: apps/nextApp1 # Run install and build from the monorepo project root
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
which aws
# /usr/local/bin/aws
aws --version
# aws-cli/2.10.0 Python/3.11.2 Darwin/18.7.0 botocore/2.4.5
sudo chmod -R 755 /usr/local/aws-cli/
export PATH=/usr/local/bin:$PATH
source ~/.bash_profile
aws configure
vim ~/.aws/credentials
# 1 [default]
# 2 region = ap-southeast-2
# 3 aws_access_key_id = A*************
# 4 aws_secret_access_key = /q*************
aws amplify update-app --app-id <appId> --platform WEB_DYNAMIC --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB_COMPUTE --region ap-northeast-2
aws amplify update-app --app-id <appId> --platform WEB --region ap-northeast-2
"scripts": {
"dev": "next dev",
"build": "next build && next export",
"start": "next start"
},
version: 1
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: out # 빌드 파일 확인
files:
- '**/*'
cache:
paths:
- node_modules/**/*
ExampleMonorepo
apps
nextApp1
app2
app3
version: 1
applications:
- appRoot: apps/nextApp1
backend:
phases:
preBuild:
commands:
- *enter command*
build:
commands:
- *enter command*
postBuild:
commands:
- *enter command*
frontend:
buildPath: apps/nextApp1 # Run install and build from the monorepo project root
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn build
artifacts:
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**/*
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
which aws
# /usr/local/bin/aws
aws --version
# aws-cli/2.10.0 Python/3.11.2 Darwin/18.7.0 botocore/2.4.5
sudo chmod -R 755 /usr/local/aws-cli/
export PATH=/usr/local/bin:$PATH
source ~/.bash_profile
aws configure
vim ~/.aws/credentials
# 1 [default]
# 2 region = ap-southeast-2
# 3 aws_access_key_id = A*************
# 4 aws_secret_access_key = /q*************