在地形中,我们可以使用Generic Git Repository来引用外部源。
module "log_group" {
source = "git::https://github.com/terraform-aws-modules/terraform-aws-cloudwatch?ref=v3.0.0"如何对日志组执行此操作?
module "log_group" {
source = "terraform-aws-modules/cloudwatch/aws//modules/log-group"
version = "~> 3.0"
name = "my-app"
retention_in_days = 120
}我试过用git::https://github.com/terraform-aws-modules/terraform-aws-cloudwatch/modules/log_group?ref=v3.0.0,但这是不正确的。
发布于 2022-04-11 09:20:47
我发现了问题。
我应该使用//而不是/
module "log_group" {
source = "git::https://github.com/terraform-aws-modules/terraform-aws-cloudwatch//modules/log-group?ref=v3.0.0"https://stackoverflow.com/questions/71825328
复制相似问题