-
Notifications
You must be signed in to change notification settings - Fork 74
43 lines (39 loc) · 1.22 KB
/
aurora-create-database.yml
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
36
37
38
39
40
41
42
43
name: Aurora Create
on:
workflow_dispatch:
inputs:
name:
description: 'The name of the Aurora DB cluster'
type: string
required: true
region:
description: 'The AWS region used to host the Aurora DB'
type: string
required: true
engineVersion:
description: 'The Postgres engine version to use'
type: string
instanceClass:
description: 'Instance class for the Aurora DB'
type: string
jobs:
prepare:
name: Create Aurora DB
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup ROSA CLI
uses: ./.github/actions/rosa-cli-setup
with:
aws-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-default-region: ${{ vars.AWS_DEFAULT_REGION }}
rosa-token: ${{ secrets.ROSA_TOKEN }}
- name: Create Aurora Cluster
uses: ./.github/actions/aurora-create-database
with:
name: ${{ inputs.name }}
region: ${{ inputs.region }}
engineVersion: ${{ inputs.engineVersion }}
instanceClass: ${{ inputs.instanceClass }}