I'm trying to give access to a lambda function to manage (create/destroy, etc) route53 resources but only those that have a specific tag key and value pair. This is the relevant portion of the serverless.yaml file:
provider:
name: aws
runtime: nodejs14.x
iam:
role:
statements:
- Effect: "Allow"
Action: "route53:*"
Resource: "*"
# Condition: ??
functions:
lambda:
handler: index.handler
Basically do this but with serverless. Thanks in advance!