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

Fails when passing function_role in the terraform script #50

Open
pragmaticivan opened this issue Dec 8, 2021 · 0 comments
Open

Fails when passing function_role in the terraform script #50

pragmaticivan opened this issue Dec 8, 2021 · 0 comments

Comments

@pragmaticivan
Copy link

-----------------------------------------------------
  on .terraform/modules/newrelic_log_ingestion/terraform.tf line 113, in resource "aws_iam_role" "lambda_role":
 113:   count = var.function_role == null ? 1 : 0

The "count" value depends on resource attributes that cannot be determined
until apply, so Terraform cannot predict how many instances will be created.
To work around this, use the -target argument to first apply only the
resources that the count depends on.

Usage:

module "newrelic_log_ingestion" {
  source             = "github.com/newrelic/aws-log-ingestion"
  nr_license_key     = data.aws_secretsmanager_secret_version.newrelic_api_key_secret.secret_string
  nr_logging_enabled = true
  function_role      = aws_iam_role.newrelic_lambda_role.arn
}
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