Skip to content

Commit

Permalink
v2 merge resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizencc committed Feb 24, 2022
2 parents 52128cf + c8e6ccc commit 8d60dcc
Show file tree
Hide file tree
Showing 779 changed files with 6,854 additions and 6,076 deletions.
350 changes: 350 additions & 0 deletions CHANGELOG.v2.alpha.md

Large diffs are not rendered by default.

1,835 changes: 1,835 additions & 0 deletions CHANGELOG.v2.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions README.md
Expand Up @@ -172,3 +172,4 @@ this capability, please see the
* [Changelog](./CHANGELOG.md)
* [NOTICE](./NOTICE)
* [License](./LICENSE)

2,212 changes: 1,102 additions & 1,110 deletions deprecated_apis.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lerna.json
Expand Up @@ -10,7 +10,7 @@
"packages/@aws-cdk/*/lambda-packages/*",
"tools/*",
"tools/@aws-cdk/*",
"scripts/script-tests",
"scripts/@aws-cdk/script-tests",
"packages/individual-packages/*"
],
"rejectCycles": "true",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -6,7 +6,8 @@
"include": "dependencies/node-version"
},
"scripts": {
"pkglint": "lerna --scope @aws-cdk/pkglint run build && lerna run pkglint",
"pkglint": "lerna run build --scope @aws-cdk/pkglint --include-dependencies && lerna run pkglint",
"prebuild": "node ./scripts/check-yarn-lock.js",
"build": "./build.sh",
"pack": "./pack.sh",
"compat": "./scripts/check-api-compatibility.sh",
Expand Down Expand Up @@ -55,7 +56,7 @@
"release.json",
"scripts/resolve-version.js",
"scripts/resolve-version-lib.js",
"version.v1.json"
"version.v2.json"
],
"cacheBucket": "nozem-artifacts-eu",
"cacheBucketRegion": "eu-west-1"
Expand Down
@@ -1,12 +1,8 @@
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecs from '@aws-cdk/aws-ecs';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import { EnvironmentCapacityType } from './extensions/extension-interfaces';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

