CEU IaC and GH Actions workshop
  • TypeScript 64.5%
  • JavaScript 34.1%
  • Shell 1.2%
  • HTML 0.2%
Find a file
khalidbelk 5ef3195676 feat: add instructions for credentials setup
This also fixes the markdown formatting of the Readme's titles
2025-04-01 18:15:08 +02:00
.github/workflows GH Actions - Removed CDK bootstrap step 2025-04-01 10:35:52 +02:00
assets Modified fix-dependencies script. Removed unnecessary documentation 2025-03-31 15:49:58 +02:00
bin Removed resource 2024-04-09 12:46:20 +02:00
lambda Added missing .js files 2024-04-07 20:31:50 +02:00
lib Removed resource 2024-04-09 12:46:20 +02:00
scripts Modified fix-dependencies script. Removed unnecessary documentation 2025-03-31 15:49:58 +02:00
spa Added SPA stack 2024-04-03 22:45:55 +02:00
test Initial commit 2024-04-02 18:55:50 +02:00
.gitignore Removed excluded .js files from .gitignore 2024-04-07 20:31:20 +02:00
.npmignore Initial commit 2024-04-02 18:55:50 +02:00
bootstrap-template.yml Added custom CDK bootstrap template 2024-04-02 19:35:19 +02:00
cdk.json Initial commit 2024-04-02 18:55:50 +02:00
jest.config.js Initial commit 2024-04-02 18:55:50 +02:00
package-lock.json Modified fix-dependencies script. Removed unnecessary documentation 2025-03-31 15:49:58 +02:00
package.json Modified fix-dependencies script. Removed unnecessary documentation 2025-03-31 15:49:58 +02:00
README.md feat: add instructions for credentials setup 2025-04-01 18:15:08 +02:00
tsconfig.json Initial commit 2024-04-02 18:55:50 +02:00

CEU Workshop

Requirements

  • Node
  • AWS CLI configured
  • CDK CLI installed

Credentials

First, ensure you copy your Lab instance's credentials into your ~/.aws/credentials file. It should look like this :

[default]
aws_access_key_id=<your_access_key_id_here>
aws_secret_access_key=<your_secret_access_key_here>
aws_session_token=<your_session_token_here>

Also, make sure your default region inside the ~/.aws/config file is set to us-east-1 like this :

[default]
region = us-east-1

Deploy instructions:

  • Install dependencies: npm ci
  • CDK Bootstrap: cdk bootstrap --template bootstrap-template.yml --profile PROFILE_NAME
  • Copy the workshop step assets to root folder (for example: cp -r assets/2-hitcounter/* .)
  • Deploy the changes: cdk deploy --all --require-approval never --role-arn arn:aws:iam::AWS_ACCOUNT:role/LabRole --profile PROFILE_NAME

PROFILE_NAME is the name of the AWS CLI profile name AWS_ACCOUNT is the ID of the AWS student account

Workshop steps:

  1. Hello world: Deploys an example API that returns the requested endpoint.
  2. Hitcounter: Deploys a custom Construct that counts the API endpoint calls and stores them in a DynamoDB table.
  3. Table viewer: Deploys a third-party Construct called TableViewer. This construct deploys a function that returns an HTML document that represents a DynamoDB Table.
  4. SPA: Deploys a second stack that contains a SPA.