Skip to main content

Global Forwarding Rule

Provides global forwarding rule needed by the HTTPS load balancer

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

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