Skip to content

Commit

Permalink
Merge branch 'v2-main' into v2/forward-merge-20220421
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr authored Apr 21, 2022
2 parents 10f5ede + 7e1a978 commit 30579fe
Show file tree
Hide file tree
Showing 1,333 changed files with 16,964 additions and 10,401 deletions.
412 changes: 412 additions & 0 deletions CHANGELOG.v2.alpha.md

Large diffs are not rendered by default.

2,019 changes: 2,019 additions & 0 deletions CHANGELOG.v2.md

Large diffs are not rendered by default.

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

2,208 changes: 1,100 additions & 1,108 deletions deprecated_apis.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 {
}
}
}
}
}
Original file line number Diff line number Diff line change
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;
}
}
}
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "17.0.0",
"files": {
"9220951fe280727c8695ca9cd06f929712e6c44319ad69591a87f7ce6a931b6b": {
"source": {
"path": "aws-ecs-integ.template.json",
"packaging": "file"
},
"destinations": {
"current_account-current_region": {
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
"objectKey": "9220951fe280727c8695ca9cd06f929712e6c44319ad69591a87f7ce6a931b6b.json",
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
}
}
}
},
"dockerImages": {}
}
Loading

0 comments on commit 30579fe

Please sign in to comment.