Skip to content

Commit 9addb26

Browse files
committed
docs: add setup project insturctions
1 parent 44d5e7e commit 9addb26

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# Lambda Container Service
22
> Service template using container based lambda function
33
4+
## Setup
5+
1. Create ECR Repo
6+
2. Add folloeing permissions to Repo which allows Lambda to fetch image.
7+
```json
8+
{
9+
"Sid": "LambdaECRImageRetrievalPolicy",
10+
"Effect": "Allow",
11+
"Principal": {
12+
"Service": "lambda.amazonaws.com"
13+
},
14+
"Action": [
15+
"ecr:BatchGetImage",
16+
"ecr:GetDownloadUrlForLayer"
17+
]
18+
}
19+
```
20+
3. Change the Repo Name in
21+
1. publish.sh:3 (Line 3)
22+
2. .github/workflows/release.yml (Line 40; To update login credentials)
23+
424
## Developing
525

626
Runs a custom dev webserver which hosts the lambda function which can be hosted on

deploy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
envs:
2+
# Development environment
3+
- name: development
4+
auto_merge: false
5+
required_contexts: []
6+
7+
# Development environment
8+
- name: beta
9+
auto_merge: false
10+
required_contexts: []
11+
12+
# Production environment
13+
- name: production
14+
auto_merge: true
15+
required_contexts:
16+
- test
17+
- docker-image

0 commit comments

Comments
 (0)