https://github.com/aventinesolutions/lfx-study-aws-cdk-kubernetes
An AWS CDK Typescript Example which show a simple Cloud Formation of the EC2 Instances required for Kubernetes Study at the Linux Foundation
https://github.com/aventinesolutions/lfx-study-aws-cdk-kubernetes
aws cdk certififiedk8sadmin cka kubernetes
Last synced: about 2 months ago
JSON representation
An AWS CDK Typescript Example which show a simple Cloud Formation of the EC2 Instances required for Kubernetes Study at the Linux Foundation
- Host: GitHub
- URL: https://github.com/aventinesolutions/lfx-study-aws-cdk-kubernetes
- Owner: aventinesolutions
- License: mpl-2.0
- Created: 2024-12-18T12:48:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-05T11:09:31.000Z (over 1 year ago)
- Last Synced: 2025-08-06T15:29:22.762Z (10 months ago)
- Topics: aws, cdk, certififiedk8sadmin, cka, kubernetes
- Language: TypeScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS CDK Typescript Simple Project for Cloud Formation of Resources Required for Kubernetes Study
## The Linux Foundation
* [lfx-study-aws-cdk-kubernetes](https://github.com/aventinesolutions/lfx-study-aws-cdk-kubernetes)
* [Kubernetes Fundamentals LFS258](https://trainingportal.linuxfoundation.org/courses/kubernetes-fundamentals-lfs258)
## Instance Role for Kubernetes Control Plane and Worker Compute Instances
* IAM Role `LFXCDK-SSMRoleForInstancesDefault` is made by hand in the Web Console first with the following
Amazon Policies:
* `AmazonEC2FullAccess`
* `AmazonSSMManagedInstanceCore`
* `CloudWatchAgentServerPolicy`
* this allows instances to be managed by the Systems Manager [SSM]
## Environment Variables
* set up the appropriate AWS account credentials and configuration
* Set these environment variables
```shell
export AWS_PROFILE=aventinesolutions
export CDK_DEFAULT_PROFILE=aventinesolutions
export CDK_DEFAULT_REGION=us-west-2
```
## CDK Workflow
* bootstrap the context based on the AWS account
```shell
npx cdk bootstrap
```
* deploy the two stacks (VPC and Security Groups will get created first, then the Compute Instances)
```shell
npx cdk deploy 'LFXCDK-*'
```
* destroy the stacks when the course is complete
```shell
npx cdk destroy 'LFXCDK-*'
```
* the IntelliJ Project includes some runtime configuration examples
## Systems Manager
* the compute instances will be accessible through the Systems Manager Fleet Manager