|
3178 | 3178 | # ^ punctuation.accessor.dot.terraform |
3179 | 3179 | # ^^^^^ variable.other.member.terraform |
3180 | 3180 | # ^^^^^^ constant.numeric.integer.terraform |
| 3181 | + |
| 3182 | + |
| 3183 | +resource "aws_iam_role_policy" "attach-inline-policy-1" { |
| 3184 | + name = "xxx" |
| 3185 | + role = aws_iam_role.execution-role.name |
| 3186 | + policy = jsonencode({ |
| 3187 | + Version = "2012-10-17" |
| 3188 | +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.terraform meta.function-call.terraform meta.braces.terraform |
| 3189 | +# ^^^^^^^ meta.mapping.key.terraform string.unquoted.terraform |
| 3190 | +# ^ keyword.operator.assignment.terraform |
| 3191 | +# ^^^^^^^^^^^^ meta.string.terraform string.quoted.double.terraform |
| 3192 | +# ^ punctuation.definition.string.begin.terraform |
| 3193 | +# ^ punctuation.definition.string.end.terraform |
| 3194 | + "Statement": [ |
| 3195 | +#^^^^^^^^^^^^^^^^^^^^^ meta.block.terraform meta.function-call.terraform |
| 3196 | +#^^^^^^^ meta.braces.terraform |
| 3197 | +# ^^^^^^^^^^^ meta.mapping.key.json string.quoted.double.json |
| 3198 | +# ^ punctuation.definition.string.begin.json |
| 3199 | +# ^ punctuation.definition.string.end.json |
| 3200 | +# ^^ meta.braces.terraform |
| 3201 | +# ^ punctuation.separator.key-value.json |
| 3202 | +# ^ meta.mapping.value.json meta.sequence.json punctuation.section.sequence.begin.json |
| 3203 | + { |
| 3204 | + "Action": [ |
| 3205 | + "lambda:InvokeFunction", |
| 3206 | + "lambda:InvokeAsync" |
| 3207 | + ], |
| 3208 | + "Resource": "arn:aws:lambda:*:*:function:${var.environment}-xxx", |
| 3209 | +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.terraform meta.function-call.terraform meta.mapping.value.json meta.sequence.json |
| 3210 | +#^^^^^^^^^^^^^^^ meta.mapping.json |
| 3211 | +# ^^^^^^^^^^ meta.mapping.key.json string.quoted.double.json |
| 3212 | +# ^ punctuation.definition.string.begin.json |
| 3213 | +# ^ punctuation.definition.string.end.json |
| 3214 | +# ^^ meta.mapping.json |
| 3215 | +# ^ punctuation.separator.key-value.json |
| 3216 | +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.mapping.value.json meta.string.json |
| 3217 | +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ string.quoted.double.json |
| 3218 | +# ^ punctuation.definition.string.begin.json |
| 3219 | +# ^^^^^^^^^^^^^^^^^^ meta.interpolation.terraform |
| 3220 | +# ^^ punctuation.section.interpolation.begin.terraform |
| 3221 | +# ^^^^^^^^^^^^^^^ source.terraform |
| 3222 | +# ^^^ variable.language.terraform |
| 3223 | +# ^ punctuation.accessor.dot.terraform |
| 3224 | +# ^^^^^^^^^^^ variable.other.member.terraform |
| 3225 | +# ^ punctuation.section.interpolation.end.terraform |
| 3226 | +# ^^^^^ string.quoted.double.json |
| 3227 | +# ^ punctuation.definition.string.end.json |
| 3228 | +# ^ meta.mapping.json punctuation.separator.sequence.json |
| 3229 | + "Effect": "Allow" |
| 3230 | + } |
| 3231 | + ] |
| 3232 | + }) |
| 3233 | +} |
0 commit comments