Skip to content

Commit

Permalink
Merge branch 'master' into pr/glue-grant-bkt
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 3, 2020
2 parents 4338306 + 028495e commit a3c1bf1
Show file tree
Hide file tree
Showing 237 changed files with 1,605 additions and 897 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/closed-issue-message.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Closed Issue Message
on:
issues:
types: [closed]
jobs:
auto_comment:
runs-on: ubuntu-latest
steps:
- uses: aws-actions/closed-issue-message@v1
with:
# These inputs are both required
repo-token: "${{ secrets.GITHUB_TOKEN }}"
message: |
### ⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.66.0](https://github.com/aws/aws-cdk/compare/v1.65.0...v1.66.0) (2020-10-02)

### Features

* **cfnspec:** cloudformation spec v18.4.0 ([#10493](https://github.com/aws/aws-cdk/issues/10493)) ([fa50369](https://github.com/aws/aws-cdk/commit/fa503692c14a45c130103415114f6818b3d79426))
* **cfnspec:** cloudformation spec v18.5.0 ([#10636](https://github.com/aws/aws-cdk/issues/10636)) ([e99cf63](https://github.com/aws/aws-cdk/commit/e99cf631430ceca0b4fe9920f7189bc8b664acbf))
* **events-targets:** option to provide an existing role to use with the StepFunctions State Machine target ([#10551](https://github.com/aws/aws-cdk/issues/10551)) ([b96efd8](https://github.com/aws/aws-cdk/commit/b96efd8aaa143845b9fe315a9ee1e8398c4d83c2)), closes [#8255](https://github.com/aws/aws-cdk/issues/8255)


### Bug Fixes

* **codebuild:** permissions for Project in VPC used incorrect AWS partition ([#10637](https://github.com/aws/aws-cdk/issues/10637)) ([b207888](https://github.com/aws/aws-cdk/commit/b2078881445850acf4877ffd2cf657cfdfa78e0f)), closes [#10634](https://github.com/aws/aws-cdk/issues/10634)
* **codecommit:** use region given in fromRepositoryArn when creating clone urls ([#10639](https://github.com/aws/aws-cdk/issues/10639)) ([934553c](https://github.com/aws/aws-cdk/commit/934553cae4a9110f9109a978ab92a493f27dbfca)), closes [#10630](https://github.com/aws/aws-cdk/issues/10630)
* **core,cx-api:** docker bundling fails during tests on macOS ([#10620](https://github.com/aws/aws-cdk/issues/10620)) ([0331508](https://github.com/aws/aws-cdk/commit/033150840a4f5bc21f85f0126b125e4f2a31a9bf)), closes [#10262](https://github.com/aws/aws-cdk/issues/10262)

## [1.65.0](https://github.com/aws/aws-cdk/compare/v1.64.1...v1.65.0) (2020-09-30)


Expand Down
4 changes: 2 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"tools/*"
],
"rejectCycles": "true",
"version": "1.65.0"
}
"version": "1.66.0"
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"fs-extra": "^9.0.1",
"graceful-fs": "^4.2.4",
"jest-junit": "^11.1.0",
"jsii-diff": "^1.12.0",
"jsii-pacmak": "^1.12.0",
"jsii-rosetta": "^1.12.0",
"jsii-diff": "^1.13.0",
"jsii-pacmak": "^1.13.0",
"jsii-rosetta": "^1.13.0",
"lerna": "^3.22.1",
"standard-version": "^9.0.0",
"typescript": "~3.9.7"
Expand Down Expand Up @@ -96,4 +96,4 @@
"monocdk-experiment/yaml/**"
]
}
}
}
2 changes: 1 addition & 1 deletion packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@types/nodeunit": "^0.0.31",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"fast-check": "^2.3.0",
"fast-check": "^2.4.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cdk-build-tools": "0.0.0",
"jest": "^26.4.2",
"pkglint": "0.0.0",
"ts-jest": "^26.3.0"
"ts-jest": "^26.4.1"
},
"dependencies": {
"@aws-cdk/cloud-assembly-schema": "0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
"devDependencies": {
"@aws-cdk/assert": "0.0.0",
"@types/nodeunit": "^0.0.31",
"@types/sinon": "^9.0.5",
"@types/sinon": "^9.0.7",
"aws-cdk": "0.0.0",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0",
"sinon": "^9.0.3",
"sinon": "^9.1.0",
"ts-mock-imports": "^1.3.0"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-amplify/lib/app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as codebuild from '@aws-cdk/aws-codebuild';
import * as iam from '@aws-cdk/aws-iam';
import { Construct, IResource, Lazy, Resource, SecretValue } from '@aws-cdk/core';
import { IResource, Lazy, Resource, SecretValue } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnApp } from './amplify.generated';
import { BasicAuth } from './basic-auth';
import { Branch, BranchOptions } from './branch';
Expand Down
8 changes: 6 additions & 2 deletions packages/@aws-cdk/aws-amplify/lib/basic-auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as kms from '@aws-cdk/aws-kms';
import * as secretsmanager from '@aws-cdk/aws-secretsmanager';
import { Construct, SecretValue } from '@aws-cdk/core';
import { SecretValue } from '@aws-cdk/core';

// v2 - keep this import as a separate section to reduce merge conflict when forward merging with the v2 branch.
// eslint-disable-next-line
import { Construct as CoreConstruct } from '@aws-cdk/core';

/**
* Properties for a BasicAuth
Expand Down Expand Up @@ -78,7 +82,7 @@ export class BasicAuth {
/**
* Binds this Basic Auth configuration to an App
*/
public bind(scope: Construct, id: string): BasicAuthConfig {
public bind(scope: CoreConstruct, id: string): BasicAuthConfig {
const config = {
enableBasicAuth: true,
username: this.props.username,
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-amplify/lib/branch.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as codebuild from '@aws-cdk/aws-codebuild';
import { Construct, IResource, Lazy, Resource } from '@aws-cdk/core';
import { IResource, Lazy, Resource } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnBranch } from './amplify.generated';
import { IApp } from './app';
import { BasicAuth } from './basic-auth';
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-amplify/lib/domain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Construct, Lazy, Resource, IResolvable } from '@aws-cdk/core';
import { Lazy, Resource, IResolvable } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnDomain } from './amplify.generated';
import { IApp } from './app';
import { IBranch } from './branch';
Expand Down
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
},
"cdk-build": {
"cloudformation": "AWS::Amplify",
"jest": true
"jest": true,
"env": {
"AWSLINT_BASE_CONSTRUCT": true
}
},
"keywords": [
"aws",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-applicationautoscaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@types/nodeunit": "^0.0.31",
"cdk-build-tools": "0.0.0",
"cfn2ts": "0.0.0",
"fast-check": "^2.3.0",
"fast-check": "^2.4.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
Expand Down
9 changes: 7 additions & 2 deletions packages/@aws-cdk/aws-appsync/lib/data-source.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { ITable } from '@aws-cdk/aws-dynamodb';
import { IGrantable, IPrincipal, IRole, Role, ServicePrincipal } from '@aws-cdk/aws-iam';
import { IFunction } from '@aws-cdk/aws-lambda';
import { Construct, IResolvable } from '@aws-cdk/core';
import { IResolvable } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnDataSource } from './appsync.generated';
import { IGraphqlApi } from './graphqlapi-base';
import { BaseResolverProps, Resolver } from './resolver';

// v2 - keep this import as a separate section to reduce merge conflict when forward merging with the v2 branch.
// eslint-disable-next-line
import { Construct as CoreConstruct } from '@aws-cdk/core';

/**
* Base properties for an AppSync datasource
*/
Expand Down Expand Up @@ -83,7 +88,7 @@ export interface ExtendedDataSourceProps {
/**
* Abstract AppSync datasource implementation. Do not use directly but use subclasses for concrete datasources
*/
export abstract class BaseDataSource extends Construct {
export abstract class BaseDataSource extends CoreConstruct {
/**
* the name of the data source
*/
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-appsync/lib/graphqlapi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IUserPool } from '@aws-cdk/aws-cognito';
import { ManagedPolicy, Role, ServicePrincipal, Grant, IGrantable } from '@aws-cdk/aws-iam';
import { CfnResource, Construct, Duration, Expiration, IResolvable, Stack } from '@aws-cdk/core';
import { CfnResource, Duration, Expiration, IResolvable, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnApiKey, CfnGraphQLApi, CfnGraphQLSchema } from './appsync.generated';
import { IGraphqlApi, GraphqlApiBase } from './graphqlapi-base';
import { Schema } from './schema';
Expand Down
8 changes: 6 additions & 2 deletions packages/@aws-cdk/aws-appsync/lib/resolver.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { Construct } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnResolver } from './appsync.generated';
import { BaseDataSource } from './data-source';
import { IGraphqlApi } from './graphqlapi-base';
import { MappingTemplate } from './mapping-template';

// v2 - keep this import as a separate section to reduce merge conflict when forward merging with the v2 branch.
// eslint-disable-next-line
import { Construct as CoreConstruct } from '@aws-cdk/core';

/**
* Basic properties for an AppSync resolver
*/
Expand Down Expand Up @@ -56,7 +60,7 @@ export interface ResolverProps extends BaseResolverProps {
/**
* An AppSync resolver
*/
export class Resolver extends Construct {
export class Resolver extends CoreConstruct {
/**
* the ARN of the resolver
*/
Expand Down
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
},
"cdk-build": {
"cloudformation": "AWS::AppSync",
"jest": true
"jest": true,
"env": {
"AWSLINT_BASE_CONSTRUCT": true
}
},
"keywords": [
"aws",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-autoscaling-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@types/nodeunit": "^0.0.31",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"fast-check": "^2.3.0",
"fast-check": "^2.4.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-autoscaling-hooktargets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@
},
"maturity": "stable",
"cdk-build": {
"jest": true
"jest": true,
"env": {
"AWSLINT_BASE_CONSTRUCT": true
}
}
}
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-backup/lib/plan.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Construct, IResource, Lazy, Resource } from '@aws-cdk/core';
import { IResource, Lazy, Resource } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnBackupPlan } from './backup.generated';
import { BackupPlanRule } from './rule';
import { BackupSelection, BackupSelectionOptions } from './selection';
Expand Down
11 changes: 8 additions & 3 deletions packages/@aws-cdk/aws-backup/lib/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import * as dynamodb from '@aws-cdk/aws-dynamodb';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as efs from '@aws-cdk/aws-efs';
import * as rds from '@aws-cdk/aws-rds';
import { Construct, Stack } from '@aws-cdk/core';
import { Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';

// v2 - keep this import as a separate section to reduce merge conflict when forward merging with the v2 branch.
// eslint-disable-next-line
import { Construct as CoreConstruct } from '@aws-cdk/core';

/**
* An operation that is applied to a key-value pair
Expand Down Expand Up @@ -129,11 +134,11 @@ export class BackupResource {
/**
* A construct
*/
public readonly construct?: Construct;
public readonly construct?: CoreConstruct;

constructor(resource?: string, tagCondition?: TagCondition, construct?: Construct) {
this.resource = resource;
this.tagCondition = tagCondition;
this.construct = construct;
this.construct = construct as CoreConstruct;
}
}
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-backup/lib/selection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as iam from '@aws-cdk/aws-iam';
import { Construct, Lazy, Resource, Aspects } from '@aws-cdk/core';
import { Lazy, Resource, Aspects } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnBackupSelection } from './backup.generated';
import { BackupableResourcesCollector } from './backupable-resources-collector';
import { IBackupPlan } from './plan';
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-backup/lib/vault.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as iam from '@aws-cdk/aws-iam';
import * as kms from '@aws-cdk/aws-kms';
import * as sns from '@aws-cdk/aws-sns';
import { Construct, IResource, RemovalPolicy, Resource } from '@aws-cdk/core';
import { IResource, RemovalPolicy, Resource } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnBackupVault } from './backup.generated';

/**
Expand Down
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
},
"cdk-build": {
"cloudformation": "AWS::Backup",
"jest": true
"jest": true,
"env": {
"AWSLINT_BASE_CONSTRUCT": true
}
},
"keywords": [
"aws",
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-batch/lib/compute-environment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as ec2 from '@aws-cdk/aws-ec2';
import * as iam from '@aws-cdk/aws-iam';
import { Construct, IResource, Resource, Stack } from '@aws-cdk/core';
import { IResource, Resource, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnComputeEnvironment } from './batch.generated';

/**
Expand Down
12 changes: 8 additions & 4 deletions packages/@aws-cdk/aws-batch/lib/job-definition-image-config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
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 { JobDefinitionContainer } from './job-definition';

// v2 - keep this import as a separate section to reduce merge conflict when forward merging with the v2 branch.
// eslint-disable-next-line
import { Construct as CoreConstruct } from '@aws-cdk/core';

/**
* TaskDefinitionRole
*
Expand Down Expand Up @@ -57,14 +61,14 @@ export class JobDefinitionImageConfig {
*/
public readonly imageName: string;

constructor(scope: cdk.Construct, container: JobDefinitionContainer) {
constructor(scope: Construct, container: JobDefinitionContainer) {
const config = this.bindImageConfig(scope, container);

this.imageName = config.imageName;
}

private bindImageConfig(scope: cdk.Construct, container: JobDefinitionContainer): ecs.ContainerImageConfig {
return container.image.bind(scope, new ecs.ContainerDefinition(scope, 'Resource-Batch-Job-Container-Definition', {
private bindImageConfig(scope: Construct, container: JobDefinitionContainer): ecs.ContainerImageConfig {
return container.image.bind(scope as CoreConstruct, new ecs.ContainerDefinition(scope, 'Resource-Batch-Job-Container-Definition', {
command: container.command,
cpu: container.vcpus,
image: container.image,
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-batch/lib/job-definition.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
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 { Construct, Duration, IResource, Resource, Stack } from '@aws-cdk/core';
import { Duration, IResource, Resource, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnJobDefinition } from './batch.generated';
import { JobDefinitionImageConfig } from './job-definition-image-config';

Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-batch/lib/job-queue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Construct, IResource, Resource, Stack } from '@aws-cdk/core';
import { IResource, Resource, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { CfnJobQueue } from './batch.generated';
import { IComputeEnvironment } from './compute-environment';

Expand Down
5 changes: 4 additions & 1 deletion packages/@aws-cdk/aws-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
},
"cdk-build": {
"cloudformation": "AWS::Batch",
"jest": true
"jest": true,
"env": {
"AWSLINT_BASE_CONSTRUCT": true
}
},
"keywords": [
"aws",
Expand Down
Loading

0 comments on commit a3c1bf1

Please sign in to comment.