Domain Entry
Creates a domain entry resource
NOTE on
id
: In an effort to simplify imports, this resourceid
field has been updated to the standard resource id separator, a comma (,
). For backward compatibility, the previous separator (underscore_
) can still be used to read and import existing resources. When state is refreshed, theid
will be updated to use the new standard separator. The previous separator will be deprecated in a future major release.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lightsail.Domain;
import com.pulumi.aws.lightsail.DomainArgs;
import com.pulumi.aws.lightsail.DomainEntry;
import com.pulumi.aws.lightsail.DomainEntryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testDomain = new Domain("testDomain", DomainArgs.builder()
.domainName("mydomain.com")
.build());
var testDomainEntry = new DomainEntry("testDomainEntry", DomainEntryArgs.builder()
.domainName(aws_lightsail_domain.domain_test().domain_name())
.type("A")
.target("127.0.0.1")
.build());
}
}
Content copied to clipboard
Import
aws_lightsail_domain_entry
can be imported by using the id attribute, e.g.,
$ pulumi import aws:lightsail/domainEntry:DomainEntry example www,mydomain.com,A,127.0.0.1
Content copied to clipboard