Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): 1.151.0 #19669

Merged
merged 18 commits into from
Apr 1, 2022
Merged

chore(release): 1.151.0 #19669

merged 18 commits into from
Apr 1, 2022

Commits on Mar 31, 2022

  1. fix(apigateway): id in schema model maps to $id (#15113)

    If we specify the `id` field when defining an Api Gateway Model's schema, it gets mapped to a `$id` key, which creates an invalid model because it doesn't comply with the DRAFT-04 specification. The specification requires this field to remain named as `id`.
    
    fixes #14585
    
    
    ----
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    jihndai authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    ac5a345 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff85fd1 View commit details
    Browse the repository at this point in the history
  3. feat(lambda): warn if you use function.grantInvoke while also using…

    … `currentVersion` (#19464)
    
    ‼️ Lambda is changing their authorization strategy, which means that some behavior that was previously valid now results in `access-denied` errors.
    
    Under the new behavior, customer lambda invocations will fail if the CDK generates a policy with an unqualified ARN as the resource, and the customer invokes lambda with the unqualified ARN and the `Qualifier` request parameter. 
    
    Example of an affected setup:
    
    ```
    Statement: 
    {
      Effect: "Allow",
      Action: "lambda:InvokeFunction",
      Resource: "arn:aws:lambda:...:function:MyFunction",
    }
    
    API Call:
    lambda.Invoke({
      FunctionName: "MyFunction",
      Qualifier: "1234",
    })
    ```
    
    This `Invoke` call *used* to succeed, but under the new authorization strategy it will fail. The required statement to make the call succeed would be (note the qualified ARN):
    
    ```
    {
      Effect: "Allow",
      Action: "lambda:InvokeFunction",
      Resource: "arn:aws:lambda:...:function:MyFunction:1234",
    }
    ```
    
    This PR aims to warn users who could be using an affected setup. Users will receive the a warning message under the following circumstances:
    
    - they grant `lambda:InvokeFunction` to an unqualified function arn
    - they call `lambda.currentVersion` somewhere in their code
    
    This is part of #19273. Related is #19318.
    
    ----
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    kaizencc authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    fd1fff9 View commit details
    Browse the repository at this point in the history
  4. fix(eks): incorrect version of aws-node-termination-handler (#19510)

    A previous [PR](#18841) upgraded the version of `aws-node-termination-handler`. However, the version contained in the change, 1.14.0, refers to the `appVersion` field and not the `version` field. This change upgrades it to the latest available `version`, 0.18.0, as shown by the command:
    
    ```
    $ helm search repo aws-node-termination-handler
    NAME                            	CHART VERSION	APP VERSION	DESCRIPTION
    eks/aws-node-termination-handler	0.18.0       	1.16.0     	A Helm chart for the AWS Node Termination Handler.
    ```
    
    ----
    
    ### All Submissions:
    
    * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    otaviomacedo authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    9c712cc View commit details
    Browse the repository at this point in the history
  5. fix(rds): SnapshotCredentials.fromSecret() takes a Secret, not `I…

    …Secret` (#19639)
    
    Fixes #19409
    
    ----
    
    ### All Submissions:
    
    * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    ### Adding new Unconventional Dependencies:
    
    * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
    
    ### New Features
    
    * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    skinny85 authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    a74d82e View commit details
    Browse the repository at this point in the history
  6. fix(apigateway): allow using GENERATE_IF_NEEDED for the physical name…

    … in LambdaRestApi (#19638)
    
    Fixes #9374
    
    ----
    
    ### All Submissions:
    
    * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    ### Adding new Unconventional Dependencies:
    
    * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
    
    ### New Features
    
    * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    skinny85 authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    e817381 View commit details
    Browse the repository at this point in the history
  7. fix(aws-cognito): Lambda::Permission of lambdaTrigger should have a S…

    …ourceArn (#19622)
    
    Fixes #19604
    
    
    ----
    
    ### All Submissions:
    
    * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    ### Adding new Unconventional Dependencies:
    
    * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
    
    ### New Features
    
    * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    Tietew authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    c62eeb7 View commit details
    Browse the repository at this point in the history
  8. feat(ecs-patterns): PlacementStrategy and PlacementConstraint for man…

    …y patterns (#19612)
    
    I've added PlacementStrategy and PlacementConstraint to 
    - ApplicationLoadBalancedEc2Service
    - ApplicationMultipleTargetGroupsEc2Service
    - NetworkLoadBalancedEc2Service
    - NetworkMultipleTargetGroupsEc2Service
    - QueueProcessingEc2Service
    
    and pass it to AWS ECS related service.
    
    fixes #19225
    
    ----
    
    ### All Submissions:
    
    * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    ### Adding new Unconventional Dependencies:
    
    * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
    
    ### New Features
    
    * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    IhnatKlimchuk authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    0096e67 View commit details
    Browse the repository at this point in the history
  9. feat(kinesisanalytics-flink): Add metrics to Flink applications (#19599)

    I PR'd the [original version of the aws-kinesisanalytics-flink constructs](#12464) to CDK. I'm following up to add the missing `metric*` methods according to the [design guidelines](https://github.com/aws/aws-cdk/blob/master/docs/DESIGN_GUIDELINES.md#metrics).
    
    [Reference for Flink Application metrics](https://docs.aws.amazon.com/kinesisanalytics/latest/java/metrics-dimensions.html). I have a few running Flink apps and I was able to see that KPUs are also reported for the Flink apps.
    
    ----
    
    ### All Submissions:
    
    * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
      * [x] I don't think conventional metric changes require an update to the README.
    
    ### New Features
    
    * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [x] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    mitchlloyd authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    dab6aca View commit details
    Browse the repository at this point in the history
  10. chore(ssm): fix removed API ParameterStoreString (#19585)

    This PR replace `ParameterStoreString` to `StringParameter.fromStringParameterAttributes` in README.
    `ParameterStoreString` has been removed.
    
    ----
    
    ### All Submissions:
    
    * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    ### Adding new Unconventional Dependencies:
    
    * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
    
    ### New Features
    
    * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    yamatatsu authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    88a7839 View commit details
    Browse the repository at this point in the history
  11. fix(elbv2): unable to add multiple certificates to NLB (#19289)

    This PR does a couple of things to update the NetworkListener to be on
    par with ApplicationListener.
    
    1. Add a NetworkListenerCertificate construct that allows you to
       associate multiple certificates with a listener.
    2. Add a `addCertificates` method to `NetworkListener` similar to the
       same method on the `ApplicationListener`.
    
    This is needed because even though the `certificates` property on a
    `Listener`is an array, it expects only one certificate. To add more than
    one you have to create an
    `AWS::ElasticLoadBalancingV2::ListenerCertificate`. This functionality
    was added to `ApplicationListner` via #13490.
    
    fixes #8918, #15328
    
    ----
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    corymhall authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    e8142e9 View commit details
    Browse the repository at this point in the history
  12. feat(elbv2): use addAction() on an imported application listener (#…

    …19293)
    
    This PR adds the ability to call `addAction()` on an imported
    `IApplicationListener`.
    
    Fixes #10902
    
    
    ----
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    corymhall authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    18a6b0c View commit details
    Browse the repository at this point in the history
  13. feat(core): add size.isUnresolved (#19569)

    There is a `Duration.isUnresolved()`, and I'm adding a similar function for `Size`. 
    
    See discussion here for why this is necessary: https://github.com/aws/aws-cdk/pull/19550/files#r835542214
    
    The td:dr; is that `Token.isUnresolved()` does not check for the resolvability of object properties, so something like:
    
    ```ts
    Token.isUnresolved(Size.mebibytes(Lazy.number({ produce: () => 10 }));
    ```
    
    returns (to me, unexpectedly,) false.
    
    ----
    
    ### All Submissions:
    
    * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    ### Adding new Unconventional Dependencies:
    
    * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
    
    ### New Features
    
    * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    kaizencc authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    ed26731 View commit details
    Browse the repository at this point in the history
  14. chore(core): improve token error for Duration and Size (#19650)

    The old error message was not up to CDK standards (not clearly
    describing the error and not suggesting a course of action).
    
    This should be more actionable.
    
    ----
    
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    rix0rrr authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    43efe59 View commit details
    Browse the repository at this point in the history
  15. chore: Revert "feat: add new integration test runner (#19529)" (#19651)

    This reverts commit e7f43d1.
    
    
    ----
    
    ### All Submissions:
    
    * [ ] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md)
    
    ### Adding new Unconventional Dependencies:
    
    * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies)
    
    ### New Features
    
    * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)?
    	* [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)?
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    madeline-k authored Mar 31, 2022
    Configuration menu
    Copy the full SHA
    99924af View commit details
    Browse the repository at this point in the history
  16. chore(release): 1.151.0

    AWS CDK Team committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    a208733 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b7c9fe6 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2022

  1. fix changelog

    madeline-k committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    38c6d52 View commit details
    Browse the repository at this point in the history