aws transfer-family-efs cdk example
- git
- awscli
- Nodejs 16.x
- AWS Account and locally configured AWS credential
$ aws configure
AWS Access Key ID [****************NCHZ]:
AWS Secret Access Key [****************AwoB]:
Default region name [us-east-1]:
Default output format [json]:
$ cd infra
$ npm i -g [email protected]
$ npm i
open infra/env/dev.env and fill the blow fields
VPC_ID
: vpc idEFS_UID
: efs uidEFS_GID
: efs gidAWS_ACCOUNT_ID
: 12 digit account idAWS_REGION
: e.g. ap-northeast-2
and copy env/dev.env
file to project root as .env
$ cd infra
$ cp env/dev.env .env
if you never run bootstrap on the account, bootstrap it.
$ cdk bootstrap
deploy infrastructure
$ cdk deploy "*" --require-approval never