I have api gateway with lambda
I make the gateway simply with this.
const lambdaGw = new apigw.LambdaRestApi(this, "LambdaEndpoint", {
restApiName:`vr-${targetEnv}-lambda-endpoint`,
handler: myLambda,
});
It makes the api gateway.
I go to the console and choose one gateway and went to setting, but can't find the log setting.
So, I guess, I need to do something in advance to gether the access log?.
then I checked the [LambdaRestApi document][1]
However I could't find the any information about logs.
What I want to do is checking the logs and restrict the access from a certain domain.
Access logs can be enabled via the deployOptions
prop , which takes StageOptions
.
Specify the accessLogDestination
to enable access logs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.