I recently started using Serverless which includes setting up an App and AWS integration.
The AWS integration was successfully created and looking at the AWS Observability section, I can see all my functions (lambdas) being monitored.
However, there are no logs or metrics in the Metrics and other dashboards.
I am not sure what I am doing wrong, but have reviewed the IAM permissions and they look good. Cloudwatch logs look good.
Only thing I can mention is that the AWS integration Cloudformation template was run in US-EAST-1 which seems to be mandatory. My lambda functions and api gateways are in AF-SOUTH-1 though.
Could this perhaps be the reason?
serverless.yml
# "org" ensures this Service is used with the correct Serverless Framework Access Key.
org: sampleOrg
# "app" enables Serverless Framework Dashboard features and sharing them with other Services.
app: basic-app-01
# "service" is the name of this project. This will also be added to your AWS resource names.
service: basic-http-api
provider:
name: aws
runtime: nodejs20.x
stage: dev
region: af-south-1
stages:
dev:
observability: true
functions:
hello:
handler: handler.hello
events:
- httpApi:
path: /
method: get
testparams:
handler: users/handler.testparams
events:
- httpApi:
path: /users/{userId}
method: get