
resource "aws_ssm_parameter" "auth0_client_id" {
  name        = "/auth0/${local.service_name}/client-id"
  description = "The auth0 client id for the identity service."
  type        = "String"
  value       = auth0_client.client.client_id
}

resource "aws_secretsmanager_secret" "auth0_client_secret" {
  name = "${local.service_name}-client-secret"
  description = "The auth0 client for the identity service."
}

resource "aws_secretsmanager_secret_version" "auth0_client_secret" {
  secret_id = aws_secretsmanager_secret.auth0_client_secret.id
  secret_string = auth0_client.client.client_secret
}

output "rds_endpoint" {
  value = module.rds_mysql_identity.rds_instance_address
}

output "rds_username" {
  value = module.rds_mysql_identity.rds_username
}