/**
* Settings for the environment where you want to deploy your services.
*/
Expand Down Expand Up @@ -98,7 +94,7 @@ export class Environment extends Construct implements IEnvironment {
*/
public readonly capacityType: EnvironmentCapacityType;

private readonly scope: cdk.Construct;
private readonly scope: Construct;

constructor(scope: Construct, id: string, props?: EnvironmentProps) {
super(scope, id);
Expand Down
Expand Up @@ -5,14 +5,11 @@ import * as ecs from '@aws-cdk/aws-ecs';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import * as regionInfo from '@aws-cdk/region-info';
import { Construct } from 'constructs';
import { Service } from '../service';
import { Container } from './container';
import { ServiceExtension, ServiceBuild } from './extension-interfaces';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

// The version of the App Mesh envoy sidecar to add to the task.
const APP_MESH_ENVOY_SIDECAR_VERSION = 'v1.15.1.0-prod';

Expand Down
@@ -1,15 +1,12 @@
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecs from '@aws-cdk/aws-ecs';
import * as route53 from '@aws-cdk/aws-route53';
import { Construct } from 'constructs';
import { Service } from '../../service';
import { Container } from '../container';
import { ServiceExtension, ServiceBuild, EnvironmentCapacityType } from '../extension-interfaces';
import { TaskRecordManager } from './task-record-manager';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

export interface AssignPublicIpExtensionOptions {
/**
* Enable publishing task public IPs to a recordset in a Route 53 hosted zone.
Expand Down
Expand Up @@ -10,10 +10,7 @@ import * as route53 from '@aws-cdk/aws-route53';
import * as sqs from '@aws-cdk/aws-sqs';
import * as cdk from '@aws-cdk/core';
import * as customresources from '@aws-cdk/custom-resources';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';
import { Construct } from 'constructs';

export interface TaskRecordManagerProps {
service: ecs.Ec2Service | ecs.FargateService;
Expand Down
@@ -1,12 +1,9 @@
import * as ecs from '@aws-cdk/aws-ecs';
import * as iam from '@aws-cdk/aws-iam';
import { Construct } from 'constructs';
import { Service } from '../service';
import { ServiceExtension } from './extension-interfaces';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

const CLOUDWATCH_AGENT_IMAGE = 'amazon/cloudwatch-agent:latest';

/**
Expand Down
Expand Up @@ -2,13 +2,10 @@ import * as ecs from '@aws-cdk/aws-ecs';
import * as awslogs from '@aws-cdk/aws-logs';
import * as cdk from '@aws-cdk/core';
import * as cxapi from '@aws-cdk/cx-api';
import { Construct, Node } from 'constructs';
import { Service } from '../service';
import { ServiceExtension } from './extension-interfaces';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

/**
* Setting for the main application container of a service.
*/
Expand Down Expand Up @@ -112,7 +109,7 @@ export class Container extends ServiceExtension {
// If no observability extensions have been added to the service description then we can configure the `awslogs` log driver
if (!containerProps.logging) {
// Create a log group for the service if one is not provided by the user (only if feature flag is set)
if (!this.logGroup && this.parentService.node.tryGetContext(cxapi.ECS_SERVICE_EXTENSIONS_ENABLE_DEFAULT_LOG_DRIVER)) {
if (!this.logGroup && Node.of(this.parentService).tryGetContext(cxapi.ECS_SERVICE_EXTENSIONS_ENABLE_DEFAULT_LOG_DRIVER)) {
this.logGroup = new awslogs.LogGroup(this.scope, `${this.parentService.id}-logs`, {
logGroupName: `${this.parentService.id}-logs`,
removalPolicy: cdk.RemovalPolicy.DESTROY,
Expand Down
@@ -1,10 +1,7 @@
import * as ecs from '@aws-cdk/aws-ecs';
import * as cdk from '@aws-cdk/core';
import { Service, ConnectToProps } from '../service';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';
import { Construct } from 'constructs';

/**
* The types of capacity that are supported. These capacity types may change the
Expand Down Expand Up @@ -115,7 +112,7 @@ export abstract class ServiceExtension {
* the extension is told what Service it is now working on.
*/
protected parentService!: Service;
protected scope!: cdk.Construct;
protected scope!: Construct;

// A list of other extensions which want to mutate the
// container definition for this extension.
Expand Down
@@ -1,14 +1,11 @@
import * as ecs from '@aws-cdk/aws-ecs';
import * as awslogs from '@aws-cdk/aws-logs';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Service } from '../service';
import { Container } from './container';
import { ContainerMutatingHook, ServiceExtension } from './extension-interfaces';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

/**
* Settings for the hook which mutates the application container
* to route logs through FireLens.
Expand Down
@@ -1,19 +1,17 @@
import * as ecs from '@aws-cdk/aws-ecs';
import * as alb from '@aws-cdk/aws-elasticloadbalancingv2';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Service } from '../service';
import { ServiceExtension, ServiceBuild } from './extension-interfaces';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

export interface HttpLoadBalancerProps {
/**
* The number of ALB requests per target.
*/
readonly requestsPerTarget?: number;
}

/**
* This extension add a public facing load balancer for sending traffic
* to one or more replicas of the application container.
Expand Down
Expand Up @@ -6,7 +6,7 @@ import { ContainerMutatingHook, ServiceExtension } from './extension-interfaces'

// Keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';
import { Construct } from 'constructs';

/**
* An interface that will be implemented by all the resources that can be published events or written data to.
Expand Down Expand Up @@ -151,4 +151,4 @@ export class InjecterExtension extends ServiceExtension {
}
}
}
}
}
Expand Up @@ -10,14 +10,11 @@ import * as sns from '@aws-cdk/aws-sns';
import * as subscription from '@aws-cdk/aws-sns-subscriptions';
import * as sqs from '@aws-cdk/aws-sqs';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Service } from '../../service';
import { Container } from '../container';
import { ContainerMutatingHook, ServiceExtension } from '../extension-interfaces';

// Keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

/**
* An interface that will be implemented by all the resources that can be subscribed to.
*/
Expand Down Expand Up @@ -415,4 +412,4 @@ export class QueueExtension extends ServiceExtension {
public get autoscalingOptions() : QueueAutoScalingOptions | undefined {
return this._autoscalingOptions;
}
}
}
@@ -1,13 +1,10 @@
import * as ecs from '@aws-cdk/aws-ecs';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import { Construct } from 'constructs';
import { Service } from '../service';
import { ServiceExtension } from './extension-interfaces';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';

const XRAY_DAEMON_IMAGE = 'amazon/aws-xray-daemon:latest';

/**
Expand Down
@@ -1,14 +1,13 @@
import * as ec2 from '@aws-cdk/aws-ec2';
import * as ecs from '@aws-cdk/aws-ecs';
import * as iam from '@aws-cdk/aws-iam';
import * as cdk from '@aws-cdk/core';
import { IEnvironment } from './environment';
import { EnvironmentCapacityType, ServiceBuild } from './extensions/extension-interfaces';
import { ServiceDescription } from './service-description';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';
import { Construct } from 'constructs';

/**
* connectToProps will have all the extra parameters which are required for connecting services.
Expand Down Expand Up @@ -149,7 +148,7 @@ export class Service extends Construct {
*/
private urls: Record<string, string> = {};

private readonly scope: cdk.Construct;
private readonly scope: Construct;

constructor(scope: Construct, id: string, props: ServiceProps) {
super(scope, id);
Expand Down
@@ -1,6 +1,7 @@
{
"name": "@aws-cdk-containers/ecs-service-extensions",
"version": "0.0.0",
"private": true,
"description": "The CDK Construct Library that helps you build ECS services using simple extensions",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -72,7 +73,7 @@
"@aws-cdk/custom-resources": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"@aws-cdk/region-info": "0.0.0",
"constructs": "^3.3.69"
"constructs": "^10.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
Expand Down Expand Up @@ -101,10 +102,10 @@
"@aws-cdk/custom-resources": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"@aws-cdk/region-info": "0.0.0",
"constructs": "^3.3.69"
"constructs": "^10.0.0"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"awscdkio": {
"announce": false
Expand Down
7 changes: 4 additions & 3 deletions packages/@aws-cdk/alexa-ask/package.json
@@ -1,6 +1,7 @@
{
"name": "@aws-cdk/alexa-ask",
"version": "0.0.0",
"private": true,
"description": "The CDK Construct Library for Alexa::ASK",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -88,14 +89,14 @@
},
"dependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.3.69"
"constructs": "^10.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.3.69"
"constructs": "^10.0.0"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "experimental",
"maturity": "cfn-only",
Expand Down
Expand Up @@ -5,10 +5,7 @@ import * as events from '@aws-cdk/aws-events';
import * as iam from '@aws-cdk/aws-iam';
import * as cxschema from '@aws-cdk/cloud-assembly-schema';
import * as cdk from '@aws-cdk/core';

// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
// eslint-disable-next-line no-duplicate-imports, import/order
import { Construct } from '@aws-cdk/core';
import { Construct } from 'constructs';

export interface PipelineDeployStackActionProps {
/**
Expand Down
9 changes: 5 additions & 4 deletions packages/@aws-cdk/app-delivery/package.json
Expand Up @@ -2,6 +2,7 @@
"name": "@aws-cdk/app-delivery",
"description": "Continuous Integration / Continuous Delivery for CDK Applications",
"deprecated": "Use the @aws-cdk/pipelines module instead",
"private": true,
"version": "0.0.0",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -64,7 +65,7 @@
"@aws-cdk/cloud-assembly-schema": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^3.3.69"
"constructs": "^10.0.0"
},
"devDependencies": {
"@aws-cdk/assertions": "0.0.0",
Expand Down Expand Up @@ -102,10 +103,10 @@
"@aws-cdk/cloud-assembly-schema": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^3.3.69"
"constructs": "^10.0.0"
},
"engines": {
"node": ">= 10.13.0 <13 || >=13.7.0"
"node": ">= 14.15.0"
},
"stability": "deprecated",
"maturity": "deprecated",
Expand All @@ -125,6 +126,6 @@
"announce": false
},
"publishConfig": {
"tag": "latest"
"tag": "next"
}
}

0 comments on commit 8d60dcc

Please sign in to comment.