Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create internal APIs without VPC #32

Open
azindg opened this issue Dec 23, 2019 · 2 comments
Open

How to create internal APIs without VPC #32

azindg opened this issue Dec 23, 2019 · 2 comments
Labels
kind/question Questions about existing features

Comments

@azindg
Copy link

azindg commented Dec 23, 2019

Hello,

I need to host a web site that is accessible only by my lambda function. That function uses a headless chromium to render specific HTML+JS templates, so I need to have a real web server for those templates, not just a read permission to S3 objects.

It seems that a good general way to do private API (not limited to s3) is to use AuthorizationType "AWS_IAM" in an ApiGateway Method. As far as I understand there is currently no way to specify authorization in awsx.apigateway.API routes. Is that is true? Would it be a good idea to add it?

Is there any way to deny public static s3 website access and left it only for lambda?

Thank you.

@lukehoban
Copy link
Member

The currently supported authorization methods for API Gateway are documented here: https://www.pulumi.com/docs/guides/crosswalk/aws/api-gateway/#controlling-and-managing-access-to-apis

Is there an authorization mode on the underlying api gateway that you do not see supported there yet?

@azindg
Copy link
Author

azindg commented Dec 23, 2019

I want to have an IAM authorization/permissions but couldn't find how to do that in documentation or code. Found this article describing what I'm trying to achieve for Serverless framework: https://dev.to/eoinsha/how-to-create-secure-internal-apis-on-aws-without-vpcs-5e08

@danielrbradley danielrbradley transferred this issue from pulumi/pulumi-awsx May 19, 2022
@lukehoban lukehoban added the kind/question Questions about existing features label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions about existing features
Projects
None yet
Development

No branches or pull requests

2 participants