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 update static files? #70

Open
pnx472 opened this issue Jan 30, 2024 · 1 comment
Open

How to update static files? #70

pnx472 opened this issue Jan 30, 2024 · 1 comment

Comments

@pnx472
Copy link

pnx472 commented Jan 30, 2024

Hi,

I'm not sure what's the workflow to update static file or index.html after successful deployment with "aws cloudformation package ... && aws cloudformation deploy ...".

Let's say we would like to update the h1 tag of index.html.

It looks like the code in lambda function is updated but the handler from layer is not invoked to copy the files to s3 bucket.

Am I missing something?

@ramirezj
Copy link

Stumbled over the same issue and the following worked for me:

  1. Push your static files to the bucket in S3, either via aws sync or the console
  2. Deploy the packaged CloudFormation stack, repackaging if necessary, to trigger the CopyFunction
  3. Invalidate the CloudFront Distribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants