diff --git a/cdktf/oci/tunnel/main.ts b/cdktf/oci/tunnel/main.ts index 4a91d092e..b670b4fff 100644 --- a/cdktf/oci/tunnel/main.ts +++ b/cdktf/oci/tunnel/main.ts @@ -116,28 +116,28 @@ export class Tunnel extends Construct { }` const sshRecord = new cloudflare.record.Record(this, `ssh_app_${name}`, { + comment: RecordComment, + content: tunnelDomain, name: `${ instance.instance.is_subdomain ? `ssh-${instance.name}` : "ssh" }`, proxied: true, type: "CNAME", - content: tunnelDomain, zoneId: this.cloudflareZones.zones.get(0).id, - comment: RecordComment, }) const tunnelRecord = new cloudflare.record.Record( this, `tunnel_app_${name}`, { + comment: RecordComment, + content: this.tunnel.cname, name: `${ instance.instance.is_subdomain ? `tunnel-${instance.name}` : "tunnel" }`, proxied: true, type: "CNAME", - content: this.tunnel.cname, zoneId: this.cloudflareZones.zones.get(0).id, - comment: RecordComment, } ) @@ -233,12 +233,12 @@ export class Tunnel extends Construct { } new cloudflare.record.Record(this, `ingress_record_${name}`, { + comment: RecordComment, + content: tunnelDomain, name: ingress.hostname, proxied: true, type: "CNAME", - content: tunnelDomain, zoneId: zoneId, - comment: RecordComment, }) }) }