Skip to content

Commit

Permalink
Upgrade CDK infrastructure to CDK 2 (#1214)
Browse files Browse the repository at this point in the history
* Upgrade EKS integ test infrastructure to CDK 2

* Upgrade ci-cdk to CDK 2
  • Loading branch information
jdisanti authored Feb 22, 2022
1 parent 0a7d052 commit 458b413
Show file tree
Hide file tree
Showing 17 changed files with 5,929 additions and 33,001 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env node
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from '@aws-cdk/core';
import { App } from "aws-cdk-lib";
import { EksCredentialsStack } from '../lib/eks-credentials-stack';

const app = new cdk.App();
const app = new App();
new EksCredentialsStack(app, 'EksCredentialsStack', {
/* If you don't specify 'env', this stack will be environment-agnostic.
* Account/Region-dependent features and context lookups will not work,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
{
"app": "npx ts-node --prefer-ts-exts bin/eks-credentials.ts",
"context": {
"@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true,
"@aws-cdk/core:enableStackNameDuplicates": "true",
"aws-cdk:enableDiffNoFail": "true",
"@aws-cdk/core:stackRelativeExports": "true",
"@aws-cdk/aws-ecr-assets:dockerIgnoreSupport": true,
"@aws-cdk/aws-secretsmanager:parseOwnedSecretName": true,
"@aws-cdk/aws-kms:defaultKeyPolicies": true,
"@aws-cdk/aws-s3:grantWriteWithoutAcl": true,
"@aws-cdk/aws-ecs-patterns:removeDefaultDesiredCount": true,
"@aws-cdk/aws-rds:lowercaseDbIdentifier": true,
"@aws-cdk/aws-efs:defaultEncryptionAtRest": true,
"@aws-cdk/aws-lambda:recognizeVersionProps": true,
"@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
* SPDX-License-Identifier: Apache-2.0.
*/

import * as cdk from '@aws-cdk/core';
import * as eks from '@aws-cdk/aws-eks';
import * as dynamodb from '@aws-cdk/aws-dynamodb';
export class EksCredentialsStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
import { Stack, StackProps } from "aws-cdk-lib";
import * as eks from "aws-cdk-lib/aws-eks";
import * as dynamodb from "aws-cdk-lib/aws-dynamodb";
import { Construct } from "constructs";

export class EksCredentialsStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);


Expand Down
Loading

0 comments on commit 458b413

Please sign in to comment.