File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy CDK Python Lambda
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Setup Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : 20
19+
20+ - name : Setup Python
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : ' 3.11'
24+
25+ - name : Install Python dependencies
26+ run : pip install -r requirements.txt
27+
28+ - name : Install AWS CDK
29+ run : npm install -g aws-cdk
30+
31+ - name : Deploy CDK stack
32+ run : cdk deploy --require-approval never
33+ env :
34+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
35+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
36+ AWS_REGION : ap-south-1
You can’t perform that action at this time.
0 commit comments