Pages Domain
The gitlab.PagesDomain
resource allows connecting custom domains and TLS certificates in GitLab Pages. Upstream API: GitLab REST API docs
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.PagesDomain;
import com.pulumi.gitlab.PagesDomainArgs;
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 thisPagesDomain = new PagesDomain("thisPagesDomain", PagesDomainArgs.builder()
.project(123)
.domain("example.com")
.autoSslEnabled(true)
.build());
var thisIndex_pagesDomainPagesDomain = new PagesDomain("thisIndex/pagesDomainPagesDomain", PagesDomainArgs.builder()
.project(123)
.domain("example.com")
.key(Files.readString(Paths.get(String.format("%s/key.pem", path.module()))))
.certificate(Files.readString(Paths.get(String.format("%s/cert.pem", path.module()))))
.build());
}
}
Content copied to clipboard
Import
GitLab pages domain can be imported using an id made up of projectId:domain
without the http protocol, e.g.
$ pulumi import gitlab:index/pagesDomain:PagesDomain this 123:example.com
Content copied to clipboard
Properties
Link copied to clipboard
Enables automatic generation of SSL certificates issued by Let’s Encrypt for custom domains. When this is set to "true", certificate can't be provided.
Link copied to clipboard
The certificate in PEM format with intermediates following in most specific to least specific order.
Link copied to clipboard
The ID or URL-encoded path of the project owned by the authenticated user.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The verification code for the domain.