Difference between revisions of "Terraform resource: aws cloudwatch log group"
Jump to navigation
Jump to search
(Created page with "{{lc}} aws_cloudwatch_log_group Terraform AWS cloudwatch") |
|||
(20 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group | |
− | |||
+ | <code>aws_cloudwatch_log_group</code> | ||
− | [[Terraform AWS | + | == Arguments == |
+ | * <code>[[retention_in_days]]</code> | ||
+ | |||
+ | == Examples == | ||
+ | resource "aws_cloudwatch_log_group" "yada" { | ||
+ | [[name]] = "Yada" | ||
+ | |||
+ | tags = { | ||
+ | Environment = "production" | ||
+ | Application = "serviceA" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | == Related resources == | ||
+ | {{aws ecs cluster with logging encryption}} | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[Error: updating CloudWatch Logs Log Group]]</code> | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[aws logs create-log-group]]</code> | ||
+ | * <code>[[tags_all]]</code>, <code>[[tags]]</code> | ||
+ | * [[Amazon CloudWatch Logs]]: [[Amazon CloudWatch Logs groups]] | ||
+ | |||
+ | == See also == | ||
+ | * {{tf cloudwatch}} | ||
+ | * {{Terraform AWS}} | ||
+ | * {{aws logs}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 10:51, 29 February 2024
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group
aws_cloudwatch_log_group
Arguments[edit]
Examples[edit]
resource "aws_cloudwatch_log_group" "yada" { name = "Yada" tags = { Environment = "production" Application = "serviceA" } }
Related resources[edit]
resource "aws_ecs_cluster" "your_cluster" { name = "your-${var.env}-cluster" configuration { execute_command_configuration { kms_key_id = aws_kms_key.cw_kms_key.arn logging = "OVERRIDE" log_configuration { cloud_watch_encryption_enabled = true cloud_watch_log_group_name = aws_cloudwatch_log_group.your_cw_group.name } } } }
Errors[edit]
Related[edit]
See also[edit]
- Terraform AWS CloudWatch:
aws_cloudwatch_metric_alarm, aws_cloudwatch_log_group, aws_cloudwatch_dashboard
- Terraform AWS: providers, modules, resources
hashicorp/aws
aws logs
[get-log-events | tail | describe-log-groups
|create-log-group | delete-log-group | describe-log-streams ],
AWS::Logs::LogGroup
Advertising: