bbw/output.tf

28 lines
811 B
Terraform
Raw Normal View History

2024-01-20 23:28:11 +01:00
# Output data for input in ansible if ansible will be started manually like with:
# "--extra-vars=$(terraform output --json | jq 'with_entries(.value |= .value)')"
output "web_public_ip" {
description = "The public IP address of the web server"
value = aws_instance.ec2_instance.public_ip
}
output "db_address" {
description = "The endpoint of the database"
value = aws_db_instance.mariadb.address
}
output "db_name" {
description = "The name of the database"
value = var.db_name
}
output "db_username" {
description = "The user for the database"
value = var.db_username
}
output "db_password" {
description = "The password for the database"
value = var.db_password
}
output "db_port" {
description = "The port of the database"
value = var.db_port
}