frostmoln_apache_instance (Data Source)
Look up a managed Apache webserver instance by ID.
Example Usage
terraform
data "frostmoln_apache_instance" "existing" {
id = "web-abc123"
}
output "apache_existing_private_ip" {
value = data.frostmoln_apache_instance.existing.private_ip
}
output "apache_existing_public_ip" {
value = data.frostmoln_apache_instance.existing.public_ip
}
output "apache_existing_tls" {
value = {
enabled = data.frostmoln_apache_instance.existing.tls_enabled
required = data.frostmoln_apache_instance.existing.require_tls
hostname = data.frostmoln_apache_instance.existing.hostname
}
}Schema
Required
id(String) The unique identifier of the Apache instance.
Read-Only
config(Map of String) Type-specific configuration as key/value pairs (the applied typeConfig object).created_at(String) The timestamp when the instance was created.flavor_id(String) The flavor ID/size of the Apache instance.hostname(String) The instance's internal DNS name (<label>.web.<vpc-label>.<tenant-label>.<org-label>.fm.internal), resolvable inside its VPC only; its TLS certificate is issued for this name. Null on an instance built without TLS.name(String) The name of the Apache instance.php_enabled(Boolean) Whether PHP support is enabled.php_version(String) The PHP version.port(Number) The port number the Apache instance is listening on.private_ip(String) The private IP address of the Apache instance.public(Boolean) Whether the instance is publicly exposed (a Public IP is associated so the site is reachable on the public internet).public_ip(String) The public IP address associated with the instance while it is exposed (empty when not public).require_tls(Boolean) Whether port 80 only redirects to https (the site served over HTTPS only). False: the site is served on port 80 beside HTTPS. Fixed at create; false on instances created before the setting existed.security_group_id(String) The platform-managed security group attached to this instance. The platform creates and owns it: the group is not intended for customer modification, and changes to it are normally rejected. Do not import it as a frostmoln_security_group -- reads succeed, but applies including destroy are refused. It allows inbound tcp/80 and tcp/443 from any source (0.0.0.0/0), and outbound is unrestricted. Empty until the instance has finished provisioning.status(String) The current status of the Apache instance.storage_gb(Number) The storage size in gigabytes.subnet_id(String) The subnet ID where the instance is deployed.tags(Map of String) Every resource tag on the Apache instance — the same set as the resource'stags_all: your own key/value metadata, never applied to the service itself. An empty map when it has none.tenant_id(String) The tenant ID that owns this instance.tls_enabled(Boolean) Whether the instance serves HTTPS on 443 with a certificate forhostnamefrom the Frostmoln customer CA (see thefrostmoln_ca_bundledata source). False on an instance built before TLS.updated_at(String) The timestamp when the instance was last updated.version(String) The Apache version.vpc_id(String) The VPC ID where the instance is deployed.