Skip to content

Commit

Permalink
fixed roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Bakhmetev committed Sep 18, 2024
1 parent 1ad83c1 commit ee0938d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tf-aws-rest-api-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,7 @@ resource "aws_cloudwatch_log_group" "this" {

resource "aws_cloudwatch_log_stream" "this" {
name = "${module.name.id}-cloudwatch-log-stream"
log_group_name = aws_cloudwatch_log_group.example.name
}

resource "aws_iam_account_setting" "cloudwatch_logs_role_arn" {
name = "${module.name.id}-cloudwatch:logs:roleArn"
value = aws_iam_role.cloudwatch_logs_role.arn
log_group_name = aws_cloudwatch_log_group.this.name
}

resource "aws_iam_role" "cloudwatch_logs_role" {
Expand Down

0 comments on commit ee0938d

Please sign in to comment.