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

[Tutorial][AWS] Request for example on building and uploading static web apps #1184

Open
Lepozepo opened this issue Dec 2, 2019 · 4 comments
Labels
kind/enhancement Improvements or new features

Comments

@Lepozepo
Copy link

Lepozepo commented Dec 2, 2019

Problem description

It would be great to have a tutorial on how to upload static web apps on that require some form of build phase that requires environment variables from pulumi.Outputs before uploading files to the host. Specifically with AWS S3 would be great.

Affected product version(s)

Suggestions for a fix

@susanev susanev added the kind/enhancement Improvements or new features label Feb 23, 2022
@susanev susanev transferred this issue from pulumi/docs Feb 23, 2022
@scottslowe
Copy link
Contributor

@Lepozepo Is this something you still feel would be useful? If so, can you provide a few more details?

@scottslowe scottslowe added the awaiting-feedback Blocked on input from the author label Nov 3, 2022
@Lepozepo
Copy link
Author

Lepozepo commented Nov 3, 2022

Ah yeah! @scottslowe This is old now but I think an example could be pretty useful regardless. This is what I ended up building back then which internally uses this construct. You can see in the construct that there is a build command with environment variables being passed to the project before uploading the build to S3. I believe the better path now is to use local.Command instead with triggers to have it run every single time though unless you believe there is a better way.

@scottslowe
Copy link
Contributor

@Lepozepo Thanks for responding! OK, I'll keep this in our backlog, although something like this may be better suited to go into a blog post or similar instead as an example in this repository.

@scottslowe scottslowe removed the awaiting-feedback Blocked on input from the author label Nov 3, 2022
@scottslowe scottslowe changed the title New AWS Tutorial Request [Tutorial][AWS] Request for example on building and uploading static web apps Nov 3, 2022
@cnunciato
Copy link
Contributor

cnunciato commented Nov 3, 2022

Yes! This might also be a good "next steps" add-on to our existing static-website template pages, given how common it is.

Indeed, for the serverless templates, I needed something kind like this myself -- some way to tell the UI what the computed serverless API endpoint was. I ended up building a JSON config file for it, and then fetching that file from the UI, but an example of how to bake output values right into a front-end build process would be great. Thanks for suggesting it. (And FWIW, I do think an example could also be a good fit for this.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

5 participants