Open fwhenin opened 2 years ago
@fwhenin this worked for me:
const keycloakCluster = new keycloak.KeycloakCluster(this, 'Keycloak', {...));
new route53.ARecord(this, 'AppDNSAlias', {
recordName: domainName,
target: route53.RecordTarget.fromAlias(
new route53Targets.LoadBalancerTarget(
keycloakCluster.node.tryFindChild(
'LoadBalancer',
) as unknown as elbv2.ApplicationLoadBalancer,
),
),
zone: hostedZone,
});
I'm not sure exactly how to access the ALB in the Cluster to then use it to add an A record to Route53, so i can use something like keycloak.domain.com as my url. any help would be great