-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 997 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and Deploy AWS Unified Firehose
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.AWS_S3_PUBLISHER_ROLE }}
aws-region: us-east-2
- name: Install AWS SAM CLI
run: |
pip install aws-sam-cli
- name: Build SAM Application
run: sam build --template-file firehose-template.yaml --region us-east-2
- name: Package SAM Application
run: sam package --s3-bucket unified-lambda-serverless --output-template-file firehose-template.yaml --region us-east-2
- name: Upload CloudFormation Template to S3
run: aws s3 cp firehose-template.yaml s3://unified-lambda-serverless/firehose-template.yaml