Skip to content

Commit

Permalink
Moved rds bastion output
Browse files Browse the repository at this point in the history
into it's own block for consistency with other projects.
ND-403
  • Loading branch information
Stephen.James committed Jul 1, 2024
1 parent 8b29481 commit 24339d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ output: ## terraform output (make output OUTPUT_ARGUMENT='--raw dns_dhcp_vpc_id'
$(DOCKER_RUN) /bin/bash -c "terraform output -no-color ${OUTPUT_ARGUMENT}"
.PHONY: output-bastion-rds-admin
output-bastion-rds-admin: ## terraform output (make output OUTPUT_ARGUMENT='--raw dns_dhcp_vpc_id')
$(DOCKER_RUN) /bin/bash -c "terraform output -no-color -json terraform_outputs | jq -r .rds_bastion.admin[][]"
output-bastion-rds-admin: ## terraform output (make output-bastion-rds-admin)
$(DOCKER_RUN) /bin/bash -c "terraform output -no-color -json rds_bastion | jq -r .admin[][]"
.PHONY: output-bastion-rds-server
output-bastion-rds-server: ## terraform output (make output OUTPUT_ARGUMENT='--raw dns_dhcp_vpc_id')
$(DOCKER_RUN) /bin/bash -c "terraform output -no-color -json terraform_outputs | jq -r .rds_bastion.server[][]"
output-bastion-rds-server: ## terraform output (make output-bastion-rds-server)
$(DOCKER_RUN) /bin/bash -c "terraform output -no-color -json rds_bastion | jq -r .server[][]"
.PHONY: apply
apply: ## terraform apply
Expand Down
11 changes: 7 additions & 4 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ output "terraform_outputs" {
nat_gateway_route_table = {
value = module.radius_vpc.nat_gateway_route_table_id
}
rds_bastion = {
admin = module.rds_admin_bastion[*].bastion
server = module.rds_servers_bastion[*].bastion
}
}
}

output "rds_bastion" {
value = {
admin = module.rds_admin_bastion[*].bastion
server = module.rds_servers_bastion[*].bastion
}
}

0 comments on commit 24339d4

Please sign in to comment.