Skip to content

Commit

Permalink
upgrade EKS from 1.29 to 1.31. upgrade CDK from 2.151.0 to 2.171.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Watson committed Dec 7, 2024
1 parent b9e8830 commit 965584c
Show file tree
Hide file tree
Showing 25 changed files with 1,231 additions and 1,320 deletions.
6 changes: 3 additions & 3 deletions backstage-reference/common/aws_ecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"devDependencies": {
"@types/node": "^22.2.0",
"aws-cdk": "^2.151.0",
"aws-cdk": "^2.171.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},
"dependencies": {
"@aws-sdk/util-arn-parser": "^3.568.0",
"aws-cdk-lib": "^2.151.0",
"aws-cdk-lib": "^2.171.1",
"constructs": "^10.3.0"
}
}
}
4 changes: 2 additions & 2 deletions backstage-reference/common/aws_eks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"devDependencies": {
"@types/node": "22.2.0",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws-sdk/util-arn-parser": "^3.568.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0",
"cdk-nag": "^2.28.177"
}
Expand Down
4 changes: 2 additions & 2 deletions backstage-reference/common/aws_gen_ai_rag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"devDependencies": {
"@types/node": "^22.2.0",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws-sdk/util-arn-parser": "^3.568.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0"
}
}
4 changes: 2 additions & 2 deletions backstage-reference/common/aws_rds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"devDependencies": {
"@types/node": "22.2.0",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws-sdk/util-arn-parser": "^3.568.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0",
"source-map-support": "^0.5.21"
}
Expand Down
6 changes: 3 additions & 3 deletions backstage-reference/common/aws_s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"devDependencies": {
"@types/node": "^22.2.0",
"aws-cdk": "^2.151.0",
"aws-cdk": "^2.171.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},
"dependencies": {
"@aws-sdk/util-arn-parser": "^3.568.0",
"aws-cdk-lib": "^2.151.0",
"aws-cdk-lib": "^2.171.1",
"constructs": "^10.3.0",
"source-map-support": "^0.5.21"
}
}
}
6 changes: 3 additions & 3 deletions backstage-reference/common/aws_secretsmanager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"@types/jest": "^29.5.12",
"@types/node": "22.2.0",
"@types/uuid": "^10.0.0",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0",
"source-map-support": "^0.5.21",
"uuid": "^10.0.0"
}
}
}
4 changes: 2 additions & 2 deletions backstage-reference/common/aws_serverless_api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"devDependencies": {
"@types/node": "22.2.0",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws-sdk/util-arn-parser": "^3.568.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iac-deployment-env-provider:
- apt install nodejs npm git python3-pip yq jq -y
- export PIP_BREAK_SYSTEM_PACKAGES=1
- pip3 install awscli --upgrade
- yarn global add aws-cli typescript@latest aws-cdk@2.151.0
- yarn global add aws-cli typescript@latest aws-cdk@2.171.1
- yarn --version
- aws --version
- echo -e "\e[0Ksection_end:`date +%s`:get_tools\r\e[0K"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ iac-deployment-env-provider:
- apt install nodejs npm git python3-pip yq jq -y
- export PIP_BREAK_SYSTEM_PACKAGES=1
- pip3 install awscli --upgrade
- yarn global add aws-cli typescript@latest aws-cdk@2.151.0
- yarn global add aws-cli typescript@latest aws-cdk@2.171.1
- yarn --version
- aws --version
- echo -e "\e[0Ksection_end:`date +%s`:get_tools\r\e[0K"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iac-deployment-env-provider:
- apt install nodejs npm git python3-pip yq jq -y
- export PIP_BREAK_SYSTEM_PACKAGES=1
- pip3 install awscli --upgrade
- yarn global add aws-cli typescript@latest aws-cdk@2.151.0
- yarn global add aws-cli typescript@latest aws-cdk@2.171.1
- yarn --version
- aws --version
- echo -e "\e[0Ksection_end:`date +%s`:get_tools\r\e[0K"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iac-deployment-env-provider:
- apt install nodejs npm git python3-pip yq jq -y
- export PIP_BREAK_SYSTEM_PACKAGES=1
- pip3 install awscli --upgrade
- yarn global add aws-cli typescript@latest aws-cdk@2.151.0
- yarn global add aws-cli typescript@latest aws-cdk@2.171.1
- yarn --version
- aws --version
- echo -e "\e[0Ksection_end:`date +%s`:get_tools\r\e[0K"
Expand All @@ -31,8 +31,8 @@ iac-deployment-env-provider:

- echo -e "\e[0Ksection_start:`date +%s`:get_kubectl[collapsed=true]\r\e[0KInstall Kubectl"
- apt install sudo
- curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
- echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
- curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.31/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
- echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.31/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
- sudo apt update
- sudo apt install kubectl
- echo -e "\e[0Ksection_end:`date +%s`:get_kubectl\r\e[0K"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iac-deployment-env-provider:
- apt install nodejs npm git python3-pip yq jq -y
- export PIP_BREAK_SYSTEM_PACKAGES=1
- pip3 install awscli --upgrade
- yarn global add aws-cli typescript@latest aws-cdk@2.151.0
- yarn global add aws-cli typescript@latest aws-cdk@2.171.1
- yarn --version
- aws --version
- echo -e "\e[0Ksection_end:`date +%s`:get_tools\r\e[0K"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iac-deployment-env-provider:
- apt install nodejs npm git python3-pip yq jq -y
- export PIP_BREAK_SYSTEM_PACKAGES=1
- pip3 install awscli --upgrade
- yarn global add aws-cli typescript@latest aws-cdk@2.151.0
- yarn global add aws-cli typescript@latest aws-cdk@2.171.1
- yarn --version
- aws --version
- echo -e "\e[0Ksection_end:`date +%s`:get_tools\r\e[0K"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default:
- echo -e "\e[0Ksection_start:`date +%s`:get_tools1[collapsed=true]\r\e[0KGet Tools"
- apt-get update
- apt install nodejs npm git python3-pip yq jq unzip -y
- yarn global add typescript@latest aws-cdk@2.151.0
- yarn global add typescript@latest aws-cdk@2.171.1
- yarn --version
- echo -e "\e[0Ksection_end:`date +%s`:get_tools1\r\e[0K"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
echo -e "\e[0Ksection_start:`date +%s`:install_kubectl[collapsed=true]\r\e[0KInstalling kubectl";
echo "Runtime Architecture: $(uname -m)"
echo "Getting kubectl version v1.29.7 from https://dl.k8s.io/release/v1.29.7/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/release/v1.29.7/bin/linux/amd64/kubectl"
echo "Getting kubectl version v1.31.7 from https://dl.k8s.io/release/v1.31.7/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/release/v1.31.7/bin/linux/amd64/kubectl"
echo "Got kubectl. Getting kubectl sha hash."
curl -LO "https://dl.k8s.io/release/v1.29.7/bin/linux/amd64/kubectl.sha256"
curl -LO "https://dl.k8s.io/release/v1.31.7/bin/linux/amd64/kubectl.sha256"
echo "Got kubectl sha hash. Compairing checksum."
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
apt install sudo;
Expand Down
6 changes: 3 additions & 3 deletions iac/roots/opa-basic-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"@types/node": "^20.3.1",
"@types/prettier": "2.6.0",
"@types/source-map-support": "^0.5.6",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws/aws-app-development-common-constructs": "0.3.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0"
}
}
}
4 changes: 2 additions & 2 deletions iac/roots/opa-common-constructs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"@types/node": "^20.3.1",
"@types/prettier": "2.7.3",
"@types/source-map-support": "^0.5.6",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.5.4"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.627.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"cdk-nag": "^2.28.175",
"constructs": "^10.3.0",
"source-map-support": "^0.5.21"
Expand Down
4 changes: 2 additions & 2 deletions iac/roots/opa-ecs-ec2-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"@types/node": "^20.3.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4",
"@aws/aws-app-development-common-constructs": "0.3.0"
},
"dependencies": {
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0",
"source-map-support": "^0.5.21",
"@aws/aws-app-development-common-constructs": "0.3.0"
Expand Down
4 changes: 2 additions & 2 deletions iac/roots/opa-ecs-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"@types/node": "^20.3.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4",
"@aws/aws-app-development-common-constructs": "0.3.0"
},
"dependencies": {
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0",
"source-map-support": "^0.5.21",
"@aws/aws-app-development-common-constructs": "0.3.0"
Expand Down
6 changes: 3 additions & 3 deletions iac/roots/opa-eks-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"@types/node": "^20.3.1",
"@types/prettier": "2.6.0",
"@types/source-map-support": "^0.5.6",
"aws-cdk": "2.151.0",
"aws-cdk": "~2.171.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws/aws-app-development-common-constructs": "0.3.0",
"@aws-cdk/lambda-layer-kubectl-v29": "^2.1.0",
"aws-cdk-lib": "2.151.0",
"@aws-cdk/lambda-layer-kubectl-v31": "^2.0.0",
"aws-cdk-lib": "~2.171.1",
"constructs": "^10.3.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as eks from "aws-cdk-lib/aws-eks";
import * as iam from "aws-cdk-lib/aws-iam";
import * as ssm from "aws-cdk-lib/aws-ssm";
import * as ec2 from "aws-cdk-lib/aws-ec2";
import { KubectlV29Layer } from '@aws-cdk/lambda-layer-kubectl-v29';
import { KubectlV31Layer } from '@aws-cdk/lambda-layer-kubectl-v31';
import { OPAEnvironmentParams } from "@aws/aws-app-development-common-constructs";
import {
getCreateK8sOpaResources,
Expand Down Expand Up @@ -101,9 +101,9 @@ export class OPAEKSClusterConstruct extends Construct {
eks.ClusterLoggingTypes.AUTHENTICATOR,
eks.ClusterLoggingTypes.SCHEDULER,
];
const kubectlLayer = new KubectlV29Layer(this, 'kubectl');
const kubectlLayer = new KubectlV31Layer(this, 'kubectl');
const albControllerVersion = eks.AlbControllerVersion.V2_6_2;
const kubernetesVersion = eks.KubernetesVersion.V1_29;
const kubernetesVersion = eks.KubernetesVersion.V1_31;

const clusterAdminK8sUsername = props.clusterAdminRole.roleArn;

Expand Down
4 changes: 2 additions & 2 deletions iac/roots/opa-gen-ai-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"@types/node": "^20.3.1",
"@types/prettier": "2.6.0",
"@types/source-map-support": "^0.5.6",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws/aws-app-development-common-constructs": "0.3.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0"
}
}
6 changes: 3 additions & 3 deletions iac/roots/opa-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/node": "^22.1.0",
"@types/prettier": "^3.0.0",
"@types/source-map-support": "^0.5.10",
"aws-cdk": "^2.151.0",
"aws-cdk": "^2.171.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
Expand All @@ -28,9 +28,9 @@
"@aws-sdk/client-s3": "^3.627.0",
"@aws-sdk/client-ssm": "^3.624.0",
"@aws/aws-app-development-common-constructs": "0.3.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"cdk-nag": "^2.28.175",
"constructs": "^10.3.0",
"source-map-support": "^0.5.21"
}
}
}
4 changes: 2 additions & 2 deletions iac/roots/opa-serverless-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"@types/node": "^20.3.1",
"@types/prettier": "2.6.0",
"@types/source-map-support": "^0.5.6",
"aws-cdk": "2.151.0",
"aws-cdk": "2.171.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"typescript": "~5.5.4"
},
"dependencies": {
"@aws/aws-app-development-common-constructs": "0.3.0",
"aws-cdk-lib": "2.151.0",
"aws-cdk-lib": "2.171.1",
"constructs": "^10.3.0"
}
}
Loading

0 comments on commit 965584c

Please sign in to comment.