From 030500af3f67982dd31322933424f0b8cf761a41 Mon Sep 17 00:00:00 2001 From: mazyu36 Date: Wed, 17 Jul 2024 08:31:57 +0900 Subject: [PATCH 1/3] docs(pipelines): fix link for originarl API document in README (#30852) Fixed a broken link. ### 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* --- packages/aws-cdk-lib/pipelines/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/pipelines/README.md b/packages/aws-cdk-lib/pipelines/README.md index 6f1698cb590c1..2eceefc9e5236 100644 --- a/packages/aws-cdk-lib/pipelines/README.md +++ b/packages/aws-cdk-lib/pipelines/README.md @@ -28,7 +28,7 @@ construct library directly. > engines other than CodePipeline. > > The README for the original API, as well as a migration guide, can be found in -> [our GitHub repository](https://github.com/aws/aws-cdk/blob/main/packages/@aws-cdk/pipelines/ORIGINAL_API.md). +> [our GitHub repository](https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/pipelines/ORIGINAL_API.md). ## At a glance From 40a8e610f3bf538ce9105e7c092fedbe115e30f6 Mon Sep 17 00:00:00 2001 From: Matt Pye Date: Wed, 17 Jul 2024 01:01:27 +0100 Subject: [PATCH 2/3] docs: fix SnsAction typo for aws-cdk-lib aws_cloudwatch Alarm addAlarmAction (#30867) ### Issue # (if applicable) N/A ### Reason for this change Fixing a typo ### Description of changes Fixing a typo in the docs under aws-cdk-lib aws_cloudwatch Alarm addAlarmAction ### Description of how you validated changes Spell checker ### 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* --- packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts index e25bf8cfe1aef..d00d5eb13ccdf 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts @@ -250,7 +250,7 @@ export class Alarm extends AlarmBase { /** * Trigger this action if the alarm fires * - * Typically SnsAcion or AutoScalingAction. + * Typically SnsAction or AutoScalingAction. */ public addAlarmAction(...actions: IAlarmAction[]) { if (this.alarmActionArns === undefined) { From e12ecb1c715ef0bd382a26435dcf0da9c90a0aa7 Mon Sep 17 00:00:00 2001 From: Kazuho Cryer-Shinozuka Date: Wed, 17 Jul 2024 09:45:15 +0900 Subject: [PATCH 3/3] docs(eks): add documentation about add-ons (#30815) ### Issue # (if applicable) None ### Reason for this change Addon L2 construct is added by #30576 but there is no documentation about it in the README.md. ### Description of changes Add Add-ons documentation to README.md ### Description of how you validated changes None ### 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* --- packages/aws-cdk-lib/aws-eks/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/aws-cdk-lib/aws-eks/README.md b/packages/aws-cdk-lib/aws-eks/README.md index 8a8bce08726e0..f9da36c3133bd 100644 --- a/packages/aws-cdk-lib/aws-eks/README.md +++ b/packages/aws-cdk-lib/aws-eks/README.md @@ -55,6 +55,7 @@ In addition, the library also supports defining Kubernetes resource manifests wi - [Manually importing k8s specs and CRD's](#manually-importing-k8s-specs-and-crds) - [Patching Kubernetes Resources](#patching-kubernetes-resources) - [Querying Kubernetes Resources](#querying-kubernetes-resources) + - [Add-ons](#add-ons) - [Using existing clusters](#using-existing-clusters) - [Logging](#logging) - [Known Issues and Limitations](#known-issues-and-limitations) @@ -1837,6 +1838,20 @@ declare const cluster: eks.Cluster; const loadBalancerAddress = cluster.getServiceLoadBalancerAddress('my-service'); ``` +## Add-ons + +[Add-ons](https://docs.aws.amazon.com/eks/latest/userguide/eks-add-ons.html) is a software that provides supporting operational capabilities to Kubernetes applications. The EKS module supports adding add-ons to your cluster using the `eks.Addon` class. + +```ts +declare const cluster: eks.Cluster; + +new eks.Addon(this, 'Addon', { + cluster, + addonName: 'aws-guardduty-agent', + addonVersion: 'v1.6.1', +}); +``` + ## Using existing clusters The Amazon EKS library allows defining Kubernetes resources such as [Kubernetes