Skip to content
Snippets Groups Projects
Commit d5afba14 authored by Edouard DE BRYE's avatar Edouard DE BRYE
Browse files

Fixed role name for uniqueness

parent 0df87c55
No related branches found
No related tags found
No related merge requests found
......@@ -92,13 +92,13 @@ resource "aws_api_gateway_account" "apigw" {
}
resource "aws_iam_role" "cloudwatch" {
name = "api_gateway_cloudwatch_global"
name = "${local.prefix}-api_gateway_cloudwatch_global"
assume_role_policy = file("./templates/api-gateway/assume-role-policy.json")
}
resource "aws_iam_role_policy" "cloudwatch" {
name = "default"
name = "${local.prefix}-default"
role = aws_iam_role.cloudwatch.id
policy = file("./templates/api-gateway/cloud-watch-policy.json")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment