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

Make Java builds reproducible to reduce Lambda churn #200

Open
patricksanders opened this issue Oct 29, 2022 · 2 comments
Open

Make Java builds reproducible to reduce Lambda churn #200

patricksanders opened this issue Oct 29, 2022 · 2 comments

Comments

@patricksanders
Copy link

When deploying psoxy to AWS using the provided Terraform, the function code bundles get updated with every plan/apply. I believe this can be avoided by making builds reproducible. This looks fairly straightforward, assuming you can require versions of dependencies that support reproducible builds.

@eschultink
Copy link
Member

thanks @patricksanders - definitely something we'd like to deal with. Gave it a quick shot and found that a Maven plugin we're using (to "flatten" the pom.xml) isn't compatible with the approach you link for reproducible builds.

We need to investigate if we can avoid using the flatten plugin, which may avoid this.

@eschultink
Copy link
Member

hey @patricksanders - didn't actually do this, but #226 adds simple check for the build artifact and avoids rebuilding it if it exists, unless you set force_bundle = true in your terraform.tfvars. Forcing the bundle should really only be needed if you're changing Java code, which for customer use cases we wouldn't expect.

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