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

lambda is not launching in VPC #822

Open
msidd opened this issue Sep 20, 2023 · 1 comment
Open

lambda is not launching in VPC #822

msidd opened this issue Sep 20, 2023 · 1 comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec

Comments

@msidd
Copy link

msidd commented Sep 20, 2023

What happened?

I trying to deploy a very simple API* in AWS (goal is to eventualy launch in Azure as well) i am following this

I have provided
cloud-aws:externalSecurityGroups
cloud-aws:externalSubnets:
cloud-aws:externalVpcId:

When launching the api for aws , it does not attach lambda with VPC

Example

here is my index.js

let endpoint = new cloud.API("telemetry");
endpoint.post("/telemetry", (req, res) => {
    
    
    res.status(200).json({ hello:'word'});
});

exports.endpoint = endpoint.publish().url;

Output of pulumi about

CLI
Version 3.78.1
Go Version go1.20.7
Go Compiler gc

Plugins
NAME VERSION
aws 5.42.0
awsx 1.0.5
docker 3.6.1
nodejs unknown

Host
OS darwin
Version 13.5
Arch x86_64

This project is written in nodejs: executable='/usr/local/bin/node' version='v18.17.1'

Current Stack: mygithub/telemetry-app/dev

Found no resources associated with dev

Found no pending operations associated with dev

Backend
Name pulumi.com
URL https://app.pulumi.com/mygithub
User mygithub
Organizations mygithub

Dependencies:
NAME VERSION
@pulumi/awsx 1.0.5
@pulumi/cloud-aws 0.40.2
@pulumi/cloud 0.40.2
@pulumi/pulumi 3.83.0
kafkajs 2.2.4
@pulumi/aws 5.42.0

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@msidd msidd added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Sep 20, 2023
@mjeffryes
Copy link
Member

Thanks for your patience here; curious if you were able to make any further progress with the external VPC? I noticed from the code here:

if (!config.externalSubnets || !config.externalSecurityGroups || !config.externalPublicSubnets) {
that you also need to provide cloud-aws:externalPublicSubnets in your config for an external VPC.

@mjeffryes mjeffryes added impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants