@gradientedge/cdk-utils 8.146.0 → 8.146.1
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.
|
@@ -7,7 +7,6 @@ const cdktf_1 = require("cdktf");
|
|
|
7
7
|
const common_1 = require("../../common");
|
|
8
8
|
const services_1 = require("../services");
|
|
9
9
|
const constants_1 = require("./constants");
|
|
10
|
-
const data_aws_s3_bucket_object_1 = require("@cdktf/provider-aws/lib/data-aws-s3-bucket-object");
|
|
11
10
|
class CommonCloudflareConstruct extends cdktf_1.TerraformStack {
|
|
12
11
|
id;
|
|
13
12
|
fullyQualifiedDomainName;
|
|
@@ -74,13 +73,6 @@ class CommonCloudflareConstruct extends cdktf_1.TerraformStack {
|
|
|
74
73
|
profile: process.env.AWS_PROFILE ?? 'default',
|
|
75
74
|
region: this.props.remoteBackend.region,
|
|
76
75
|
});
|
|
77
|
-
new data_aws_s3_bucket_object_1.DataAwsS3BucketObject(this, `${this.id}-remote-state-ref`, {
|
|
78
|
-
bucket: this.props.remoteBackend.bucketName,
|
|
79
|
-
key: new cdktf_1.DataTerraformRemoteStateS3(this, `${this.id}-remote-state`, {
|
|
80
|
-
bucket: this.props.remoteBackend.bucketName,
|
|
81
|
-
key: `${this.id}`,
|
|
82
|
-
}).getString('bucket_key'),
|
|
83
|
-
});
|
|
84
76
|
break;
|
|
85
77
|
case constants_1.RemoteBackend.local:
|
|
86
78
|
if (debug)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AwsProvider } from '@cdktf/provider-aws/lib/provider'
|
|
2
2
|
import { CloudflareProvider } from '@cdktf/provider-cloudflare/lib/provider'
|
|
3
|
-
import {
|
|
3
|
+
import { S3Backend, TerraformStack, TerraformVariable } from 'cdktf'
|
|
4
4
|
import { Construct } from 'constructs'
|
|
5
5
|
import { isDevStage, isPrdStage, isTestStage, isUatStage } from '../../common'
|
|
6
6
|
import {
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
} from '../services'
|
|
17
17
|
import { RemoteBackend } from './constants'
|
|
18
18
|
import { CommonCloudflareStackProps } from './types'
|
|
19
|
-
import { DataAwsS3BucketObject } from '@cdktf/provider-aws/lib/data-aws-s3-bucket-object'
|
|
20
19
|
|
|
21
20
|
export class CommonCloudflareConstruct extends TerraformStack {
|
|
22
21
|
declare props: CommonCloudflareStackProps
|
|
@@ -92,14 +91,6 @@ export class CommonCloudflareConstruct extends TerraformStack {
|
|
|
92
91
|
profile: process.env.AWS_PROFILE ?? 'default',
|
|
93
92
|
region: this.props.remoteBackend.region,
|
|
94
93
|
})
|
|
95
|
-
new DataAwsS3BucketObject(this, `${this.id}-remote-state-ref`, {
|
|
96
|
-
bucket: this.props.remoteBackend.bucketName,
|
|
97
|
-
key: new DataTerraformRemoteStateS3(this, `${this.id}-remote-state`, {
|
|
98
|
-
bucket: this.props.remoteBackend.bucketName,
|
|
99
|
-
key: `${this.id}`,
|
|
100
|
-
}).getString('bucket_key'),
|
|
101
|
-
})
|
|
102
|
-
|
|
103
94
|
break
|
|
104
95
|
case RemoteBackend.local:
|
|
105
96
|
if (debug) console.debug(`Using local backend for ${this.id}`)
|