Skip to main content

Global Forwarding Rule

Provides global forwarding rule needed by the HTTPS load balancer

const bucketName = "mybucketname";

provider.compute.makeSslCertificate({
name: "ssl-certificate",
properties: () => ({
managed: {
domains: ["mydomain.com"],
},
}),
});

provider.storage.makeBucket({
name: bucketName,
});

provider.compute.makeBackendBucket({
name: "backend-bucket",
properties: () => ({
bucketName,
}),
});

provider.compute.makeUrlMap({
name: "url-map",
dependencies: () => ({ service: "backend-bucket" }),
});

provider.compute.makeHttpsTargetProxy({
name: "https-target-proxy",
dependencies: () => ({
sslCertificate: "ssl-certificate",
urlMap: "url-map",
}),
});

provider.compute.makeGlobalForwardingRule({
name: "global-forwarding-rule",
dependencies: () => ({ httpsTargetProxy: "https-target-proxy" }),
});

Examples

website-https/artifacts/diagram-target.svg

Properties

Dependencies

List

List all Global Forwarding Rules with the GlobalForwardingRule type

gc l -t GlobalForwardingRule
✓ google
✓ Initialising
✓ Listing 5/5
┌────────────────────────────────────────────────────────────────────────────────┐
│ 1 GlobalForwardingRule from google │
├────────────────────────┬────────────────────────────────────────────────┬──────┤
│ Name │ Data │ Our │
├────────────────────────┼────────────────────────────────────────────────┼──────┤
│ global-forwarding-rule │ id: 953550543260874208 │ Yes │
│ │ creationTimestamp: 2021-06-30T03:44:31.211-07… │ │
│ │ name: global-forwarding-rule │ │
│ │ description: Managed By GruCloud │ │
│ │ IPAddress: 34.149.122.91 │ │
│ │ IPProtocol: TCP │ │
│ │ portRange: 443-443 │ │
│ │ target: https://www.googleapis.com/compute/v1… │ │
│ │ selfLink: https://www.googleapis.com/compute/… │ │
│ │ loadBalancingScheme: EXTERNAL │ │
│ │ networkTier: PREMIUM │ │
│ │ labelFingerprint: 42WmSpB8rSM= │ │
│ │ fingerprint: 3GGsVKhNuO4= │ │
│ │ kind: compute#forwardingRule │ │
│ │ │ │
└────────────────────────┴────────────────────────────────────────────────┴──────┘


List Summary:
Provider: google
┌───────────────────────────────────────────────────────────────────────────────┐
│ google │
├────────────────────┬──────────────────────────────────────────────────────────┤
│ GlobalForwardingR… │ global-forwarding-rule │
└────────────────────┴──────────────────────────────────────────────────────────┘
1 resource, 5 types, 1 provider
Command "gc l -t GlobalForwardingRule" executed in 4s