Skip to content

Commit fed7bf1

Browse files
committed
new GitHub action to upload CloudFormation template as artifact
1 parent 096872f commit fed7bf1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy