-
Notifications
You must be signed in to change notification settings - Fork 259
Description
Following the tutorial https://developer.hashicorp.com/terraform/tutorials/aws/aws-control-tower-aft
With the latest stable terraform version 1.13.3 the initial terraform apply fails with the reason that "/aws/lambda/aft-lambda-layer-codebuild-trigger already exists in the learn-aft account.
Edit: Also tested with version 1.9.0. Does not work.
Error: creating CloudWatch Logs Log Group (/aws/lambda/aft-lambda-layer-codebuild-trigger): operation error CloudWatch Logs: CreateLogGroup, https response error StatusCode: 400, RequestID: c6ebcd2d-13af-4e7c-b3de-69be89e02f10, ResourceAlreadyExistsException: The specified log group already exists │ │ with module.aft.module.aft_lambda_layer.aws_cloudwatch_log_group.codebuild_trigger_loggroup, │ on .terraform/modules/aft/modules/aft-lambda-layer/lambda.tf line 25, in resource "aws_cloudwatch_log_group" "codebuild_trigger_loggroup": │ 25: resource "aws_cloudwatch_log_group" "codebuild_trigger_loggroup" { │