Skip to content

bailey84j/terraform-kubernetes-cloudwatch-agent

Repository files navigation

terraform-kubernetes-cloudwatch-agent

Terraform module which deploys Kubernetes AWS Cloudwatch Agent

tflint LICENSE Terraform

Examples

Example Description Status
Standard Deploying AWS Cloud Watch Agent using the default settings Standard-Deployment
Custom Customising the deployment to use a different name and namespace Custom-Deployment

Contributing

Report issues/questions/feature requests via issues Full contributing guidelines are covered here

Requirements

Name Version
terraform >= 0.14.8
aws >= 3.63
kubernetes >= 2.0
template >= 2.2.0

Providers

Name Version
aws >= 3.63
kubernetes >= 2.0
template >= 2.2.0

Modules

No modules.

Resources

Name Type
aws_iam_role.this resource
kubernetes_cluster_role.this resource
kubernetes_cluster_role_binding.this resource
kubernetes_config_map.this resource
kubernetes_daemonset.this resource
kubernetes_namespace.this resource
kubernetes_service_account.this resource
aws_caller_identity.current data source
aws_eks_cluster.target data source
aws_iam_policy_document.assume_role_policy data source
aws_partition.current data source
aws_region.current data source
template_file.this data source

Inputs

Name Description Type Default Required
create_iam_role Determines whether a an IAM role is created or to use an existing IAM role for the cloudwatch agent bool true no
create_namespace Determines whether to create a new kubernetes namespace for the cloudwatch agent deployment bool false no
eks_cluster_name The name of the target Kubernetes Cluster string n/a yes
iam_role_arn Existing IAM role ARN for the cloudwatch agent. Required if create_iam_role is set to false string null no
iam_role_description Description of the role string "Permissions required by the Kubernetes Cloudwatch to do it's job." no
iam_role_name Name to use on IAM role created string null no
iam_role_path Cluster IAM role path string "/eks/" no
iam_role_permissions_boundary ARN of the policy that is used to set the permissions boundary for the IAM role string null no
iam_role_tags A map of additional tags to add to the IAM role created map(string) {} no
iam_role_use_name_prefix Determines whether the IAM role name (iam_role_name) is used as a prefix string true no
image_name The name of the cloudwatch container image string "cloudwatch-agent" no
image_version The name of the cloudwatch container image version string "1.247349.0b251399" no
name The name of the cloudwatch deployment string "cloudwatch" no
namespace The namespace to put the cloudwatch deployment in string "kube-system" no
prefix_separator The separator to use between the prefix and the generated timestamp for resource names string "-" no
tags A map of tags to add to all resources map(string) {} no

Outputs

No outputs.