resources = ["${aws_cloudwatch_log_group.MySFNLogGroup.arn}:*"] } statement { effect = "Allow" actions = [ "cloudwatch:PutMetricData", "logs:CreateLogDelivery", "logs:GetLogDelivery", "logs:UpdateLogDelivery", "logs:DeleteLogDelivery", "logs:ListLogDeliveries", "logs:PutResourcePol...
import{ CloudWatchLogsEvent }from"aws-lambda"; exportconsthandler =async( event: CloudWatchLogsEvent ):Promise<void> => { console.log(event) console.log("This is test lambda") } 接着便是infra的代码,放在了deployment下面。 通常而言,需要先对lambda的业务代码进行打包。下面的代码就是生产我们最终用...
rule = "${aws_cloudwatch_event_rule.ec2_stop_rule.name}" arn = "${aws_lambda_function.stop_ec2_lambda.arn}" } 最后一步是向CloudWatch授予执行该lambda函数的权限,否则CloudWatch将无法执行lambda函数。 resource"aws_lambda_permission""allow_cloudwatch_stop"{statement_id="AllowExecutionFromCloudWatch"ac...
aws_cloudwatch_log_group.atlantis resource aws_ecs_service.atlantis resource aws_ecs_task_definition.atlantis resource aws_efs_access_point.this resource aws_efs_file_system.this resource aws_efs_mount_target.this resource aws_iam_role.ecs_task_execution resource aws_iam_role_policy.ecs_task_access...
resource/aws_cloudwatch_log_group: Allow retention_in_days attribute to accept a three year retention period (1096 days) (#29426) resource/aws_db_proxy: Add auth.client_password_auth_type attribute (#28432) resource/aws_firehose_delivery_stream: Add ForceNew to dynamic_partitioning_configuration...
aws_cloudwatch_log_group media_package aws_media_package_channel media_store aws_media_store_container msk aws_msk_cluster nat aws_nat_gateway nacl aws_network_acl organization aws_organizations_account aws_organizations_organization aws_organizations_organizational_unit aws_organizations...
create_cloudwatch_log_group Determines whether a CloudWatch log group is created for each enabled_cloudwatch_logs_exports bool false no create_db_instance Whether to create a database instance bool true no create_db_option_group Create a database option group bool true no create_db_parameter_grou...
aws_cloudwatch_log_group.this resource aws_db_parameter_group.this resource aws_db_subnet_group.this resource aws_iam_role.rds_enhanced_monitoring resource aws_iam_role_policy_attachment.rds_enhanced_monitoring resource aws_rds_cluster.this resource aws_rds_cluster_activity_stream.this resource aws_...
resource "aws_cloudwatch_log_group" "account_balance_report_lambda_log_group" { name = "/aws/lambda/${local.lambda_function_name}" retention_in_days = 30 } resource "aws_lambda_event_source_mapping" "account_balance_report_lambda_source_mappi...
enabled_cloudwatch_logs_exports List of log types to export to cloudwatch. The following log types are supported: audit, error, general, slowquery list(string) [] no engine The name of the database engine to be used for this DB cluster. Valid values: aurora, aurora-mysql, aurora-postgresql...