Skip to content

Latest commit

 

History

History
81 lines (56 loc) · 2.83 KB

01-setup.md

File metadata and controls

81 lines (56 loc) · 2.83 KB

In this section, we will ensure that:

  • Wing is installed and functioning properly on your machine.
  • An AWS account is configured and CLI installed with the required credentials.
  • Access to Amazon Bedrock foundation models.
  • ngrok is installed and working.

Wing

Prerequisites

Wing Toolchain

The Wing Toolchain is distributed via npm:

npm install -g winglang

Verify your installation:

wing --version

Wing VSCode Extension

The Wing VSCode Extension adds syntax highlighting and other conveniences for the Wing Programming Language in VSCode.

To install the Wing VSCode extension, download it from the VSCode Marketplace.

Wing it

  1. Create a new directory on your filesystem (e.g., /tmp/wing-workshop).
  2. Start VSCode from this directory.
  3. Create main.w with the following content:
bring cloud;

let queue = new cloud.Queue();
let bucket = new cloud.Bucket();
let counter = new cloud.Counter();

queue.setConsumer(inflight (body: str) => {
  let next = counter.inc();
  let key = "key-{next}";
  bucket.put(key, body);
});

Verify that the Wing toolchain is working as expected:

wing run main.w

🚀 In the Wing Console, you can push messages to the Queue and observe the files created in the Bucket. 🚀

AWS CLI, Terraform and Required Credentials

We will be using AWS Bedrock.

ngrok

We will be using ngrok for tunneling GitHub webhooks into our localhost from a known and accessible address.

Install ngrok

Amazon Bedrock Foundation Model Access

Note: AWS Bedrock can only be accessed from the us-east-1 region. Make sure all your credentials and applications reside in this region, so you don’t encounter a permission denied exception.

  1. Log into the AWS Console and navigate to Amazon Bedrock.
  2. In the Bedrock screen, at the bottom left-hand corner, click on the model access menu and request access to Anthropic Claude (& Claude Instant) foundation Models.
  3. You should receive an email about your request and also a confirmation of access email after a few minutes.