CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
523 stars 157 forks source link

PostgreSQL: Adds 'FullyQualifiedDomainName' configuration member. #1020

Closed ninjarobot closed 1 year ago

ninjarobot commented 1 year ago

This PR closes #881

The changes in this PR are as follows:

I have read the contributing guidelines and have completed the following:

If I haven't completed any of the tasks above, I include the reasons why here:

Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:

open Farmer
open Farmer.Builders
open Farmer.PostgreSQL

let myPostgres = postgreSQL {
    admin_username "adminallthethings"
    name "aserverformultitudes42"
    capacity 4<VCores>
    storage_size 50<Gb>
    tier GeneralPurpose
    add_database "my_db"
    enable_azure_firewall
}

let template = arm {
    add_resource myPostgres
    // The FQDN is the endpoint for accessing the server and will be populated in an output variable.
    output "fqdn" myPostgres.FullyQualifiedDomainName
}