Skip to content

Commit

Permalink
updating resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
LumosViridi committed May 23, 2022
1 parent 10646a6 commit bff8cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ resource "aws_lambda_permission" "this" {
source_arn = aws_sns_topic.this.arn
}

data "aws_iam_policy_document" "this" {
data "aws_iam_policy_document" "this_assume" {
statement {
effect = "Allow"
actions = ["sts:AssumeRole"]
Expand All @@ -92,7 +92,7 @@ data "aws_iam_policy_document" "this" {
resource "aws_iam_role" "this" {
name = "${var.name}-role"
description = "Ability to send Cloudwatch info in an SNS message to Slack"
assume_role_policy = data.aws_iam_policy_document.this.json
assume_role_policy = data.aws_iam_policy_document.this_assume.json
tags = var.tags
}

Expand Down

0 comments on commit bff8cbb

Please sign in to comment.