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 eda54ff commit 83de4b5Copy full SHA for 83de4b5
terraform/modules/lambdas/main.tf
@@ -108,9 +108,25 @@ resource "aws_iam_policy" "entra_policy" {
108
}
109
]
110
}))
111
+}
112
113
+resource "aws_iam_policy" "api_only_policy" {
114
+ name = "${var.ProjectId}-entra-policy"
115
+ policy = jsonencode(({
116
+ Version = "2012-10-17"
117
+ Statement = [
118
+ {
119
+ Effect = "Allow",
120
+ Action = ["sqs:SendMessage"],
121
+ Resource = [
122
+ "arn:aws:sqs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:infra-core-api-*",
123
+ ]
124
+ }
125
126
+ }))
127
128
129
+
130
resource "aws_iam_policy" "sqs_policy" {
131
name = "${var.ProjectId}-sqs-consumer-policy"
132
policy = jsonencode(({
0 commit comments