Skip to content

Help needed to create and then overwrite a S3 BucketObject in the same session #7309

Discussion options

You must be logged in to vote

I am changing the value as part of the same configuration.

To add some context, I am piloting a infrastructure as code solution with Pulumi. I've documented my steps here: https://github.com/GeXiaoguo/pulumi-s3-static-web/blob/master/readme-consuming-pulumi-output.md
To summarize, I am deploying the following resources

  1. S3 backed front end(i.e. index.html + runtime-config.js)
    where runtime-config.js is a file from a local folder and has the content below
window['runtime-config'] = {apiUrl: 'http://localhost:8080/api'}
  1. AWS API Gateway + Lambda for backend
  2. Overwrite the runtime-config.js file in the S3 bucket with the following code
var url = CreateRestAPIGatewayResources(apiGatewayLamb…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tenwit
Comment options

Answer selected by katcosgrove
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
4 participants
Converted from issue

This discussion was converted from issue #5542 on June 15, 2021 18:46.