-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from synapsestudios/fix-sast-violations
fix sast violations
- Loading branch information
Showing
5 changed files
with
144 additions
and
54 deletions.
There are no files selected for viewing
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,40 @@ | ||
# Local .terraform directories | ||
**/.terraform/* | ||
|
||
# .tfstate files | ||
*.tfstate | ||
*.tfstate.* | ||
|
||
# Crash log files | ||
crash.log | ||
crash.*.log | ||
|
||
# Exclude all .tfvars files, which are likely to contain sensitive data, such as | ||
# password, private keys, and other secrets. These should not be part of version | ||
# control as they are data points which are potentially sensitive and subject | ||
# to change depending on the environment. | ||
*.tfvars | ||
*.tfvars.json | ||
|
||
# Ignore override files as they are usually used to override resources locally and so | ||
# are not checked in | ||
override.tf | ||
override.tf.json | ||
*_override.tf | ||
*_override.tf.json | ||
|
||
# Include override files you do wish to add to version control using negated pattern | ||
# !example_override.tf | ||
|
||
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan | ||
# example: *tfplan* | ||
|
||
# Ignore CLI configuration files | ||
.terraformrc | ||
terraform.rc | ||
|
||
# Add vscode workspace file | ||
.vscode/* | ||
|
||
# Ignore test files | ||
**/.terraform.lock.hcl |
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
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,32 @@ | ||
output "db_cluster_id" { | ||
description = "The ID of the RDS cluster" | ||
value = aws_rds_cluster.this.cluster_identifier | ||
} | ||
|
||
output "security_group_id" { | ||
description = "The ID of the EC2 security group that controls access to the RDS cluster" | ||
value = aws_security_group.this.id | ||
} | ||
|
||
output "root_password_id" { | ||
description = "The ID of the secret that stores the root password for the RDS cluster" | ||
value = data.aws_secretsmanager_secret_version.root_password.id | ||
} | ||
|
||
output "connection_string_arn" { | ||
description = <<EOT | ||
The ARN of the secret that stores the connection string for the RDS cluster. | ||
The secret stored inside is formatted as: postgresql://<username>:<password>@<endpoint>:<port>/<database> | ||
EOT | ||
value = aws_secretsmanager_secret.connection_string.arn | ||
} | ||
|
||
output "root_credentials" { | ||
description = "A map containing the username and password for the root user of the RDS cluster. Caution: This output will display the password in plain text." | ||
value = { | ||
username = aws_rds_cluster.this.master_username | ||
password = data.aws_secretsmanager_secret_version.root_password.secret_string | ||
} | ||
|
||
sensitive = true | ||
} |
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