Skip to content

Commit b32ea24

Browse files
committed
more IAM changes
1 parent ae22ff8 commit b32ea24

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ data "aws_iam_policy_document" "lambda_policy_doc" {
4141
]
4242

4343
resources = [
44-
"arn:aws:autoscaling:${local.region}:${local.account_id}:*:autoScalingGroupName/${var.asg_name}"
44+
"arn:aws:autoscaling:${local.region}:${local.account_id}:autoScalingGroup:*:autoScalingGroupName/${var.asg_name}"
4545
]
4646
}
4747
statement {
@@ -60,7 +60,7 @@ data "aws_iam_policy_document" "lambda_policy_doc" {
6060
]
6161

6262
resources = [
63-
var.codepipeline_arn
63+
"*"
6464
]
6565
}
6666

variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,3 @@ variable "tags" {
2828
type = map
2929
description = "Map of tags that should be added to stuff"
3030
}
31-
32-
variable "codepipeline_arn" {
33-
type = string
34-
description = "ARN of the codepipeline we are interacting with. * will work for all"
35-
}

0 commit comments

Comments
 (0)