Rule
Provides Route53 Resolver Rules
Examples
Create a Route53 Resolver Rule:
exports.createResources = () => [
{
type: "Rule",
group: "Route53Resolver",
properties: ({}) => ({
DomainName: "network-dev.internal.",
Name: "root-env",
RuleType: "FORWARD",
}),
dependencies: ({}) => ({
resolverEndpoint: "Org-Outbound-Resolver-Endpoint",
}),
},
];
Source Code Examples
Properties
Dependencies
Used By
List
List the rules with the Route53Resolver::Rule filter:
gc list -t Route53Resolver::Rule
Listing resources on 1 provider: aws
✓ aws us-east-1
✓ Initialising
✓ Listing 1/1
┌──────────────────────────────────────────────────────────────────────────┐
│ 2 Route53Resolver::Rule from aws │
├──────────────────────────────────────────────────────────────────────────┤
│ name: Internet Resolver │
│ managedByUs: NO │
│ live: │
│ Arn: arn:aws:route53resolver:us-east-1::autodefined-rule/rslvr-autode… │
│ CreatorRequestId: │
│ DomainName: . │
│ Id: rslvr-autodefined-rr-internet-resolver │
│ Name: Internet Resolver │
│ OwnerId: Route 53 Resolver │
│ RuleType: RECURSIVE │
│ ShareStatus: NOT_SHARED │
│ Status: COMPLETE │
│ │
├──────────────────────────────────────────────────────────────────────────┤
│ name: my-rule │
│ managedByUs: Yes │
│ live: │
│ Arn: arn:aws:route53resolver:us-east-1:840541460064:resolver-rule/rsl… │
│ CreationTime: 2022-06-24T10:05:47.395984Z │
│ CreatorRequestId: grucloud-Fri Jun 24 2022 12:05:45 GMT+0200 (Central… │
│ DomainName: internal.grucloud.org. │
│ Id: rslvr-rr-87420ef83c7a4f078 │
│ ModificationTime: 2022-06-24T10:05:47.395984Z │
│ Name: my-rule │
│ OwnerId: 840541460064 │
│ ResolverEndpointId: rslvr-out-345b5ada2e544ff18 │
│ RuleType: FORWARD │
│ ShareStatus: NOT_SHARED │
│ Status: COMPLETE │
│ StatusMessage: [Trace id: 1-62b58c7b-0d8761ec44ba804f0e99fb21] Succes… │
│ TargetIps: │
│ - Ip: 10.0.0.150 │
│ Port: 53 │
│ - Ip: 10.0.1.121 │
│ Port: 53 │
│ Tags: │
│ - Key: gc-created-by-provider │
│ Value: aws │
│ - Key: gc-managed-by │
│ Value: grucloud │
│ - Key: gc-project-name │
│ Value: route53-resolver │
│ - Key: gc-stage │
│ Value: dev │
│ - Key: mykey │
│ Value: myvalue │
│ - Key: Name │
│ Value: my-rule │
│ │
└──────────────────────────────────────────────────────────────────────────┘
List Summary:
Provider: aws
┌─────────────────────────────────────────────────────────────────────────┐
│ aws │
├───────────────────────┬─────────────────────────────────────────────────┤
│ Route53Resolver::Rule │ Internet Resolver │
│ │ my-rule │
└───────────────────────┴─────────────────────────────────────────────────┘
2 resources, 1 type, 1 provider
Command "gc list -t Route53Resolver::Rule" executed in 6s, 99 MB