We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28cc059 + 5e5d5a8 commit bc45985Copy full SHA for bc45985
.github/workflows/cloudFormation.yml
@@ -36,6 +36,15 @@ jobs:
36
runs-on: ubuntu-latest
37
38
steps:
39
+ - name: Validate Project Name
40
+ env:
41
+ PROJECT_NAME: ${{ github.event.inputs.project_name }}
42
+ run: |
43
+ if ! [[ "$PROJECT_NAME" =~ ^[a-zA-Z][a-zA-Z0-9]*$ ]]; then
44
+ echo "Project Name must begin with a letter and contain only alphanumeric characters."
45
+ exit 1
46
+ fi
47
+
48
- name: Checkout
49
uses: actions/checkout@v2
50
.github/workflows/stacks/backendStackCF.yaml
@@ -34,7 +34,7 @@ Resources:
34
RDSDatabase:
35
Type: AWS::RDS::DBInstance
Properties:
- DBName: !Sub '${ProjectName}-db'
+ DBName: !Sub '${ProjectName}'
MasterUsername: !Ref DBUser
Engine: postgres
MasterUserPassword: !Ref DBPassword
0 commit comments