https://github.com/tomoki171923/deploy-fargate
deploy container image into AWS fargate
https://github.com/tomoki171923/deploy-fargate
aws-ecr aws-ecs aws-fargate
Last synced: about 2 months ago
JSON representation
deploy container image into AWS fargate
- Host: GitHub
- URL: https://github.com/tomoki171923/deploy-fargate
- Owner: tomoki171923
- License: apache-2.0
- Created: 2022-04-06T18:17:12.000Z (about 3 years ago)
- Default Branch: dev
- Last Pushed: 2022-04-06T22:16:23.000Z (about 3 years ago)
- Last Synced: 2024-10-18T08:54:37.505Z (6 months ago)
- Topics: aws-ecr, aws-ecs, aws-fargate
- Language: JavaScript
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Table of Contents**
- [deploy-fargate](#deploy-fargate)
- [For User](#for-user)
- [1. Local Environment](#1-local-environment)
- [2. How to Deploy](#2-how-to-deploy)
- [2.1. set aws profile](#21-set-aws-profile)
- [2.2. set deploy config](#22-set-deploy-config)
- [2.3. install npm package](#23-install-npm-package)
- [2.4. deploy container image into AWS Faragte](#24-deploy-container-image-into-aws-faragte)
- [Only push container image into ECR (NOT deploy Faragte)](#only-push-container-image-into-ecr-not-deploy-faragte)
- [For Contributor](#for-contributor)# deploy-fargate
This repository is the helper to deploy container image into AWS Fargate from Local Environment.
## For User
### 1. Local Environment
```
node v16.14.2
```### 2. How to Deploy
#### 2.1. set aws profile
~/.aws/credentials
```
[private]
aws_access_key_id = AKIXXXXXXXXXXXXXXXX
aws_secret_access_key = abcdefghigklmnopqrstuvwxyz0123456789
region = ap-northeast-1
``````
export AWS_PROFILE=private
```#### 2.2. set deploy config
set [deploy config files](./example/README.md).
#### 2.3. install npm package
```
docker run -it -v $PWD:/usr/src/app --rm node:16.14.2-slim npm install -g npm && npm install
```#### 2.4. deploy container image into AWS Faragte
```
npm run deploy:dev
```##### Only push container image into ECR (NOT deploy Faragte)
```
npm run push:dev
```## For Contributor
```
docker run -it -v $PWD:/usr/src/app --rm node:16.14.2-slim npm install -g npm && npm install
npm run prepare
```