Skip to content

Commit

Permalink
NOBUG: Fixing terraform.
Browse files Browse the repository at this point in the history
  • Loading branch information
marklise committed Jan 27, 2022
1 parent f9e170c commit af6c529
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform/src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ resource "aws_api_gateway_deployment" "apideploy" {
aws_api_gateway_integration.readPassIntegration,
aws_api_gateway_integration.writePassIntegration,
aws_api_gateway_integration.deletePassIntegration,
aws_api_gateway_integration.metricIntegration,
aws_api_gateway_integration.exportPassIntegration,
aws_api_gateway_integration.readFacilityIntegration,
aws_api_gateway_integration.writeFacilityIntegration,
aws_api_gateway_integration.putFacilityIntegration,
Expand Down Expand Up @@ -266,6 +268,11 @@ resource "aws_iam_role_policy_attachment" "lambda_exportPass_cloudwatch_logs" {
policy_arn = aws_iam_policy.lambda_logging.arn
}

resource "aws_iam_role_policy_attachment" "lambda_metric_cloudwatch_logs" {
role = aws_iam_role.metricRole.name
policy_arn = aws_iam_policy.lambda_logging.arn
}

resource "aws_iam_role_policy_attachment" "lambda_write_logs" {
role = aws_iam_role.writeRole.name
policy_arn = aws_iam_policy.lambda_logging.arn
Expand Down

0 comments on commit af6c529

Please sign in to comment.