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.
The Wing Toolchain is distributed via npm:
npm install -g winglang
Verify your installation:
wing --version
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.
- Create a new directory on your filesystem (e.g.,
/tmp/wing-workshop
). - Start VSCode from this directory.
- 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. 🚀
We will be using AWS Bedrock.
- AWS account
- Associated credentials that allow you to create resources.
- AWS CLI with configured credentials. See here for more information.
- Terraform - will be required for deploying your application to your own account.
We will be using ngrok for tunneling GitHub webhooks into our localhost from a known and accessible address.
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.
- Log into the AWS Console and navigate to Amazon Bedrock.
- 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.
- You should receive an email about your request and also a confirmation of access email after a few minutes.