Skip to content

Commit

Permalink
Merge branch 'master' into peterwoodworth/arnFix
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Mar 29, 2022
2 parents 3aa258a + 431fa03 commit 9b2b0d7
Show file tree
Hide file tree
Showing 206 changed files with 2,016 additions and 257 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name: pr-labeler
on:
pull_request:
pull_request_target:
types:
- opened
- edited
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yarn-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
}}/upgrade.patch || echo "Empty patch. Skipping."'

- name: Make Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
with:
# Git commit details
branch: automation/yarn-upgrade
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

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.150.0](https://github.com/aws/aws-cdk/compare/v1.149.0...v1.150.0) (2022-03-26)


### Features

* cloudformation spec v62.0.0 ([#19553](https://github.com/aws/aws-cdk/issues/19553)) ([0352dee](https://github.com/aws/aws-cdk/commit/0352deedb445f070ed0cd27406a75872fb71ea53))
* **appsync:** support custom domain mappings ([#19368](https://github.com/aws/aws-cdk/issues/19368)) ([8c7a4ac](https://github.com/aws/aws-cdk/commit/8c7a4acbd58975a8f1c4e4ca180ca9a3ea2c750d)), closes [#18040](https://github.com/aws/aws-cdk/issues/18040)
* **autoscaling:** support warm pools ([#19214](https://github.com/aws/aws-cdk/issues/19214)) ([737e611](https://github.com/aws/aws-cdk/commit/737e611577c97b6ad01eaeb05fc544258a9de5ad))
* **cfnspec:** cloudformation spec v61.0.0 ([#19457](https://github.com/aws/aws-cdk/issues/19457)) ([16d7552](https://github.com/aws/aws-cdk/commit/16d7552683ea05ea1a24b214b925836dcb72871d))
* **cli:** support SSO ([#19454](https://github.com/aws/aws-cdk/issues/19454)) ([eba6052](https://github.com/aws/aws-cdk/commit/eba6052e1c8011d7163c782e669e86f5d2fd44d0))
* **cloudwatch:** Additional Properties for Cloudwatch AlarmStatusWidget ([#19387](https://github.com/aws/aws-cdk/issues/19387)) ([3c9ea5f](https://github.com/aws/aws-cdk/commit/3c9ea5f31e3113fb0d2ba5c633fcd665294a70eb)), closes [#19386](https://github.com/aws/aws-cdk/issues/19386)
* **ec2:** add support for x2iezn instances ([#19517](https://github.com/aws/aws-cdk/issues/19517)) ([8f6e20e](https://github.com/aws/aws-cdk/commit/8f6e20e5a070fc3ac2c234013b915315a0e7dcfb))
* **synthetics:** add support for puppeteer 3.4 runtime ([#19429](https://github.com/aws/aws-cdk/issues/19429)) ([024b890](https://github.com/aws/aws-cdk/commit/024b890c67392e255ea8e82c1aa58bcc6bcf6f86)), closes [#19382](https://github.com/aws/aws-cdk/issues/19382)


### Bug Fixes

* **apigateway:** `StepFunctionsIntegration` does not create required role and responses ([#19486](https://github.com/aws/aws-cdk/issues/19486)) ([d59bee9](https://github.com/aws/aws-cdk/commit/d59bee99768b20427503853eb2ec436959ae7e6f))
* **bootstrap:** rebootstrap breaks container Functions ([#19446](https://github.com/aws/aws-cdk/issues/19446)) ([49ea263](https://github.com/aws/aws-cdk/commit/49ea26304760801e03dae5479ae03540eaa63f6e)), closes [#18473](https://github.com/aws/aws-cdk/issues/18473)
* **cli:** templates don't include `.gitignore` ([#19482](https://github.com/aws/aws-cdk/issues/19482)) ([5ce0983](https://github.com/aws/aws-cdk/commit/5ce0983955628c5119340d659abf0201da58bcb6))
* **core:** Aspects from symlinked modules are not applied ([#19491](https://github.com/aws/aws-cdk/issues/19491)) ([eaeaed7](https://github.com/aws/aws-cdk/commit/eaeaed7a508cdb9c84c96911327b085e907aed98)), closes [#18921](https://github.com/aws/aws-cdk/issues/18921) [#18778](https://github.com/aws/aws-cdk/issues/18778) [#19390](https://github.com/aws/aws-cdk/issues/19390) [#18914](https://github.com/aws/aws-cdk/issues/18914)
* **ecr:** setting imageScanningConfiguration to false does nothing on existing repository ([#18078](https://github.com/aws/aws-cdk/issues/18078)) ([78bc870](https://github.com/aws/aws-cdk/commit/78bc8703bb932822ceeb16fd57fa576714aa5732)), closes [#18077](https://github.com/aws/aws-cdk/issues/18077)
* **events:** cannot have more than one cross-account Rule ([#19441](https://github.com/aws/aws-cdk/issues/19441)) ([a257846](https://github.com/aws/aws-cdk/commit/a2578462119d112c6095e06668add97e7721d570)), closes [#12479](https://github.com/aws/aws-cdk/issues/12479) [#12538](https://github.com/aws/aws-cdk/issues/12538)
* **iam:** IAM Policies are too large to deploy ([#19114](https://github.com/aws/aws-cdk/issues/19114)) ([3a4fe33](https://github.com/aws/aws-cdk/commit/3a4fe3304ba32bc205cbf4833f7397f633cc1ece)), closes [#18774](https://github.com/aws/aws-cdk/issues/18774) [#16350](https://github.com/aws/aws-cdk/issues/16350) [#18457](https://github.com/aws/aws-cdk/issues/18457) [#18564](https://github.com/aws/aws-cdk/issues/18564) [#19276](https://github.com/aws/aws-cdk/issues/19276)
* **lambda:** support Lambda's new `Invoke` with `Qualifier` authorization strategy ([#19318](https://github.com/aws/aws-cdk/issues/19318)) ([d06b27f](https://github.com/aws/aws-cdk/commit/d06b27fd4bf351cc9ba5c603352f756c679c34fc)), closes [#19273](https://github.com/aws/aws-cdk/issues/19273)
* **secretsmanager:** secret rotation uses old application versions ([#19490](https://github.com/aws/aws-cdk/issues/19490)) ([0c983ad](https://github.com/aws/aws-cdk/commit/0c983ad748fa57c0717d9bdf852051046f88b3a9)), closes [#19487](https://github.com/aws/aws-cdk/issues/19487)

## [1.149.0](https://github.com/aws/aws-cdk/compare/v1.148.0...v1.149.0) (2022-03-17)


Expand Down
10 changes: 10 additions & 0 deletions packages/@aws-cdk/aws-cognito/lib/user-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,14 @@ export interface UserPoolProps {
*/
readonly smsRoleExternalId?: string;

/**
* The region to integrate with SNS to send SMS messages
*
* This property will do nothing if SMS configuration is not configured
* @default - The same region as the user pool, with a few exceptions - https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html#user-pool-sms-settings-first-time
*/
readonly snsRegion?: string;

/**
* Setting this would explicitly enable or disable SMS role creation.
* When left unspecified, CDK will determine based on other properties if a role is needed or not.
Expand Down Expand Up @@ -1032,6 +1040,7 @@ export class UserPool extends UserPoolBase {
return {
snsCallerArn: props.smsRole.roleArn,
externalId: props.smsRoleExternalId,
snsRegion: props.snsRegion,
};
}

Expand Down Expand Up @@ -1072,6 +1081,7 @@ export class UserPool extends UserPoolBase {
return {
externalId: smsRoleExternalId,
snsCallerArn: smsRole.roleArn,
snsRegion: props.snsRegion,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,9 @@
"myuserpoolsmsRole0E16FDD9",
"Arn"
]
},
"SnsRegion": {
"Ref": "AWS::Region"
}
},
"SmsVerificationMessage": "verification sms message from the integ test. Code is {####}.",
Expand All @@ -850,7 +853,7 @@
"myuserpoolmyuserpooldomainEE1E11AF": {
"Type": "AWS::Cognito::UserPoolDomain",
"Properties": {
"Domain": "myawesomeapp",
"Domain": "cdkintegrationtestuserpoolexplicitprops",
"UserPoolId": {
"Ref": "myuserpool01998219"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ const userpool = new UserPool(stack, 'myuserpool', {
userMigration: dummyTrigger('userMigration'),
verifyAuthChallengeResponse: dummyTrigger('verifyAuthChallengeResponse'),
},
snsRegion: Stack.of(stack).region,
});

const cognitoDomain = userpool.addDomain('myuserpooldomain', {
cognitoDomain: {
domainPrefix: 'myawesomeapp',
domainPrefix: 'cdkintegrationtestuserpoolexplicitprops',
},
});

Expand Down
22 changes: 22 additions & 0 deletions packages/@aws-cdk/aws-cognito/test/user-pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,28 @@ describe('User Pool', () => {
});
});

test('snsRegion property is recognized', () => {
// GIVEN
const stack = new Stack();
const role = Role.fromRoleArn(stack, 'smsRole', 'arn:aws:iam::664773442901:role/sms-role');

// WHEN
new UserPool(stack, 'Pool', {
smsRole: role,
smsRoleExternalId: 'test-external-id',
snsRegion: 'test-region-1',
});

// THEN
Template.fromStack(stack).hasResourceProperties('AWS::Cognito::UserPool', {
SmsConfiguration: {
ExternalId: 'test-external-id',
SnsCallerArn: role.roleArn,
SnsRegion: 'test-region-1',
},
});
});

test('import using id', () => {
// GIVEN
const stack = new Stack(undefined, undefined, {
Expand Down
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-lambda/lib/function-hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const VERSION_LOCKED: { [key: string]: boolean } = {
DeadLetterConfig: true,
Description: true,
Environment: true,
EphemeralStorage: true,
FileSystemConfigs: true,
FunctionName: true,
Handler: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface LambdaInvokeProps extends sfn.TaskStateBaseProps {
* directly as the `lambdaFunction` argument.
*
* @default - Version or alias inherent to the `lambdaFunction` object.
* @deprecated pass a Version or Alias object as lambdaFunction instead
*/
readonly qualifier?: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface RunLambdaTaskProps {
* Version or alias of the function to be invoked
*
* @default - No qualifier
* @deprecated pass a Version or Alias object as lambdaFunction instead
*/
readonly qualifier?: string;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as lambda from '@aws-cdk/aws-lambda';
import * as sfn from '@aws-cdk/aws-stepfunctions';
import { Stack } from '@aws-cdk/core';
import { LambdaInvocationType, LambdaInvoke } from '../../lib';
import { testDeprecated } from '@aws-cdk/cdk-build-tools';

/* eslint-disable quote-props */

Expand Down Expand Up @@ -66,7 +67,7 @@ describe('LambdaInvoke', () => {
});
});

test('optional settings', () => {
testDeprecated('optional settings', () => {
// WHEN
const task = new LambdaInvoke(stack, 'Task', {
lambdaFunction,
Expand Down Expand Up @@ -163,7 +164,7 @@ describe('LambdaInvoke', () => {
}));
});

test('invoke Lambda function and wait for task token', () => {
testDeprecated('invoke Lambda function and wait for task token', () => {
// GIVEN
const task = new LambdaInvoke(stack, 'Task', {
lambdaFunction,
Expand Down Expand Up @@ -360,7 +361,7 @@ describe('LambdaInvoke', () => {
}).toThrow(/The 'payloadResponseOnly' property cannot be used if 'integrationPattern', 'invocationType', 'clientContext', or 'qualifier' are specified./);
});

test('fails when qualifier used with payloadResponseOnly', () => {
testDeprecated('fails when qualifier used with payloadResponseOnly', () => {
expect(() => {
new LambdaInvoke(stack, 'Task', {
lambdaFunction,
Expand Down
51 changes: 51 additions & 0 deletions packages/@aws-cdk/cfnspec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
# CloudFormation Resource Specification v62.0.0

## New Resource Types

* AWS::FSx::Snapshot
* AWS::FSx::StorageVirtualMachine
* AWS::FSx::Volume
* AWS::IoTEvents::AlarmModel

## Attribute Changes


## Property Changes

* AWS::DocDB::DBInstance EnablePerformanceInsights (__added__)
* AWS::Lambda::Function EphemeralStorage (__added__)
* AWS::Lambda::Permission PrincipalOrgID (__added__)
* AWS::Lex::Bot TestBotAliasSettings (__added__)

## Property Type Changes

* AWS::DevOpsGuru::ResourceCollection.TagCollection (__added__)
* AWS::EC2::LaunchTemplate.Ipv4PrefixSpecification (__added__)
* AWS::EC2::LaunchTemplate.Ipv6PrefixSpecification (__added__)
* AWS::Lambda::Function.EphemeralStorage (__added__)
* AWS::Lex::Bot.AdvancedRecognitionSetting (__added__)
* AWS::Lex::Bot.AudioLogDestination (__added__)
* AWS::Lex::Bot.AudioLogSetting (__added__)
* AWS::Lex::Bot.BotAliasLocaleSettings (__added__)
* AWS::Lex::Bot.BotAliasLocaleSettingsItem (__added__)
* AWS::Lex::Bot.CloudWatchLogGroupLogDestination (__added__)
* AWS::Lex::Bot.CodeHookSpecification (__added__)
* AWS::Lex::Bot.ConversationLogSettings (__added__)
* AWS::Lex::Bot.CustomVocabulary (__added__)
* AWS::Lex::Bot.CustomVocabularyItem (__added__)
* AWS::Lex::Bot.LambdaCodeHook (__added__)
* AWS::Lex::Bot.S3BucketLogDestination (__added__)
* AWS::Lex::Bot.TestBotAliasSettings (__added__)
* AWS::Lex::Bot.TextLogDestination (__added__)
* AWS::Lex::Bot.TextLogSetting (__added__)
* AWS::MediaPackage::OriginEndpoint.EncryptionContractConfiguration (__added__)
* AWS::DevOpsGuru::ResourceCollection.ResourceCollectionFilter Tags (__added__)
* AWS::EC2::LaunchTemplate.NetworkInterface Ipv4PrefixCount (__added__)
* AWS::EC2::LaunchTemplate.NetworkInterface Ipv4Prefixes (__added__)
* AWS::EC2::LaunchTemplate.NetworkInterface Ipv6PrefixCount (__added__)
* AWS::EC2::LaunchTemplate.NetworkInterface Ipv6Prefixes (__added__)
* AWS::Lex::Bot.BotLocale CustomVocabulary (__added__)
* AWS::Lex::Bot.SlotValueSelectionSetting AdvancedRecognitionSetting (__added__)
* AWS::MediaPackage::OriginEndpoint.SpekeKeyProvider EncryptionContractConfiguration (__added__)


# CloudFormation Resource Specification v61.0.0

## New Resource Types
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cfnspec/cfn.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
61.0.0
62.0.0
Loading

0 comments on commit 9b2b0d7

Please sign in to comment.