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

feat(eks): support AccessConfig for the Cluster construct #30016

Merged
merged 58 commits into from
Jun 12, 2024

Commits on Apr 30, 2024

  1. access config support

    pahud committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    955a94c View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. wip

    pahud committed May 2, 2024
    Configuration menu
    Copy the full SHA
    04a395b View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. AccessEntry L2 support

    pahud committed May 3, 2024
    Configuration menu
    Copy the full SHA
    8bd96e8 View commit details
    Browse the repository at this point in the history
  2. minor

    pahud committed May 3, 2024
    Configuration menu
    Copy the full SHA
    396b4bb View commit details
    Browse the repository at this point in the history
  3. unit tests

    pahud committed May 3, 2024
    Configuration menu
    Copy the full SHA
    98254fe View commit details
    Browse the repository at this point in the history

Commits on May 4, 2024

  1. refactor AccessPolicy

    pahud committed May 4, 2024
    Configuration menu
    Copy the full SHA
    825203a View commit details
    Browse the repository at this point in the history
  2. update README

    pahud committed May 4, 2024
    Configuration menu
    Copy the full SHA
    526db6c View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Configuration menu
    Copy the full SHA
    9cb9c6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    caaf04a View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. add integ and snapshots

    pahudcc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    734cbca View commit details
    Browse the repository at this point in the history
  2. unit tests for AccessEntry

    pahudcc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    fef2785 View commit details
    Browse the repository at this point in the history
  3. add more awsauth tests

    pahudcc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    3346c06 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bebc33f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d57d537 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ee7def0 View commit details
    Browse the repository at this point in the history
  7. fix docstring

    pahudcc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    67a2397 View commit details
    Browse the repository at this point in the history
  8. fix integ test

    pahudcc committed May 6, 2024
    Configuration menu
    Copy the full SHA
    ee00e00 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. update tests

    pahudcc committed May 7, 2024
    Configuration menu
    Copy the full SHA
    6249396 View commit details
    Browse the repository at this point in the history
  2. fix tests

    pahudcc committed May 7, 2024
    Configuration menu
    Copy the full SHA
    bd90cb2 View commit details
    Browse the repository at this point in the history
  3. update integ tests

    pahudcc committed May 7, 2024
    Configuration menu
    Copy the full SHA
    209ef32 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. update tests

    pahudcc committed May 8, 2024
    Configuration menu
    Copy the full SHA
    17dd42b View commit details
    Browse the repository at this point in the history
  2. update tests

    pahud committed May 8, 2024
    Configuration menu
    Copy the full SHA
    6b349bf View commit details
    Browse the repository at this point in the history
  3. fix README

    pahud committed May 8, 2024
    Configuration menu
    Copy the full SHA
    859ccde View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2432b07 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'pahud/aws-eks-support-accessconfig-28588' of https://gi…

    …thub.com/pahud/aws-cdk into pahud/aws-eks-support-accessconfig-28588
    pahud committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4165464 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5ecb856 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    05d0019 View commit details
    Browse the repository at this point in the history
  2. update integ

    pahud committed May 13, 2024
    Configuration menu
    Copy the full SHA
    ceac30a View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Update packages/aws-cdk-lib/aws-eks/lib/cluster.ts

    Co-authored-by: GZ <hz351086153@gmail.com>
    pahud and GavinZZ authored May 14, 2024
    Configuration menu
    Copy the full SHA
    c9b0314 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. improve doc string

    pahud committed May 15, 2024
    Configuration menu
    Copy the full SHA
    8782fea View commit details
    Browse the repository at this point in the history
  2. make addToAccessEntry private

    pahud committed May 15, 2024
    Configuration menu
    Copy the full SHA
    082c06b View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. update fromAccessPolicyName()

    pahud committed May 22, 2024
    Configuration menu
    Copy the full SHA
    54cdcbe View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. Configuration menu
    Copy the full SHA
    ae9a22c View commit details
    Browse the repository at this point in the history
  2. fix typo and lint

    pahud committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    101759f View commit details
    Browse the repository at this point in the history
  3. update tests

    pahud committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    b930040 View commit details
    Browse the repository at this point in the history
  4. update README

    pahud committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    e1146df View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. improve the tests

    pahud committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    c4e9c40 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29968e5 View commit details
    Browse the repository at this point in the history
  3. add AccessEntryType

    pahud committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    6445773 View commit details
    Browse the repository at this point in the history
  4. add test for accessEntryType

    pahud committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    f19805c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8365348 View commit details
    Browse the repository at this point in the history
  6. update

    pahud committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    1fddf0c View commit details
    Browse the repository at this point in the history
  7. update tests

    pahud committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    1b25f92 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    841d6b7 View commit details
    Browse the repository at this point in the history
  9. add more checks and tests

    pahud committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    cb7802f View commit details
    Browse the repository at this point in the history
  10. fix README

    pahud committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    7d1bcfe View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. update README

    pahud committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    480bf4a View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Configuration menu
    Copy the full SHA
    5a2191e View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. chore: upgrade jsii to ~5.4.21 (aws#30518)

    ### Reason for this change
    
    There was an upstream bug in jsii aws/jsii-compiler#1070 that caused the build to fail.
    Updating the package manually to confirm the issue is resolved.
    
    ### Description of changes
    
    Upgraded to the latest version of jsii that includes a fix for the build issue.
    
    ### Description of how you validated changes
    
    Dependency upgrade. Existing tests cover this.
    
    ### Checklist
    - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
    
    ----
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    mrgrain authored and pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    364f86b View commit details
    Browse the repository at this point in the history
  2. feat: implement node runtime region awareness for cdk vended custom r…

    …esources (aws#30108)
    
    This PR introduces node runtime region awareness into the custom resource provider framework by doing the following:
    
    - Adding a `LATEST_NODE_RUNTIME_MAP` fact table used to maintain the latest node runtime available per AWS partition
    - Introducing `determineLatestNodeRuntime` and `determineLatestNodeRuntimeName` functions which determine the latest Lambda node `Runtime` and the latest Lambda node `Runtime` name, respectively
    - Updating the custom resource provider framework to utilize these two functions when code generating the runtime property for providers using node runtimes
    
    This PR can be segmented into the following code changes:
    
    - A `LATEST_NODE_RUNTIME_MAP` fact table was added which maintains the latest Lambda node runtime available per AWS partition.
    - Introduced `determineLatestNodeRuntime` and `determineLatestNodeRuntimeName` functions which determine the latest Lambda node `Runtime` and the latest Lambda node `Runtime` name, respectively.
    - The existing runtime property being code generated via the custom resource provider framework has been altered to now use the appropriate runtime determiner function, i.e., `determineLatestNodeRuntimeName` for `CustomResourceProvider` or `determineLatestNodeRuntime` for `Function` or `SingletonFunction`. Any custom resource provider using a python runtime will not use either of these functions.
    - To consolidate and manage importing of external modules a `ModuleImporter` class has been created. This class allows external modules to be registered as an import for a target module and prevents duplicate imports for modules that contain multiple framework components. This class also provides the ability to specify different import paths which allows all external modules to be consolidated into a single class rather than having duplicate external modules defined for different import paths. Lastly, this class determines whether or not external modules should be imported selectively or if all targets in the external module should be imported under an alias, i.e., `import { Function } from 'aws-lambda'` vs. `import * as lambda from 'aws-lambda'`
    - A `CallableExpr` class was created to allow expression proxies to be created from a specified expression name. This allows the new runtime determiner functions and other module specific functions to be called from their specified module and built into a JavaScript object that will mirror the JavaScript operations done to it in an expression tree.
    
    Manually tested all individual custom resource handlers for create, update, and delete. I verified that the behavior seen was what was expected based off of the handler code. All impacted integ tests were updated. New unit tests were added to the custom resource handler framework to test that generated code correctly included `determineLatestNodeRuntime` for Lambda based handlers and `determineLatestNodeRuntimeName` for `CfnResource` based handlers. Added new unit tests to test the functionality of `determineLatestNodeRuntime` and `determineLatestNodeRuntimeName` for region agnostic stacks, stacks in commercial region, stacks in China regions, stacks in ADC regions, and stacks in GovCloud regions.
    
    - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
    
    ----
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    colifran authored and pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    74bcc1f View commit details
    Browse the repository at this point in the history
  3. feat(opensearch): add OpenSearch 2.13 engine version (aws#30399)

    ### Reason for this change
    
    [Amazon OpenSearch Service now supports OpenSearch version 2.13](https://aws.amazon.com/about-aws/whats-new/2024/05/amazon-opensearch-supports-opensearch-version-2-13/)
    
    ### Description of changes
    
    Adds support for OpenSearch engine version 2.13
    
    ### Description of how you validated changes
    
    `yarn test`
    
    ### Checklist
    - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
    
    ----
    
    *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
    timbru31 authored and pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    11597a0 View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'origin/main' into pahud/aws-eks-support…

    …-accessconfig-28588
    pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    34f92df View commit details
    Browse the repository at this point in the history
  5. update snaps

    pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    b98369a View commit details
    Browse the repository at this point in the history
  6. fix conflict

    pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    5121217 View commit details
    Browse the repository at this point in the history
  7. fix conflict

    pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    619e7bb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ac72608 View commit details
    Browse the repository at this point in the history
  9. update snapshots

    pahud committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    353fc93 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3294656 View commit details
    Browse the repository at this point in the history