Skip to content

Commit 8ed8167

Browse files
team-tf-cdkansgarm
authored andcommitted
chore: self mutation
Signed-off-by: team-tf-cdk <[email protected]>
1 parent 3cefcff commit 8ed8167

File tree

1,313 files changed

+6563
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,313 files changed

+6563
-0
lines changed

.projen/jest-snapshot-resolver.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { CdktfAwsCdkProject } from "./projen";
27

38
const project = new CdktfAwsCdkProject({

examples/typescript-cron-lambda/jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
/*
27
* For a detailed explanation regarding each configuration property, visit:
38
* https://jestjs.io/docs/configuration
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# Copyright (c) HashiCorp, Inc.
2+
# SPDX-License-Identifier: MPL-2.0
3+
14
def main(event, context):
25
print("I'm running!")

examples/typescript-cron-lambda/main.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Testing } from "cdktf";
27
import "cdktf/lib/testing/adapters/jest";
38
import { CronLambdaStack } from "./main";

examples/typescript-cron-lambda/main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Construct } from "constructs";
27
import { App, TerraformStack, TerraformVariable } from "cdktf";
38
import * as fs from "fs";
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const cdktf = require("cdktf");
27
cdktf.Testing.setupJest();

examples/typescript-manual-mapping/jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
/*
27
* For a detailed explanation regarding each configuration property, visit:
38
* https://jestjs.io/docs/configuration

examples/typescript-manual-mapping/main.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Testing } from "cdktf";
27
import "cdktf/lib/testing/adapters/jest";
38
import { MyStack } from "./main";

examples/typescript-manual-mapping/main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Construct } from "constructs";
27
import { App, TerraformStack } from "cdktf";
38
import { aws_dynamodb, CfnOutput } from "aws-cdk-lib";
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const cdktf = require("cdktf");
27
cdktf.Testing.setupJest();

examples/typescript-step-functions-mixed/cdktf-plus/aws-iam.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// source: https://github.com/cdktf-plus/cdktf-plus/blob/586aabad3ab2fb2a2e93e05ed33f94474ebe9397/packages/%40cdktf-plus/aws/lib/aws-iam/index.ts
27
import { PolicyStatement } from 'iam-floyd';
38
import { Construct } from 'constructs';

examples/typescript-step-functions-mixed/cdktf-plus/aws-lambda-function.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// source: https://github.com/cdktf-plus/cdktf-plus/blob/586aabad3ab2fb2a2e93e05ed33f94474ebe9397/packages/%40cdktf-plus/aws/lib/aws-lambda-function/index.ts
27
import { Construct, Node } from 'constructs';
38
import { IResolveContext, Lazy, TerraformOutput } from 'cdktf';

examples/typescript-step-functions-mixed/cdktf-plus/nodejs-function.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// source: https://github.com/cdktf-plus/cdktf-plus/blob/586aabad3ab2fb2a2e93e05ed33f94474ebe9397/packages/%40cdktf-plus/aws/lib/nodejs-function/index.ts
27
import * as path from 'path';
38
import { TerraformAsset, AssetType } from 'cdktf';
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const generate = () => Math.random().toString(36).substring(7);
27

38
export const handler = async () => ({ value: generate() });
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
export const handler = async (state: { value: string }) => ({
27
value: state.value.split("").reverse().join(""),
38
});

examples/typescript-step-functions-mixed/jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
/*
27
* For a detailed explanation regarding each configuration property, visit:
38
* https://jestjs.io/docs/configuration

examples/typescript-step-functions-mixed/main.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Testing } from "cdktf";
27
import "cdktf/lib/testing/adapters/jest";
38
import { StepFunctionsStack } from "./main";

examples/typescript-step-functions-mixed/main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Construct } from "constructs";
27
import { App, TerraformStack } from "cdktf";
38
import {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const cdktf = require("cdktf");
27
cdktf.Testing.setupJest();

examples/typescript-step-functions/jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
/*
27
* For a detailed explanation regarding each configuration property, visit:
38
* https://jestjs.io/docs/configuration

examples/typescript-step-functions/main.test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Testing } from "cdktf";
27
import "cdktf/lib/testing/adapters/jest";
38
import { StepFunctionsStack } from "./main";

examples/typescript-step-functions/main.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { Construct } from "constructs";
27
import { App, Fn, TerraformOutput, TerraformStack } from "cdktf";
38
import {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const cdktf = require("cdktf");
27
cdktf.Testing.setupJest();

projen/auto-merge.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { javascript } from 'projen';
27

38
/**

projen/cdktf-config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { JsonFile, cdk } from "projen";
27

38
const CDKTF_JSON_FILE = "cdktf.json";

projen/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
/* eslint-disable @typescript-eslint/no-require-imports */
27
import { cdk } from "projen";
38
import { JobStep } from "projen/lib/github/workflows-model";

projen/lock-issues.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { javascript } from "projen";
27
import { JobPermission } from "projen/lib/github/workflows-model";
38

projen/provider-upgrade.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
import { javascript } from "projen";
27
import { JobPermission } from "projen/lib/github/workflows-model";
38

projen/semver.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const ALLOWED_MODES = ['~', '^'];
27

38
export class Semver {

scripts/update-supported-types.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const path = require("path");
27
const fs = require("fs");
38
const {

setupJest.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
const cdktf = require("cdktf");
27
cdktf.Testing.setupJest();

src/aws-adapter.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// originally from https://github.com/skorfmann/cfn2tf/blob/6ff9f366462b270229b7415f68c13a7bea28c144/aws-adapter.ts
27

38
import { Construct } from "constructs";

src/aws/accessanalyzer-analyzer/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/accessanalyzer_analyzer
27
// generated from terraform resource schema
38

src/aws/account-alternate-contact/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/account_alternate_contact
27
// generated from terraform resource schema
38

src/aws/acm-certificate-validation/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/acm_certificate_validation
27
// generated from terraform resource schema
38

src/aws/acm-certificate/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/acm_certificate
27
// generated from terraform resource schema
38

src/aws/acmpca-certificate-authority-certificate/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/acmpca_certificate_authority_certificate
27
// generated from terraform resource schema
38

src/aws/acmpca-certificate-authority/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/acmpca_certificate_authority
27
// generated from terraform resource schema
38

src/aws/acmpca-certificate/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/acmpca_certificate
27
// generated from terraform resource schema
38

src/aws/alb-listener-certificate/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/alb_listener_certificate
27
// generated from terraform resource schema
38

src/aws/alb-listener-rule/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/alb_listener_rule
27
// generated from terraform resource schema
38

src/aws/alb-listener/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/alb_listener
27
// generated from terraform resource schema
38

src/aws/alb-target-group-attachment/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/alb_target_group_attachment
27
// generated from terraform resource schema
38

src/aws/alb-target-group/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
// https://www.terraform.io/docs/providers/aws/r/alb_target_group
27
// generated from terraform resource schema
38

0 commit comments

Comments
 (0)