Skip to content

Commit 633fd5c

Browse files
author
markzegarelli
authored
Update nodejs version and remove out-of-date images (#3776)
1 parent 287b6fc commit 633fd5c

File tree

1 file changed

+1
-7
lines changed
  • src/connections/sources/catalog/cloud-apps/amazon-s3

1 file changed

+1
-7
lines changed

src/connections/sources/catalog/cloud-apps/amazon-s3/index.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ Create the [execution role](https://docs.aws.amazon.com/lambda/latest/dg/lambda
4343
2. Choose **Create role**.
4444
3. Create a role with the following properties:
4545
- Set the **Trusted entity** to **AWS Lambda**.
46-
![Add Lambda as the trusted entity for the role](images/s3_2.png)
4746
- Set the **Permissions** to **AWSLambdaExecute**.
48-
![Add the AWSLambdaExecute permission](images/s3_3.png)
4947
- You can skip creating a tag.
5048
- Set the **Role name** to **`lambda-s3-role`**.
51-
![Set the role name to lambda-s3-role](images/s3_4.png)
5249
4. Record the new created IAM role's `role id`! You're going to need it later!
5350

5451
The **AWSLambdaExecute** policy has the permissions that the function needs to manage objects in Amazon S3, and write logs to CloudWatch Logs.
@@ -239,7 +236,7 @@ The deployment package is a .zip file that contains your Lambda function code an
239236
- Upload the Lambda function using the following (note that your Lambda function name doesn't exist yet, you're naming it here):
240237

241238
```bash
242-
S3-Lambda-Segment$ aws lambda create-function --function-name <!Your Lambda Name!> --zip-file fileb://function.zip --handler index.handler --runtime nodejs8.10 --timeout 90 --memory-size 1024 --role <!Your Role ARN!> --environment Variables={write_key=<!Your Segment Write Key!>}
239+
S3-Lambda-Segment$ aws lambda create-function --function-name <!Your Lambda Name!> --zip-file fileb://function.zip --handler index.handler --runtime nodejs16.x --timeout 90 --memory-size 1024 --role <!Your Role ARN!> --environment Variables={write_key=<!Your Segment Write Key!>}
243240
```
244241

245242
**Record your Lambda function's name and region! You'll need them later**.
@@ -306,14 +303,11 @@ Next, add configure notifications on the source bucket to request Amazon S3 to p
306303
1. Open the [Amazon S3 console](https://console.aws.amazon.com/s3).
307304
2. Choose the source bucket.
308305
3. Choose **Properties**.
309-
![Select the Properties tab](images/s3_5.png)
310306
4. Scroll down, click **Events**, and configure a notification with the following settings.
311-
![Click Events](images/s3_6.png)
312307
- Set **Name** to **`lambda-trigger`**.
313308
- Set **Events** to **`ObjectCreate (All)`**.
314309
- Set **Send to** to **`Lambda function`**.
315310
- Set **Lambda** to **Your Lambda Function Name**.
316-
![Add the name of the function you created to the Lambda field](images/s3_7.png)
317311
318312
For more information on event configuration, see [Enabling Event Notifications](https://docs.aws.amazon.com/AmazonS3/latest/user-guide/enable-event-notifications.html) in the _Amazon Simple Storage Service Console User Guide_.
319313

0 commit comments

Comments
 (0)