Skip to main content

Global Forwarding Rule

Provides global forwaring rule need by the HTTPS load balancer

const bucketName = "mybucketname";
const sslCertificate = await provider.makeSslCertificate({
name: "ssl-certificate",
properties: () => ({
managed: {
domains: [domain],
},
}),
});
const myBucket = await provider.makeBucket({
name: bucketName,
properties: () => ({}),
});
const backendBucket = await provider.makeBackendBucket({
name: "backend-bucket",
properties: () => ({
bucketName,
}),
});
const urlMap = await provider.makeUrlMap({
name: "url-map",
dependencies: { service: backendBucket },
properties: () => ({}),
});
const httpsTargetProxy = await provider.makeHttpsTargetProxy({
name: "https-target-proxy",
dependencies: { sslCertificate, urlMap },
properties: () => ({}),
});
const globalForwardingRule = await provider.makeGlobalForwardingRule({
name: "global-forwarding-rule",
dependencies: { httpsTargetProxy },
properties: () => ({}),
});

Examples#

Properties#

Dependencies#