<http://tugboat.dev/utit9r.png>
# sst
c

http://tugboat.dev/utit9r.png

f
Hey @Carter Himmel, just to clarify, r u using IAM authorization for ur Api, and you want to configure who can invoke the Api?
c
trying to only allow access from select IPs
f
only allow ppl from certain IPs to be able to call the Api?
If you are using the
Auth
construct, and If you are using
IAM
authorizer for your Api, and If you are trying to allow access from select IPs to invoke ur Api, you can try this:
Copy code
const auth = new Auth(this, "Auth", { ... });

auth.attachPermissionsForAuthUsers([
  // The two PolicyStatements you shared above
  new iam.PolicyStatement({ ... }),
  new iam.PolicyStatement({ ... }),
]);
Is this what you are trying to do?
c
not quite. im trying to only allow a third party service access to specific api gateways
f
It seems API Gateway HTTP Api (used by sst.Api) does not support resource policy