@pulumi/gcp 6.24.0 → 6.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accesscontextmanager/accessLevelCondition.d.ts +53 -0
- package/accesscontextmanager/accessLevelCondition.js +53 -0
- package/accesscontextmanager/accessLevelCondition.js.map +1 -1
- package/apigee/envGroup.d.ts +31 -0
- package/apigee/envGroup.js +31 -0
- package/apigee/envGroup.js.map +1 -1
- package/apigee/envGroupAttachment.d.ts +64 -0
- package/apigee/envGroupAttachment.js +64 -0
- package/apigee/envGroupAttachment.js.map +1 -1
- package/apigee/environment.d.ts +32 -0
- package/apigee/environment.js +32 -0
- package/apigee/environment.js.map +1 -1
- package/apigee/instance.d.ts +148 -0
- package/apigee/instance.js +148 -0
- package/apigee/instance.js.map +1 -1
- package/apigee/instanceAttachment.d.ts +64 -0
- package/apigee/instanceAttachment.js +64 -0
- package/apigee/instanceAttachment.js.map +1 -1
- package/bigquery/connection.d.ts +34 -21
- package/bigquery/connection.js +18 -21
- package/bigquery/connection.js.map +1 -1
- package/bigquery/reservationAssignment.d.ts +3 -4
- package/bigquery/reservationAssignment.js +3 -4
- package/bigquery/reservationAssignment.js.map +1 -1
- package/bigquery/routine.d.ts +56 -0
- package/bigquery/routine.js +56 -0
- package/bigquery/routine.js.map +1 -1
- package/certificateauthority/authority.d.ts +12 -0
- package/certificateauthority/authority.js +2 -0
- package/certificateauthority/authority.js.map +1 -1
- package/certificateauthority/getAuthority.d.ts +1 -0
- package/certificateauthority/getAuthority.js.map +1 -1
- package/certificatemanager/certificate.d.ts +230 -0
- package/certificatemanager/certificate.js +116 -0
- package/certificatemanager/certificate.js.map +1 -0
- package/certificatemanager/dnsAuthorization.d.ts +175 -0
- package/certificatemanager/dnsAuthorization.js +109 -0
- package/certificatemanager/dnsAuthorization.js.map +1 -0
- package/certificatemanager/index.d.ts +2 -0
- package/certificatemanager/index.js +42 -0
- package/certificatemanager/index.js.map +1 -0
- package/clouddeploy/deliveryPipeline.d.ts +231 -0
- package/clouddeploy/deliveryPipeline.js +130 -0
- package/clouddeploy/deliveryPipeline.js.map +1 -0
- package/clouddeploy/index.d.ts +2 -0
- package/clouddeploy/index.js +42 -0
- package/clouddeploy/index.js.map +1 -0
- package/clouddeploy/target.d.ts +256 -0
- package/clouddeploy/target.js +125 -0
- package/clouddeploy/target.js.map +1 -0
- package/cloudfunctions/function.d.ts +17 -5
- package/cloudfunctions/function.js +4 -2
- package/cloudfunctions/function.js.map +1 -1
- package/cloudfunctions/getFunction.d.ts +1 -0
- package/cloudfunctions/getFunction.js.map +1 -1
- package/compute/globalAddress.d.ts +18 -0
- package/compute/globalAddress.js +18 -0
- package/compute/globalAddress.js.map +1 -1
- package/compute/organizationSecurityPolicy.d.ts +13 -0
- package/compute/organizationSecurityPolicy.js +13 -0
- package/compute/organizationSecurityPolicy.js.map +1 -1
- package/compute/organizationSecurityPolicyAssociation.d.ts +51 -0
- package/compute/organizationSecurityPolicyAssociation.js +51 -0
- package/compute/organizationSecurityPolicyAssociation.js.map +1 -1
- package/compute/organizationSecurityPolicyRule.d.ts +39 -0
- package/compute/organizationSecurityPolicyRule.js +39 -0
- package/compute/organizationSecurityPolicyRule.js.map +1 -1
- package/compute/perInstanceConfig.d.ts +65 -0
- package/compute/perInstanceConfig.js +65 -0
- package/compute/perInstanceConfig.js.map +1 -1
- package/compute/regionNetworkEndpointGroup.d.ts +30 -3
- package/compute/regionNetworkEndpointGroup.js +14 -0
- package/compute/regionNetworkEndpointGroup.js.map +1 -1
- package/compute/regionPerInstanceConfig.d.ts +70 -0
- package/compute/regionPerInstanceConfig.js +70 -0
- package/compute/regionPerInstanceConfig.js.map +1 -1
- package/compute/routerNat.d.ts +21 -0
- package/compute/routerNat.js +2 -0
- package/compute/routerNat.js.map +1 -1
- package/compute/serviceAttachment.d.ts +23 -0
- package/compute/serviceAttachment.js +4 -0
- package/compute/serviceAttachment.js.map +1 -1
- package/config/vars.d.ts +3 -1
- package/config/vars.js +14 -2
- package/config/vars.js.map +1 -1
- package/diagflow/intent.d.ts +46 -0
- package/diagflow/intent.js +46 -0
- package/diagflow/intent.js.map +1 -1
- package/firebase/project.d.ts +16 -0
- package/firebase/project.js +16 -0
- package/firebase/project.js.map +1 -1
- package/firebase/projectLocation.d.ts +22 -0
- package/firebase/projectLocation.js +22 -0
- package/firebase/projectLocation.js.map +1 -1
- package/firebase/webApp.d.ts +43 -0
- package/firebase/webApp.js +43 -0
- package/firebase/webApp.js.map +1 -1
- package/firestore/document.d.ts +2 -2
- package/firestore/document.js +2 -2
- package/iap/brand.d.ts +20 -0
- package/iap/brand.js +20 -0
- package/iap/brand.js.map +1 -1
- package/iap/client.d.ts +24 -0
- package/iap/client.js +24 -0
- package/iap/client.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/monitoring/uptimeCheckConfig.d.ts +16 -0
- package/monitoring/uptimeCheckConfig.js +3 -0
- package/monitoring/uptimeCheckConfig.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +6 -2
- package/provider.js +3 -1
- package/provider.js.map +1 -1
- package/tpu/node.d.ts +36 -0
- package/tpu/node.js +36 -0
- package/tpu/node.js.map +1 -1
- package/types/input.d.ts +160 -4
- package/types/output.d.ts +189 -5
- package/vpcaccess/connector.d.ts +2 -1
- package/vpcaccess/connector.js +2 -1
- package/vpcaccess/connector.js.map +1 -1
|
@@ -23,6 +23,59 @@ import { input as inputs, output as outputs } from "../types";
|
|
|
23
23
|
* `billingProject` you defined.
|
|
24
24
|
*
|
|
25
25
|
* ## Example Usage
|
|
26
|
+
* ### Access Context Manager Access Level Condition Basic
|
|
27
|
+
*
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
+
* import * as gcp from "@pulumi/gcp";
|
|
31
|
+
*
|
|
32
|
+
* const access_policy = new gcp.accesscontextmanager.AccessPolicy("access-policy", {
|
|
33
|
+
* parent: "organizations/123456789",
|
|
34
|
+
* title: "my policy",
|
|
35
|
+
* });
|
|
36
|
+
* const access_level_service_account = new gcp.accesscontextmanager.AccessLevel("access-level-service-account", {
|
|
37
|
+
* parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
|
|
38
|
+
* title: "tf_test_chromeos_no_lock",
|
|
39
|
+
* basic: {
|
|
40
|
+
* conditions: [{
|
|
41
|
+
* devicePolicy: {
|
|
42
|
+
* requireScreenLock: true,
|
|
43
|
+
* osConstraints: [{
|
|
44
|
+
* osType: "DESKTOP_CHROME_OS",
|
|
45
|
+
* }],
|
|
46
|
+
* },
|
|
47
|
+
* regions: [
|
|
48
|
+
* "CH",
|
|
49
|
+
* "IT",
|
|
50
|
+
* "US",
|
|
51
|
+
* ],
|
|
52
|
+
* }],
|
|
53
|
+
* },
|
|
54
|
+
* });
|
|
55
|
+
* const created_later = new gcp.serviceaccount.Account("created-later", {accountId: "tf-test"});
|
|
56
|
+
* const access_level_conditions = new gcp.accesscontextmanager.AccessLevelCondition("access-level-conditions", {
|
|
57
|
+
* accessLevel: access_level_service_account.name,
|
|
58
|
+
* ipSubnetworks: ["192.0.4.0/24"],
|
|
59
|
+
* members: [
|
|
60
|
+
* "user:test@google.com",
|
|
61
|
+
* "user:test2@google.com",
|
|
62
|
+
* pulumi.interpolate`serviceAccount:${created_later.email}`,
|
|
63
|
+
* ],
|
|
64
|
+
* negate: false,
|
|
65
|
+
* devicePolicy: {
|
|
66
|
+
* requireScreenLock: false,
|
|
67
|
+
* requireAdminApproval: false,
|
|
68
|
+
* requireCorpOwned: true,
|
|
69
|
+
* osConstraints: [{
|
|
70
|
+
* osType: "DESKTOP_CHROME_OS",
|
|
71
|
+
* }],
|
|
72
|
+
* },
|
|
73
|
+
* regions: [
|
|
74
|
+
* "IT",
|
|
75
|
+
* "US",
|
|
76
|
+
* ],
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
26
79
|
*
|
|
27
80
|
* ## Import
|
|
28
81
|
*
|
|
@@ -28,6 +28,59 @@ const utilities = require("../utilities");
|
|
|
28
28
|
* `billingProject` you defined.
|
|
29
29
|
*
|
|
30
30
|
* ## Example Usage
|
|
31
|
+
* ### Access Context Manager Access Level Condition Basic
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as gcp from "@pulumi/gcp";
|
|
36
|
+
*
|
|
37
|
+
* const access_policy = new gcp.accesscontextmanager.AccessPolicy("access-policy", {
|
|
38
|
+
* parent: "organizations/123456789",
|
|
39
|
+
* title: "my policy",
|
|
40
|
+
* });
|
|
41
|
+
* const access_level_service_account = new gcp.accesscontextmanager.AccessLevel("access-level-service-account", {
|
|
42
|
+
* parent: pulumi.interpolate`accessPolicies/${access_policy.name}`,
|
|
43
|
+
* title: "tf_test_chromeos_no_lock",
|
|
44
|
+
* basic: {
|
|
45
|
+
* conditions: [{
|
|
46
|
+
* devicePolicy: {
|
|
47
|
+
* requireScreenLock: true,
|
|
48
|
+
* osConstraints: [{
|
|
49
|
+
* osType: "DESKTOP_CHROME_OS",
|
|
50
|
+
* }],
|
|
51
|
+
* },
|
|
52
|
+
* regions: [
|
|
53
|
+
* "CH",
|
|
54
|
+
* "IT",
|
|
55
|
+
* "US",
|
|
56
|
+
* ],
|
|
57
|
+
* }],
|
|
58
|
+
* },
|
|
59
|
+
* });
|
|
60
|
+
* const created_later = new gcp.serviceaccount.Account("created-later", {accountId: "tf-test"});
|
|
61
|
+
* const access_level_conditions = new gcp.accesscontextmanager.AccessLevelCondition("access-level-conditions", {
|
|
62
|
+
* accessLevel: access_level_service_account.name,
|
|
63
|
+
* ipSubnetworks: ["192.0.4.0/24"],
|
|
64
|
+
* members: [
|
|
65
|
+
* "user:test@google.com",
|
|
66
|
+
* "user:test2@google.com",
|
|
67
|
+
* pulumi.interpolate`serviceAccount:${created_later.email}`,
|
|
68
|
+
* ],
|
|
69
|
+
* negate: false,
|
|
70
|
+
* devicePolicy: {
|
|
71
|
+
* requireScreenLock: false,
|
|
72
|
+
* requireAdminApproval: false,
|
|
73
|
+
* requireCorpOwned: true,
|
|
74
|
+
* osConstraints: [{
|
|
75
|
+
* osType: "DESKTOP_CHROME_OS",
|
|
76
|
+
* }],
|
|
77
|
+
* },
|
|
78
|
+
* regions: [
|
|
79
|
+
* "IT",
|
|
80
|
+
* "US",
|
|
81
|
+
* ],
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
31
84
|
*
|
|
32
85
|
* ## Import
|
|
33
86
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessLevelCondition.js","sourceRoot":"","sources":["../../accesscontextmanager/accessLevelCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"accessLevelCondition.js","sourceRoot":"","sources":["../../accesscontextmanager/accessLevelCondition.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IA2F3D,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAA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;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;SACzF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IArHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;;AA1BL,oDAuHC;AAzGG,gBAAgB;AACO,iCAAY,GAAG,oEAAoE,CAAC"}
|
package/apigee/envGroup.d.ts
CHANGED
|
@@ -9,6 +9,37 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
* ### Apigee Environment Group Basic
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
19
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
20
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
21
|
+
* purpose: "VPC_PEERING",
|
|
22
|
+
* addressType: "INTERNAL",
|
|
23
|
+
* prefixLength: 16,
|
|
24
|
+
* network: apigeeNetwork.id,
|
|
25
|
+
* });
|
|
26
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
27
|
+
* network: apigeeNetwork.id,
|
|
28
|
+
* service: "servicenetworking.googleapis.com",
|
|
29
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
30
|
+
* });
|
|
31
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
32
|
+
* analyticsRegion: "us-central1",
|
|
33
|
+
* projectId: current.then(current => current.project),
|
|
34
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
35
|
+
* }, {
|
|
36
|
+
* dependsOn: [apigeeVpcConnection],
|
|
37
|
+
* });
|
|
38
|
+
* const envGrp = new gcp.apigee.EnvGroup("envGrp", {
|
|
39
|
+
* hostnames: ["abc.foo.com"],
|
|
40
|
+
* orgId: apigeeOrg.id,
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
12
43
|
*
|
|
13
44
|
* ## Import
|
|
14
45
|
*
|
package/apigee/envGroup.js
CHANGED
|
@@ -15,6 +15,37 @@ const utilities = require("../utilities");
|
|
|
15
15
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
16
16
|
*
|
|
17
17
|
* ## Example Usage
|
|
18
|
+
* ### Apigee Environment Group Basic
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as gcp from "@pulumi/gcp";
|
|
23
|
+
*
|
|
24
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
25
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
26
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
27
|
+
* purpose: "VPC_PEERING",
|
|
28
|
+
* addressType: "INTERNAL",
|
|
29
|
+
* prefixLength: 16,
|
|
30
|
+
* network: apigeeNetwork.id,
|
|
31
|
+
* });
|
|
32
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
33
|
+
* network: apigeeNetwork.id,
|
|
34
|
+
* service: "servicenetworking.googleapis.com",
|
|
35
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
36
|
+
* });
|
|
37
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
38
|
+
* analyticsRegion: "us-central1",
|
|
39
|
+
* projectId: current.then(current => current.project),
|
|
40
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
41
|
+
* }, {
|
|
42
|
+
* dependsOn: [apigeeVpcConnection],
|
|
43
|
+
* });
|
|
44
|
+
* const envGrp = new gcp.apigee.EnvGroup("envGrp", {
|
|
45
|
+
* hostnames: ["abc.foo.com"],
|
|
46
|
+
* orgId: apigeeOrg.id,
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
18
49
|
*
|
|
19
50
|
* ## Import
|
|
20
51
|
*
|
package/apigee/envGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envGroup.js","sourceRoot":"","sources":["../../apigee/envGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"envGroup.js","sourceRoot":"","sources":["../../apigee/envGroup.ts"],"names":[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,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IApED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BAsEC;AAxDG,gBAAgB;AACO,qBAAY,GAAG,8BAA8B,CAAC"}
|
|
@@ -9,6 +9,70 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
* ### Apigee Environment Group Attachment Basic
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const project = new gcp.organizations.Project("project", {
|
|
19
|
+
* projectId: "tf-test",
|
|
20
|
+
* orgId: "",
|
|
21
|
+
* billingAccount: "",
|
|
22
|
+
* });
|
|
23
|
+
* const apigee = new gcp.projects.Service("apigee", {
|
|
24
|
+
* project: project.projectId,
|
|
25
|
+
* service: "apigee.googleapis.com",
|
|
26
|
+
* });
|
|
27
|
+
* const compute = new gcp.projects.Service("compute", {
|
|
28
|
+
* project: project.projectId,
|
|
29
|
+
* service: "compute.googleapis.com",
|
|
30
|
+
* });
|
|
31
|
+
* const servicenetworking = new gcp.projects.Service("servicenetworking", {
|
|
32
|
+
* project: project.projectId,
|
|
33
|
+
* service: "servicenetworking.googleapis.com",
|
|
34
|
+
* });
|
|
35
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {project: project.projectId}, {
|
|
36
|
+
* dependsOn: [compute],
|
|
37
|
+
* });
|
|
38
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
39
|
+
* purpose: "VPC_PEERING",
|
|
40
|
+
* addressType: "INTERNAL",
|
|
41
|
+
* prefixLength: 16,
|
|
42
|
+
* network: apigeeNetwork.id,
|
|
43
|
+
* project: project.projectId,
|
|
44
|
+
* });
|
|
45
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
46
|
+
* network: apigeeNetwork.id,
|
|
47
|
+
* service: "servicenetworking.googleapis.com",
|
|
48
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
49
|
+
* }, {
|
|
50
|
+
* dependsOn: [servicenetworking],
|
|
51
|
+
* });
|
|
52
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
53
|
+
* analyticsRegion: "us-central1",
|
|
54
|
+
* projectId: project.projectId,
|
|
55
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
56
|
+
* }, {
|
|
57
|
+
* dependsOn: [
|
|
58
|
+
* apigeeVpcConnection,
|
|
59
|
+
* apigee,
|
|
60
|
+
* ],
|
|
61
|
+
* });
|
|
62
|
+
* const apigeeEnvgroup = new gcp.apigee.EnvGroup("apigeeEnvgroup", {
|
|
63
|
+
* orgId: apigeeOrg.id,
|
|
64
|
+
* hostnames: ["abc.foo.com"],
|
|
65
|
+
* });
|
|
66
|
+
* const apigeeEnv = new gcp.apigee.Environment("apigeeEnv", {
|
|
67
|
+
* orgId: apigeeOrg.id,
|
|
68
|
+
* description: "Apigee Environment",
|
|
69
|
+
* displayName: "tf-test",
|
|
70
|
+
* });
|
|
71
|
+
* const envGroupAttachment = new gcp.apigee.EnvGroupAttachment("envGroupAttachment", {
|
|
72
|
+
* envgroupId: apigeeEnvgroup.id,
|
|
73
|
+
* environment: apigeeEnv.name,
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
12
76
|
*
|
|
13
77
|
* ## Import
|
|
14
78
|
*
|
|
@@ -15,6 +15,70 @@ const utilities = require("../utilities");
|
|
|
15
15
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
16
16
|
*
|
|
17
17
|
* ## Example Usage
|
|
18
|
+
* ### Apigee Environment Group Attachment Basic
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as gcp from "@pulumi/gcp";
|
|
23
|
+
*
|
|
24
|
+
* const project = new gcp.organizations.Project("project", {
|
|
25
|
+
* projectId: "tf-test",
|
|
26
|
+
* orgId: "",
|
|
27
|
+
* billingAccount: "",
|
|
28
|
+
* });
|
|
29
|
+
* const apigee = new gcp.projects.Service("apigee", {
|
|
30
|
+
* project: project.projectId,
|
|
31
|
+
* service: "apigee.googleapis.com",
|
|
32
|
+
* });
|
|
33
|
+
* const compute = new gcp.projects.Service("compute", {
|
|
34
|
+
* project: project.projectId,
|
|
35
|
+
* service: "compute.googleapis.com",
|
|
36
|
+
* });
|
|
37
|
+
* const servicenetworking = new gcp.projects.Service("servicenetworking", {
|
|
38
|
+
* project: project.projectId,
|
|
39
|
+
* service: "servicenetworking.googleapis.com",
|
|
40
|
+
* });
|
|
41
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {project: project.projectId}, {
|
|
42
|
+
* dependsOn: [compute],
|
|
43
|
+
* });
|
|
44
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
45
|
+
* purpose: "VPC_PEERING",
|
|
46
|
+
* addressType: "INTERNAL",
|
|
47
|
+
* prefixLength: 16,
|
|
48
|
+
* network: apigeeNetwork.id,
|
|
49
|
+
* project: project.projectId,
|
|
50
|
+
* });
|
|
51
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
52
|
+
* network: apigeeNetwork.id,
|
|
53
|
+
* service: "servicenetworking.googleapis.com",
|
|
54
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
55
|
+
* }, {
|
|
56
|
+
* dependsOn: [servicenetworking],
|
|
57
|
+
* });
|
|
58
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
59
|
+
* analyticsRegion: "us-central1",
|
|
60
|
+
* projectId: project.projectId,
|
|
61
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
62
|
+
* }, {
|
|
63
|
+
* dependsOn: [
|
|
64
|
+
* apigeeVpcConnection,
|
|
65
|
+
* apigee,
|
|
66
|
+
* ],
|
|
67
|
+
* });
|
|
68
|
+
* const apigeeEnvgroup = new gcp.apigee.EnvGroup("apigeeEnvgroup", {
|
|
69
|
+
* orgId: apigeeOrg.id,
|
|
70
|
+
* hostnames: ["abc.foo.com"],
|
|
71
|
+
* });
|
|
72
|
+
* const apigeeEnv = new gcp.apigee.Environment("apigeeEnv", {
|
|
73
|
+
* orgId: apigeeOrg.id,
|
|
74
|
+
* description: "Apigee Environment",
|
|
75
|
+
* displayName: "tf-test",
|
|
76
|
+
* });
|
|
77
|
+
* const envGroupAttachment = new gcp.apigee.EnvGroupAttachment("envGroupAttachment", {
|
|
78
|
+
* envgroupId: apigeeEnvgroup.id,
|
|
79
|
+
* environment: apigeeEnv.name,
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
18
82
|
*
|
|
19
83
|
* ## Import
|
|
20
84
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envGroupAttachment.js","sourceRoot":"","sources":["../../apigee/envGroupAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"envGroupAttachment.js","sourceRoot":"","sources":["../../apigee/envGroupAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IAkDzD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxD,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;IAvED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;;AA1BL,gDAyEC;AA3DG,gBAAgB;AACO,+BAAY,GAAG,kDAAkD,CAAC"}
|
package/apigee/environment.d.ts
CHANGED
|
@@ -9,6 +9,38 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
* ### Apigee Environment Basic
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
19
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
20
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
21
|
+
* purpose: "VPC_PEERING",
|
|
22
|
+
* addressType: "INTERNAL",
|
|
23
|
+
* prefixLength: 16,
|
|
24
|
+
* network: apigeeNetwork.id,
|
|
25
|
+
* });
|
|
26
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
27
|
+
* network: apigeeNetwork.id,
|
|
28
|
+
* service: "servicenetworking.googleapis.com",
|
|
29
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
30
|
+
* });
|
|
31
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
32
|
+
* analyticsRegion: "us-central1",
|
|
33
|
+
* projectId: current.then(current => current.project),
|
|
34
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
35
|
+
* }, {
|
|
36
|
+
* dependsOn: [apigeeVpcConnection],
|
|
37
|
+
* });
|
|
38
|
+
* const env = new gcp.apigee.Environment("env", {
|
|
39
|
+
* description: "Apigee Environment",
|
|
40
|
+
* displayName: "environment-1",
|
|
41
|
+
* orgId: apigeeOrg.id,
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
12
44
|
*
|
|
13
45
|
* ## Import
|
|
14
46
|
*
|
package/apigee/environment.js
CHANGED
|
@@ -15,6 +15,38 @@ const utilities = require("../utilities");
|
|
|
15
15
|
* * [Creating an environment](https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment)
|
|
16
16
|
*
|
|
17
17
|
* ## Example Usage
|
|
18
|
+
* ### Apigee Environment Basic
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as gcp from "@pulumi/gcp";
|
|
23
|
+
*
|
|
24
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
25
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
26
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
27
|
+
* purpose: "VPC_PEERING",
|
|
28
|
+
* addressType: "INTERNAL",
|
|
29
|
+
* prefixLength: 16,
|
|
30
|
+
* network: apigeeNetwork.id,
|
|
31
|
+
* });
|
|
32
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
33
|
+
* network: apigeeNetwork.id,
|
|
34
|
+
* service: "servicenetworking.googleapis.com",
|
|
35
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
36
|
+
* });
|
|
37
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
38
|
+
* analyticsRegion: "us-central1",
|
|
39
|
+
* projectId: current.then(current => current.project),
|
|
40
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
41
|
+
* }, {
|
|
42
|
+
* dependsOn: [apigeeVpcConnection],
|
|
43
|
+
* });
|
|
44
|
+
* const env = new gcp.apigee.Environment("env", {
|
|
45
|
+
* description: "Apigee Environment",
|
|
46
|
+
* displayName: "environment-1",
|
|
47
|
+
* orgId: apigeeOrg.id,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
18
50
|
*
|
|
19
51
|
* ## Import
|
|
20
52
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../apigee/environment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file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AE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAiGC;AAnFG,gBAAgB;AACO,wBAAY,GAAG,oCAAoC,CAAC"}
|
package/apigee/instance.d.ts
CHANGED
|
@@ -9,6 +9,154 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* * [Creating a runtime instance](https://cloud.google.com/apigee/docs/api-platform/get-started/create-instance)
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
|
+
* ### Apigee Instance Basic
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as gcp from "@pulumi/gcp";
|
|
17
|
+
*
|
|
18
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
19
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
20
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
21
|
+
* purpose: "VPC_PEERING",
|
|
22
|
+
* addressType: "INTERNAL",
|
|
23
|
+
* prefixLength: 16,
|
|
24
|
+
* network: apigeeNetwork.id,
|
|
25
|
+
* });
|
|
26
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
27
|
+
* network: apigeeNetwork.id,
|
|
28
|
+
* service: "servicenetworking.googleapis.com",
|
|
29
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
30
|
+
* });
|
|
31
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
32
|
+
* analyticsRegion: "us-central1",
|
|
33
|
+
* projectId: current.then(current => current.project),
|
|
34
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
35
|
+
* }, {
|
|
36
|
+
* dependsOn: [apigeeVpcConnection],
|
|
37
|
+
* });
|
|
38
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
39
|
+
* location: "us-central1",
|
|
40
|
+
* orgId: apigeeOrg.id,
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
* ### Apigee Instance Cidr Range
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as gcp from "@pulumi/gcp";
|
|
48
|
+
*
|
|
49
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
50
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
51
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
52
|
+
* purpose: "VPC_PEERING",
|
|
53
|
+
* addressType: "INTERNAL",
|
|
54
|
+
* prefixLength: 22,
|
|
55
|
+
* network: apigeeNetwork.id,
|
|
56
|
+
* });
|
|
57
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
58
|
+
* network: apigeeNetwork.id,
|
|
59
|
+
* service: "servicenetworking.googleapis.com",
|
|
60
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
61
|
+
* });
|
|
62
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
63
|
+
* analyticsRegion: "us-central1",
|
|
64
|
+
* projectId: current.then(current => current.project),
|
|
65
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
66
|
+
* }, {
|
|
67
|
+
* dependsOn: [apigeeVpcConnection],
|
|
68
|
+
* });
|
|
69
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
70
|
+
* location: "us-central1",
|
|
71
|
+
* orgId: apigeeOrg.id,
|
|
72
|
+
* peeringCidrRange: "SLASH_22",
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
* ### Apigee Instance Ip Range
|
|
76
|
+
*
|
|
77
|
+
* ```typescript
|
|
78
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
79
|
+
* import * as gcp from "@pulumi/gcp";
|
|
80
|
+
*
|
|
81
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
82
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
83
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
84
|
+
* purpose: "VPC_PEERING",
|
|
85
|
+
* addressType: "INTERNAL",
|
|
86
|
+
* prefixLength: 22,
|
|
87
|
+
* network: apigeeNetwork.id,
|
|
88
|
+
* });
|
|
89
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
90
|
+
* network: apigeeNetwork.id,
|
|
91
|
+
* service: "servicenetworking.googleapis.com",
|
|
92
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
93
|
+
* });
|
|
94
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
95
|
+
* analyticsRegion: "us-central1",
|
|
96
|
+
* projectId: current.then(current => current.project),
|
|
97
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
98
|
+
* }, {
|
|
99
|
+
* dependsOn: [apigeeVpcConnection],
|
|
100
|
+
* });
|
|
101
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
102
|
+
* location: "us-central1",
|
|
103
|
+
* orgId: apigeeOrg.id,
|
|
104
|
+
* ipRange: "10.87.8.0/22",
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
* ### Apigee Instance Full
|
|
108
|
+
*
|
|
109
|
+
* ```typescript
|
|
110
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
111
|
+
* import * as gcp from "@pulumi/gcp";
|
|
112
|
+
*
|
|
113
|
+
* const current = gcp.organizations.getClientConfig({});
|
|
114
|
+
* const apigeeNetwork = new gcp.compute.Network("apigeeNetwork", {});
|
|
115
|
+
* const apigeeRange = new gcp.compute.GlobalAddress("apigeeRange", {
|
|
116
|
+
* purpose: "VPC_PEERING",
|
|
117
|
+
* addressType: "INTERNAL",
|
|
118
|
+
* prefixLength: 16,
|
|
119
|
+
* network: apigeeNetwork.id,
|
|
120
|
+
* });
|
|
121
|
+
* const apigeeVpcConnection = new gcp.servicenetworking.Connection("apigeeVpcConnection", {
|
|
122
|
+
* network: apigeeNetwork.id,
|
|
123
|
+
* service: "servicenetworking.googleapis.com",
|
|
124
|
+
* reservedPeeringRanges: [apigeeRange.name],
|
|
125
|
+
* });
|
|
126
|
+
* const apigeeKeyring = new gcp.kms.KeyRing("apigeeKeyring", {location: "us-central1"});
|
|
127
|
+
* const apigeeKey = new gcp.kms.CryptoKey("apigeeKey", {keyRing: apigeeKeyring.id});
|
|
128
|
+
* const apigeeSa = new gcp.projects.ServiceIdentity("apigeeSa", {
|
|
129
|
+
* project: google_project.project.project_id,
|
|
130
|
+
* service: google_project_service.apigee.service,
|
|
131
|
+
* }, {
|
|
132
|
+
* provider: google_beta,
|
|
133
|
+
* });
|
|
134
|
+
* const apigeeSaKeyuser = new gcp.kms.CryptoKeyIAMBinding("apigeeSaKeyuser", {
|
|
135
|
+
* cryptoKeyId: apigeeKey.id,
|
|
136
|
+
* role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
|
|
137
|
+
* members: [pulumi.interpolate`serviceAccount:${apigeeSa.email}`],
|
|
138
|
+
* });
|
|
139
|
+
* const apigeeOrg = new gcp.apigee.Organization("apigeeOrg", {
|
|
140
|
+
* analyticsRegion: "us-central1",
|
|
141
|
+
* displayName: "apigee-org",
|
|
142
|
+
* description: "Auto-provisioned Apigee Org.",
|
|
143
|
+
* projectId: current.then(current => current.project),
|
|
144
|
+
* authorizedNetwork: apigeeNetwork.id,
|
|
145
|
+
* runtimeDatabaseEncryptionKeyName: apigeeKey.id,
|
|
146
|
+
* }, {
|
|
147
|
+
* dependsOn: [
|
|
148
|
+
* apigeeVpcConnection,
|
|
149
|
+
* apigeeSaKeyuser,
|
|
150
|
+
* ],
|
|
151
|
+
* });
|
|
152
|
+
* const apigeeInstance = new gcp.apigee.Instance("apigeeInstance", {
|
|
153
|
+
* location: "us-central1",
|
|
154
|
+
* description: "Auto-managed Apigee Runtime Instance",
|
|
155
|
+
* displayName: "tf-test",
|
|
156
|
+
* orgId: apigeeOrg.id,
|
|
157
|
+
* diskEncryptionKeyName: apigeeKey.id,
|
|
158
|
+
* });
|
|
159
|
+
* ```
|
|
12
160
|
*
|
|
13
161
|
* ## Import
|
|
14
162
|
*
|