Skip to content

Commit f6c88a6

Browse files
authored
Merge pull request #36 from DevOps-Cloud-Team5/SCRUM-92_cf
reformatted
2 parents 0a9c559 + 3d54728 commit f6c88a6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/stacks/backendStackCF.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Parameters:
1313
DBPassword:
1414
Type: String
1515
Description: Password of DB
16+
NoEcho: true
1617
EmailHost:
1718
Type: String
1819
Description: Email host
@@ -27,6 +28,8 @@ Parameters:
2728
Description: Email password
2829
FrontendUrl:
2930
Type: String
31+
Description: Frontend URL for the application
32+
3033
Resources:
3134
RDSDatabase:
3235
Type: AWS::RDS::DBInstance
@@ -37,6 +40,7 @@ Resources:
3740
MasterUserPassword: !Ref DBPassword
3841
DBInstanceClass: db.t3.micro
3942
AllocatedStorage: 20
43+
4044
Secrets:
4145
Type: AWS::SecretsManager::Secret
4246
Properties:
@@ -47,9 +51,9 @@ Resources:
4751
"SECRET_KEY": "${SecretKey}",
4852
"DB_NAME": "${RDSDatabase.DBName}",
4953
"DB_HOST": "${RDSDatabase.Endpoint.Address}",
50-
"DB_USER": "${RDSDatabase.MasterUsername}",
54+
"DB_USER": "${DBUser}",
5155
"DB_PORT": "5432",
52-
"DB_PASSWORD": "${RDSDatabase.MasterUserPassword}",
56+
"DB_PASSWORD": "${DBPassword}",
5357
"EMAIL_HOST": "${EmailHost}",
5458
"EMAIL_PORT": "${EmailPort}",
5559
"EMAIL_USER": "${EmailUser}",
@@ -81,10 +85,8 @@ Resources:
8185
Type: 'AWS::S3::Bucket'
8286
Properties:
8387
BucketName: !Sub 'zappa-${ProjectName}'
88+
8489
Outputs:
85-
DBPassword:
86-
Description: "The RDS database master user password"
87-
Value: !Ref MasterUserPassword
8890
RDSEndpoint:
8991
Description: "The RDS database endpoint"
9092
Value: !GetAtt RDSDatabase.Endpoint.Address

0 commit comments

Comments
 (0)