We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bf0ac commit e65fd28Copy full SHA for e65fd28
compute/custom-defender-images/deploy/iam.tf
@@ -30,7 +30,7 @@ resource "aws_iam_policy" "ec2-launch-policy" {
30
Action: [
31
"ec2:RunInstances",
32
"ec2:TerminateInstances"
33
- ]
+ ],
34
Resource: [
35
"arn:aws:ec2:${var.region}:${data.aws_caller_identity.current.account_id}:instance/*",
36
"arn:aws:ec2:${var.region}:${data.aws_caller_identity.current.account_id}:key-pair/*",
@@ -46,7 +46,7 @@ resource "aws_iam_policy" "ec2-launch-policy" {
46
47
48
49
50
Resource: "arn:aws:ec2:${var.region}::image/ami-*",
51
Condition: {
52
StringEquals: {
0 commit comments