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

feat: more lambda config options #573

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

leonard-henriquez
Copy link
Contributor

Added new features to make the Lambda terraform config more versatile:

  • Use the new cache policy system (since the previous is deprecated)
  • Use the new cors policy system (deprecated + and did not forward the right headers)
  • Remove geo_restriction because it is specific, not documented and hard to debug
  • Add aws_access_key / aws_secret_key for easier setup
  • Allow to use custom buz_source_image
  • bug fix: with build_number = var.buz_version, I have an error because the docker login only last a few hours so it needs to run every time -> my solution isn't very clean but I'm not really a pro in Terraform so tell me if you have a better solution !

@leonard-henriquez leonard-henriquez changed the title fet: more lambda config options feat: more lambda config options Dec 9, 2023
@@ -4,6 +4,16 @@ variable "aws_region" {
default = "us-east-1"
}

variable "aws_access_key" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use named profiles (with profile) instead of aws_access_key and aws_secret_access_key. Static creds are increasingly 💀 .

https://registry.terraform.io/providers/hashicorp/aws/latest/docs#profile

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-using-profiles

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it 👌

@jakthom
Copy link
Contributor

jakthom commented Dec 10, 2023

Looks good - one small fix re: aws named profiles requested.

Copy link
Contributor

@jakthom jakthom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@leonard-henriquez leonard-henriquez changed the base branch from main to 0.18.0 December 10, 2023 21:14
@leonard-henriquez leonard-henriquez merged commit b8108a6 into silverton-io:0.18.0 Dec 12, 2023
2 checks passed
@leonard-henriquez leonard-henriquez deleted the feat/tf-lambda-config branch December 12, 2023 15:13
leonard-henriquez added a commit that referenced this pull request Dec 12, 2023
* v0.18.0

* feat: extend cors (#578)

* fix: cors not applied to all routes (#577)

* feat: improve schema read (#576)

* feat: collect ip fingerprint and better tstamp (#575)

* feat: log schema metadata (#574)

* feat: more lambda config options (#573)

* fet: more lambda config options

* chore: remove unused var

* review

---------

Co-authored-by: Léonard Henriquez <leonard@topo.io>
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

Successfully merging this pull request may close these issues.

None yet

2 participants