Skip to content

Commit

Permalink
Remove callout formatting on S3 example
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed Jun 20, 2024
1 parent 2795ef6 commit 2ef526f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/v7-aws-s3-request-signing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The following environment variables need to be set for the edge function to auth
- `S3_ACCESS_KEY_ID`: Your AWS access key ID.
- `S3_SECRET_ACCESS_KEY`: Your AWS secret access key.

When running the project locally, these variables can be defined in a `.env` file or directly in the environment. For deployment on Edgio, these should be set in the Edgio Developer Console.
When running the project locally, these variables can be defined in a `.env` file or directly in the environment. For deployment on Edgio, these should be set in the Edgio Console.

## Getting Started

Expand Down
14 changes: 7 additions & 7 deletions examples/v7-aws-s3-request-signing/public/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ <h2>Overview</h2>
</ul>
</p>
<h2>Router Configuration</h2>
<div class="highlight">
<p>
The router handles incoming requests. Requests to the
<code>/s3/*</code> path are forwarded to an edge function for
processing.
</div>
</p>
<pre>
// This file was added by edgio init.
// You should commit this file to source control.
Expand All @@ -97,18 +97,18 @@ <h2>Router Configuration</h2>
>

<h2>Edge Function</h2>
<div class="highlight">
<p>
The edge function makes an authenticated request to S3, removing the
<code>/s3</code> prefix and using AWS v4 signature algorithm for
signing.
</div>
</p>
<pre>
import { AwsV4Signer } from './lib/awsv4';

/**
* This edge function signs an S3 request using the AWS v4 signature algorithm
* and forwards the request to the S3 origin. Authentication credentials are
* read from environment variables set in the Edgio Developer Console.
* read from environment variables set in the Edgio Console.
*/
export async function handleHttpRequest(request, context) {
const { S3_HOSTNAME, S3_REGION, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY } = context.environmentVars;
Expand Down Expand Up @@ -144,7 +144,7 @@ <h2>Edge Function</h2>
>

<h2>Environment Variables</h2>
<div class="highlight">
<div>
<p>
Environment variables are critical for the edge function to
authenticate and sign requests correctly.
Expand All @@ -163,7 +163,7 @@ <h2>Environment Variables</h2>
<p>
When running the project locally, these variables can be defined in a
<code>.env</code> file or directly in the environment. For deployment
on Edgio, these should be set in the Edgio Developer Console.
on Edgio, these should be set in the Edgio Console.
</p>
</div>
</div>
Expand Down

0 comments on commit 2ef526f

Please sign in to comment.