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

fix: log config #93

Merged
merged 1 commit into from Aug 18, 2020
Merged

Conversation

ArchiFleKs
Copy link
Contributor

Fix this error:

Error: Invalid function argument                                                                                                                                                                                                         
                                                                                                                                                                                                                                         
  on main.tf line 32, in locals:                                                                                                                                                                                                         
  32:   log_configuration_secret_options = var.log_configuration != null ? lookup(var.log_configuration, "secretOptions", null) : null                                                                                                   
    |----------------                                                                                                                                                                                                                        | var.log_configuration is "{\"logDriver\":\"json-file\",\"options\":{\"max-file\":\"3\",\"max-size\":\"10m\"},\"secretOptions\":null}"                                                                                                                                                                                                                                                                                                                                       
Invalid value for "inputMap" parameter: lookup() requires a map as the first                                                                                                                                                             argument.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
Releasing state lock. This may take a few moments...                                                                                                                                                                                     
[terragrunt] 2020/08/04 10:29:47 Hit multiple errors:          

@nitrocode
Copy link
Member

/rebuild-readme

@nitrocode
Copy link
Member

/test all

@nitrocode
Copy link
Member

@ArchiFleKs can you share your input for that variable?

@ArchiFleKs
Copy link
Contributor Author

@nitrocode:

log_configuration = {
    logDriver = "awslogs"
    options = {
      "awslogs-create-group"  = true
      "awslogs-region"        = "eu-central-1"
      "awslogs-group"         = "mysqldump"
      "awslogs-stream-prefix" = "cfd-dev"
    }
    secretOptions = null

@nitrocode
Copy link
Member

Thank you.

Have you tested this change locally to make sure this works too?

Copy link
Member

@nitrocode nitrocode left a comment

Choose a reason for hiding this comment

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

I cannot reproduce the error locally using 0.12.29 from the examples/complete module but I don't see anything wrong with this change.

@nitrocode nitrocode merged commit 90d978e into cloudposse:master Aug 18, 2020
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