Skip to content

Commit

Permalink
Move moved statements
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbasstard committed Apr 23, 2024
1 parent 35aee98 commit bc33e4f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
20 changes: 0 additions & 20 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -190,23 +190,3 @@ resource "aws_lambda_function" "default" {
}
}
}

moved {
from = aws_iam_role_policy.default[0]
to = module.lambda_role[0].aws_iam_role_policy.default[0]
}

moved {
from = aws_iam_role.default[0]
to = module.lambda_role[0].aws_iam_role.default
}

moved {
from = aws_iam_role_policy_attachment.default[0]
to = module.lambda_role[0].aws_iam_role_policy_attachment.default["arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"]
}

moved {
from = aws_iam_role_policy_attachment.enable_xray_daemon_write[0]
to = module.lambda_role[0].aws_iam_role_policy_attachment.default["arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess"]
}
19 changes: 19 additions & 0 deletions moved.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
moved {
from = aws_iam_role_policy.default[0]
to = module.lambda_role[0].aws_iam_role_policy.default[0]
}

moved {
from = aws_iam_role.default[0]
to = module.lambda_role[0].aws_iam_role.default
}

moved {
from = aws_iam_role_policy_attachment.default[0]
to = module.lambda_role[0].aws_iam_role_policy_attachment.default["arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"]
}

moved {
from = aws_iam_role_policy_attachment.enable_xray_daemon_write[0]
to = module.lambda_role[0].aws_iam_role_policy_attachment.default["arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess"]
}

0 comments on commit bc33e4f

Please sign in to comment.