Expand description
Assigns a static reverse DNS record to an Elastic IP addresses. See Using reverse DNS for email applications.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = eip::create(
"example",
EipArgs::builder().domain("vpc").build_struct(),
);
let exampleEipDomainName = eip_domain_name::create(
"exampleEipDomainName",
EipDomainNameArgs::builder()
.allocation_id("${example.allocationId}")
.domain_name("${exampleRecord.fqdn}")
.build_struct(),
);
let exampleRecord = record::create(
"exampleRecord",
RecordArgs::builder()
.name("reverse")
.records(vec!["${example.publicIp}",])
.type_("A")
.zone_id("${main.zoneId}")
.build_struct(),
);
}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments