Skip to content

Commit

Permalink
Merge pull request #29 from DNXLabs/feature/arn_output
Browse files Browse the repository at this point in the history
Add db ARN  output
  • Loading branch information
Renatovnctavares authored May 25, 2023
2 parents 71d23cd + 4e09f0c commit 0d96ea8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@

| Name | Description |
|------|-------------|
| db\_arn | n/a |
| endpoint | n/a |
| identifier | n/a |
| rds\_sg | n/a |
Expand Down
4 changes: 4 additions & 0 deletions _output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ output "identifier" {

output "rds_sg" {
value = aws_security_group.rds_db.id
}

output "db_arn" {
value = var.db_type == "rds" ? aws_db_instance.rds_db[0].arn : aws_rds_cluster.aurora_cluster[0].arn
}

0 comments on commit 0d96ea8

Please sign in to comment.