You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated environment variable name to AWS_REGION_NAME.
Removed credentials input in lambda handler, to leverage on AWS CLI profile.
Updatd README on include instructions for AWS CLI configuration.
Copy file name to clipboardExpand all lines: sqs-lambda-s3-terraform-python/README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,12 @@ The SQS queue is configured as a trigger for the Lambda function. Whenever a mes
95
95
96
96
1. Generate an access key pair (access key and secret access key) for IAM user in the AWS CLI. The key pair will be used while running the test script.
97
97
98
+
1. Create an AWS CLI profile (see [AWS CLI Configuration](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html#configuration)), using the key pair in the previous step:
99
+
100
+
```
101
+
aws configure
102
+
```
103
+
98
104
1. Update the AWS region in the test script `send_sqs_event.py` with the region, in which the SQS queue will be created:
99
105
100
106
```
@@ -107,19 +113,14 @@ The SQS queue is configured as a trigger for the Lambda function. Whenever a mes
107
113
python send_sqs_event.py
108
114
```
109
115
110
-
1. Enter the Access Key and Secret Access Key when prompted:
111
-
112
-
```
113
-
Enter Access Key: ********************
114
-
Enter Secret Access Key: ****************************************
115
-
```
116
-
117
116
1. Check the S3 bucket to see if a new JSON object has been created:
118
117
119
118
```
120
-
aws s3 ls --region ap-south-1 my-bucket-20250329
119
+
aws s3 ls [bucket-name]
121
120
```
122
121
122
+
Alternately, the S3 bucket can be looked up on the AWS Console.
0 commit comments