我正在使用 Azure Monitor/Log Analytics 成功触发警报。我正在尝试将警报发送到 Microsoft Teams 频道(以及用于调试的松弛频道),但没有成功。
我有一个成功触发的警报。我有一个操作组,配置了我的电子邮件、短信和 azure 应用程序推送。每次警报触发时,我都会收到这些消息。
我有另一个行动小组,其中有几个 webhooks 用于 Microsoft Teams 和 Slack 频道。我在这些频道上没有收到任何消息。
我已启用自定义“为 webhook 包含自定义 Json 负载”并粘贴了建议的 json 和以下内容
{ "AlertName":"#alertrulename", "AlertDescription":"#description", "LinkToSearchResults":"#linktosearchresults"}
我收到电子邮件/短信/推送通知,但没有收到网络挂钩的消息。我已经尝试将操作组中的通用警报模式设置为 no,这是默认设置(以及在 yes 上尝试也没有成功)。
怀疑这与此处提到的自定义有效负载 json 有关https://azure.microsoft.com/en-gb/blog/webhooks-for-azure-alerts/
关于如何将我的警报发送到团队的任何想法?
谢谢
尝试运行 aws cli rds 命令来运行一些 sql 来更新数据库。使用以下内容:
aws rds-data execute-statement \
--resource-arn "arn:aws:rds:us-east-1:myaccountnumber:cluster:mysql-database" \
--database "myDBname" \
--sql "select * from configurations where configuration = 'mydb' and propertykey = 'environment';"
--secret-arn "arn:aws:secretsmanager:us-west-2:123456789012:secret:mysecret"
Run Code Online (Sandbox Code Playgroud)
我正在努力弄清楚秘密 ARN 是什么?
我知道它存储在机密管理器中,但不知道 RDS 实例中的内容是什么。
我如何在实例上设置它,或者它是类似用户密码的东西吗?
提前致谢
当前从 gitlab terraform 模块注册表中提取我自己的模块时遇到问题。浏览了 gitlab 文档但仍在挣扎。遵循说明并使用以下配置:
\nmodule "ResourceGroup" {\n source = "gitlab.com/<myuser>/resourcegroupmodule/mysystem"\n version = "0.0.1"\n \n base_name = "TerraformExample01"\n location = "West US"\n}\nRun Code Online (Sandbox Code Playgroud)\n当我尝试运行 terraform init 时,出现以下错误:
\n\xe2\x94\x82 Error: Error accessing remote module registry\n\xe2\x94\x82 \n\xe2\x94\x82 Failed to retrieve available versions for module "ResourceGroup" (main.tf:25) from gitlab.com: error looking up module versions:\n\xe2\x94\x82 401 Unauthorized.\nRun Code Online (Sandbox Code Playgroud)\n尝试按照说明添加凭证块,但也没有成功。将此块添加到 main.tf 文件中:
\ncredentials "gitlab.com" {\n token = "<myAPIkey>"\n}\nRun Code Online (Sandbox Code Playgroud)\n非常感谢任何帮助。感觉像是将凭证部分/api 令牌放在了错误的位置。
\n我正在尝试启动并运行 documentdb 集群,并使其在我创建的私有子网内运行。
depends_on在没有创建子网的情况下运行下面的配置,我收到以下错误消息:
Error: error creating DocDB cluster: DBSubnetGroupNotFoundFault: DB subnet group 'subnet-0b97a3f5bf6db758f' does not exist.
status code: 404, request id: 59b75d23-50a4-42f9-99a3-367af58e6e16
Run Code Online (Sandbox Code Playgroud)
添加了依赖设置以等待创建子网,但遇到了问题。
cluster_identifier = "my-docdb-cluster"
engine = "docdb"
master_username = "myusername"
master_password = "mypassword"
backup_retention_period = 5
preferred_backup_window = "07:00-09:00"
skip_final_snapshot = true
apply_immediately = true
db_subnet_group_name = aws_subnet.eu-west-3a-private
depends_on = [aws_subnet.eu-west-3a-private]
}
Run Code Online (Sandbox Code Playgroud)
在运行 terraform apply 时,我在配置上遇到错误:
Error: error creating DocDB cluster: DBSubnetGroupNotFoundFault: DB subnet group 'subnet-0b97a3f5bf6db758f' does not exist.
status code: 404, request id: 8b992d86-eb7f-427e-8f69-d05cc13d5b2d
on …Run Code Online (Sandbox Code Playgroud) 我\xe2\x80\x99m 完成本教程并设法将一切设置正常。
\n\n在对计划进行排队时,我收到以下与变量相关的错误,但无法深入了解它。
\n有人对如何推进此事有任何想法吗?谢谢
\n希望这将是一个很容易启动和运行的过程!
\nConfiguring remote state backend...\nInitializing Terraform configuration...\n\nWarning: Value for undeclared variable\n\nThe root module does not declare a variable named "tag_user_name" but a value\nwas found in file "/terraform/terraform.tfvars". To use this value, add a\n"variable" block to the configuration.\n\nUsing a variables file to set an undeclared variable is deprecated and will\nbecome an error in a future release. If you wish to provide certain "global"\nsettings to all configurations in your organization, use TF_VAR_...\nenvironment …Run Code Online (Sandbox Code Playgroud)