Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/devops #57

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions env/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
#-----------------------------------
# Lemon Basic Environment Variables.
#-----------------------------------
lemon:
name: lemon-app
runtime: nodejs16.x
region: ap-northeast-2
env: lemon.yml # environment file
bucketName: 'lemon-lemonade' # WARN! main bucket used (create before deploy).
identityPool: 'ap-northeast-2:71aca5df-260e-4c65-ab21-48bf1877ea13' # ade-user-pool-identity-pool
securityGroupIds:
subnetIds:
devops:
name: devops-eureka-codes-app
runtime: nodejs16.x
region: ap-northeast-2
env: devops.yml # environment file
bucketName: 'devops-eureka-codes-test' # WARN! main bucket used (create before deploy).
identityPool: 'ap-northeast-2:71aca5df-260e-4c65-ab21-48bf1877ea13' # ade-user-pool-identity-pool
securityGroupIds: ''
subnetIds: ''
none:
name: none-app
runtime: nodejs16.x
region: ap-northeast-2
env: none.yml # environment file
securityGroupIds:
subnetIds:
39 changes: 39 additions & 0 deletions env/devops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#-----------------------------------
# Lemon Basic Environment Variables.
#-----------------------------------
# default
default_env: &default_env
LS: 0 # log silence.
LC: 1 # line-coloring
TS: 1 # time-stamp in line
NAME: 'devops' # profile name.
BACKBONE_API: '' # NO USE BACKBONE
SLACK_PUT_S3: 0 # flag to auto save into s3 bucket if slack message.
SLACK_PUBLIC: 'AQICAHiPBSQJJBm6GYmzoarYHMhQe8Usgfge7ugXevmEy4GodwHNIn1KOIJtxZpyTZvU6s7uAAAAtDCBsQYJKoZIhvcNAQcGoIGjMIGgAgEAMIGaBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDLs+pEXIEZ/6Zuf38QIBEIBt9t/VelRKiZi4kWUt6SajwsBfydKjq/5i6/O6kBzEDnLIjNKTwAgvurzIYKod45WHyv1pLV+XfTb2wxJj3RuVe0dAt0U65NuQ4AQ0vhaqPRbwKrAljCoAUQW02I5Guw0I1kb6ZbA+kAnNNyWkxg=='

#-----------------------------------
# local development configuration.
local:
<<: *default_env
# STAGE: 'local'
# MY_DYNAMO_TABLE: LemonHelloTest

#! override as prod environ.
STAGE: 'local'
MY_DYNAMO_TABLE: LemonHelloTest

#-----------------------------------
# development server
dev:
<<: *default_env
STAGE: 'develop'

#-----------------------------------
# production with AWS deploy
prod:
<<: *default_env
STAGE: 'production'
NS: SS
TS: 0
SLACK_PUT_S3: 1 # flag to auto save into s3 bucket if slack message.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"express.adam": "ENV=adam STAGE=local npm run start",
"!deploy": "----- deploy to AWS by serverless -----",
"deploy.lemon": "npm run build && sls deploy --param='profile=lemon' --stage dev",
"deploy.devops": "npm run build && sls deploy --param='profile=devops' --stage dev",
"deploy.lemon.prod": "npm run build && sls deploy --param='profile=lemon' --stage prod",
"deploy.jober": "npm run build && sls deploy --param='profile=jober' --stage prod",
"deploy.neuro": "npm run build && sls deploy --param='profile=neuro' --stage prod",
Expand Down Expand Up @@ -127,4 +128,4 @@
"type": "git",
"url": "git@github.com:lemoncloud-io/lemon-hello-api.git"
}
}
}
Loading