-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
aws_iam_policy.tf
35 lines (33 loc) · 1.25 KB
/
aws_iam_policy.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
resource "aws_iam_policy" "lambda_role" {
description = "Default policy for AnimalCrossing Lambda service role."
path = "/${var.application}/"
policy = data.aws_iam_policy_document.lambda_role.json
name = "AnimalCrossingLambdaRole"
tags = {
"Account" = "${var.account}"
"Application" = "${var.application}"
"Region" = "${var.region}"
}
}
resource "aws_iam_policy" "s3_full_access" {
description = "Provides full access to the AnimalCrossing S3 bucket via the AWS Management Console."
path = "/${var.application}/"
policy = data.aws_iam_policy_document.s3_full_access.json
name = "AnimalCrossingS3FullAccess"
tags = {
"Account" = "${var.account}"
"Application" = "${var.application}"
"Region" = "${var.region}"
}
}
resource "aws_iam_policy" "step_function_full_access" {
description = "Provides full access to AnimalCrossing Step Functions via the AWS Management Console."
path = "/${var.application}/"
policy = data.aws_iam_policy_document.step_functions_full_access.json
name = "AnimalCrossingStepFunctionFullAccess"
tags = {
"Account" = "${var.account}"
"Application" = "${var.application}"
"Region" = "${var.region}"
}
}