Skip to content

Commit 476b8ef

Browse files
committed
update
1 parent 130562d commit 476b8ef

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,28 @@ $ pytest tests/unit/ -s
7676
$ pytest tests/integration/ --stage $INTEGRATION_TEST_STAGE --region $AWS_DEFAULT_REGION -s
7777
```
7878

79-
## CI/CD
79+
## CI
8080
PR送信時にCIが走ります。テストを通した状態でレビュー依頼を実施してください
81-
CDに関しては別途検討
81+
82+
## デプロイ
83+
本GitHub上でtagを作るとデプロイパッケージがS3バケットにputされます。環境変数DEPLOYMENT_BUCKETにデプロイしたいバケット名を指定してください。
84+
指定したtagをS3オブジェクトのprefixとしてデプロイパッケージがアップロードされます。
85+
86+
```bash
87+
$ git tag 1.0.0
88+
$ git push origin 1.0.0
89+
```
90+
91+
上記のデプロイが正常終了後は以下のaws-cliでCloudFormationテンプレートを反映させてください。なお、stack-nameは自由に決めて構いません。
92+
93+
新規追加時
94+
95+
```bash
96+
$ aws cloudformation create-stack --stack-name <スタック名> --template-url https://s3-ap-northeast-1.amazonaws.com/<バケット名>/<tag名>/cloudformation-template-update-stack.json --capabilities '["CAPABILITY_IAM","CAPABILITY_NAMED_IAM"]'
97+
```
98+
99+
既存stack更新時
100+
101+
```bash
102+
$ aws cloudformation update-stack --stack-name <スタック名> --template-url https://s3-ap-northeast-1.amazonaws.com/<バケット名>/<tag名>/cloudformation-template-update-stack.json --capabilities '["CAPABILITY_IAM","CAPABILITY_NAMED_IAM"]'
103+
```

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ provider:
66
runtime: python3.7
77
stage: ${env:ALIS_APP_ID}
88
endpointType: regional
9-
memorySize: 128
9+
memorySize: 256
1010
environment:
1111
AUTHLETE_API_KEY: ${ssm:${env:ALIS_APP_ID}ssmAutlteleApiKey}
1212
AUTHLETE_API_SECRET: ${ssm:${env:ALIS_APP_ID}ssmAutlteleApiSecret}

0 commit comments

Comments
 (0)