generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified terraform to add changes identified in rds-ssl-fix.md file
- Loading branch information
1 parent
dcad4f3
commit f695017
Showing
7 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
There were multiple configurations that prohibited the EKS tefca viewer pod from connecting to the Postgres database. | ||
|
||
1. The EKS clusterwas missing the required IAM permissions (add to phdi-playground repo) | ||
1. | ||
- Original policy had `rds:Connect` as an action it was creating the error `Invalid Action: The action rds:Connect does not exist` | ||
![Original Policy](./original_iam_policy.png) | ||
|
||
- Modified Policy : This policy replaced rds:Connect with rds-db:Connect and the resource block to reference the database with the Resource ID | ||
![Modified Policy](./modified_iam_policy.png) | ||
|
||
|
||
2. In the parameter group for the database, rds.force_ssl was enabled and only allows SSL connections. | ||
- I disable the parameter by changing the value to 0 | ||
|
||
The fix is sufficient to allow the connection between the pod and RDS. | ||
|
||
- Log with error message: | ||
![Log error](./log_error.png) | ||
|
||
- Log after making changes above: | ||
- In the snapshot, I can verify that the database is connecting based off of the 3 entries that show connection received, connection authenticated, and connection authorized | ||
![Log fix](./log_fix.png) | ||
|
||
3. To better assist with troubleshooting in the future, I made the change below: | ||
- I turned on Postgres logging for the RDS database to help with debugging the issue | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters