Log Group
Provides a CloudWatch Log Group resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.LogGroup;
import com.pulumi.aws.cloudwatch.LogGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var yada = new LogGroup("yada", LogGroupArgs.builder()
.tags(Map.ofEntries(
Map.entry("Application", "serviceA"),
Map.entry("Environment", "production")
))
.build());
}
}
Content copied to clipboard
Import
Cloudwatch Log Groups can be imported using the name
, e.g.,
$ pulumi import aws:cloudwatch/logGroup:LogGroup test_group yada
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested.
Link copied to clipboard