-
Notifications
You must be signed in to change notification settings - Fork 125
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
refactor: Refactor fargate-fluentbit
addon module.
#142
Conversation
main.tf
Outdated
) | ||
} | ||
|
||
resource "kubernetes_namespace" "aws_observability" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "kubernetes_namespace" "aws_observability" { | |
resource "kubernetes_namespace_v1" "aws_observability" { |
main.tf
Outdated
} | ||
|
||
# fluent-bit-cloudwatch value as the name of the CloudWatch log group that is automatically created as soon as your apps start logging | ||
resource "kubernetes_config_map" "aws_logging" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "kubernetes_config_map" "aws_logging" { | |
resource "kubernetes_config_map_v1" "aws_logging" { |
variables.tf
Outdated
default = false | ||
} | ||
|
||
variable "fargate_fluentbit_config" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variable "fargate_fluentbit_config" { | |
variable "fargate_fluentbit" { |
main.tf
Outdated
fargate_fluentbit_cwlog_group = "/${var.cluster_name}/fargate-fluentbit-logs" | ||
fargate_fluentbit_cwlog_stream_prefix = "fargate-logs-" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets try to be consistent in how we are asking users to provide configuration values for addons. This should look something like...
fargate_fluentbit_cwlog_group = "/${var.cluster_name}/fargate-fluentbit-logs" | |
fargate_fluentbit_cwlog_stream_prefix = "fargate-logs-" | |
ffargate_fluentbit_cwlog_group = try(fargate_fluentbit.cwlog_group, "/${var.cluster_name}/fargate-fluentbit-logs") | |
fargate_fluentbit_cwlog_stream_prefix = try(fargate_fluentbit.cwlog_stream_prefix "fargate-logs-") |
What does this PR do?
fargate-fluentbit
addon.More
pre-commit run -a
with this PRFor Moderators
Additional Notes
terraform-aws-eks-blueprints-addons git:(refactor/fargate-fluentbit) ✗ pre-commit run -a trim trailing whitespace.................................................Passed fix end of files.........................................................Passed check for merge conflicts................................................Passed detect private key.......................................................Passed detect aws credentials...................................................Passed Terraform fmt............................................................Passed Terraform docs...........................................................Passed Terraform validate with tflint...........................................Passed Terraform validate.......................................................Passed Terraform validate with tfsec............................................Passed
Additional notes
Not sure if this is the best way to refactor this module, since it does not use Helm charts. Feedbacks are welcome!