-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-gcp.ts
43 lines (38 loc) · 925 Bytes
/
index-gcp.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import * as pulumi from "@pulumi/pulumi"
import * as gcp from "@pulumi/gcp"
const test = new gcp.organizations.Project(
"test",
{
autoCreateNetwork: true,
billingAccount: "xxxxxxxxxxxxxxxx",
name: "Proyecto Test",
projectId: "mi-test",
},
{
protect: true,
}
)
const dnsService = new gcp.projects.Service("dns-service", {
project: test.projectId,
service: "dns.googleapis.com",
})
const runService = new gcp.projects.Service("run-service", {
project: test.projectId,
service: "run.googleapis.com",
})
const testZone = new gcp.dns.ManagedZone("test-zone", {
name: "test",
dnsName: "mi-test.cl.",
project: test.projectId,
dnssecConfig: {
state: "on",
},
visibility: "public",
})
new gcp.dns.RecordSet("test-recordset-cname-www.mi-test.cl", {
managedZone: testZone.name,
name: "www.mi-test.cl.",
type: "CNAME",
ttl: 300,
rrdatas: ["ghs.googlehosted.com."],
})