How to build node project within a Dynamic Resource Provider? #7310
Unanswered
austinrivas
asked this question in
Pulumi in Practice
Replies: 2 comments
-
@jaxxstorm do you know the answers to these questions? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@komalali it seems like question 2 works within a github action, so it seems like the node version error may just be a local issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
This may come across more as a question about best practices than a bug report. I apologize if this is the wrong venue.
Issue:
I am trying to use Pulumi to build a static SPA (ts react app) and deploy it to S3.
I have been able to find lots of documentation on how to deploy static assets to S3 via Pulumi, and everything there is working fine.
Where I am stuck is at the build step.
My SPA has dependencies on environment variables that are defined by Pulumi (API url for example), that need to be provided to my SPA at build time.
Currently this is what I have:
This function is being called within a dynamic resource provider that is deploying the build static assets to an S3 bucket. The provider is working fine, and if I build the app outside of Pulumi everything works great.
However if I run the
buildWeb
function above within the dynamic resource provider I get the following error.In summary I have 3 Question:
Beta Was this translation helpful? Give feedback.
All reactions