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

Source code change does not trigger a redeployment #124

Open
AldinDuraki opened this issue Sep 10, 2024 · 0 comments
Open

Source code change does not trigger a redeployment #124

AldinDuraki opened this issue Sep 10, 2024 · 0 comments

Comments

@AldinDuraki
Copy link

AldinDuraki commented Sep 10, 2024

Description:

Whenever there is a source code change (new version), the terraform module does not deploy the new version of the lambda.
This is rather inconvenient since i need to use the

terraform apply -replace="module.newrelic_log_ingestion.aws_lambda_function.ingestion_function"

command.

module "newrelic_log_ingestion" {
source = "github.com/newrelic/aws-log-ingestion"
nr_license_key = local.newrelic_licence_key
nr_tags = null
}

Probably missing:

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_layer_version
source_code_hash - (Optional) Virtual attribute used to trigger replacement when source code changes. 
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

1 participant