We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c39af18 commit ef0bf58Copy full SHA for ef0bf58
1 file changed
infrastructure/iam.tf
@@ -214,11 +214,11 @@ resource "aws_iam_role" "api_gateway_cloudwatch" {
214
215
resource "aws_iam_role_policy_attachment" "api_gateway_logs" {
216
count = local.is_sandbox ? 0 : 1
217
- role = aws_iam_role.api_gateway_cloudwatch.name
+ role = aws_iam_role.api_gateway_cloudwatch[0].name
218
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs"
219
}
220
221
resource "aws_api_gateway_account" "logging" {
222
223
- cloudwatch_role_arn = aws_iam_role.api_gateway_cloudwatch.arn
+ cloudwatch_role_arn = aws_iam_role.api_gateway_cloudwatch[0].arn
224
0 commit comments