File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Save CloudFormation template
2
+ # based on https://github.com/AdminTurnedDevOps/YouTube/blob/main/.github/workflows/main.yml
3
+
4
+
5
+
6
+ on :
7
+ # When it works, uncomment these 2 lines:
8
+ # release:
9
+ # types: [published]
10
+
11
+ # Allows you to run this workflow manually from the Actions tab
12
+ workflow_dispatch :
13
+
14
+ jobs :
15
+ aws_cdk :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v2
21
+
22
+ - name : install npm
23
+ uses : actions/setup-node@v3
24
+
25
+ - name : Install AWS CDK
26
+ run : ' npm install -g aws-cdk'
27
+
28
+ - name : Install Requirements
29
+ run : ' pip3 install -r requirements.txt'
30
+
31
+ - name : Run CDK synth
32
+ run : ' cdk synth'
33
+
34
+ - name : Save CloudFormation template
35
+ uses : actions/upload-artifact@v3
36
+ with :
37
+ name : ec2-instance.template.json
38
+ path : ./cdk.out/ec2-instance.template.json
You can’t perform that action at this time.
0 commit comments