-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
aws_iam_role_policy_attachment.tf
54 lines (44 loc) · 1.98 KB
/
aws_iam_role_policy_attachment.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
resource "aws_iam_role_policy_attachment" "api_gateway_dynamodb_full_access" {
policy_arn = "arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess"
role = aws_iam_role.api_gateway.name
}
resource "aws_iam_role_policy_attachment" "api_gateway_lambda_role" {
policy_arn = aws_iam_policy.lambda_role.arn
role = aws_iam_role.api_gateway.name
}
resource "aws_iam_role_policy_attachment" "api_gateway_cloud_watch_logs" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs"
role = aws_iam_role.api_gateway.name
}
resource "aws_iam_role_policy_attachment" "api_gateway_step_function_full_access" {
policy_arn = aws_iam_policy.step_function_full_access.arn
role = aws_iam_role.api_gateway.name
}
resource "aws_iam_role_policy_attachment" "lambda_s3_basic_execution_role" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
role = aws_iam_role.lambda.name
}
resource "aws_iam_role_policy_attachment" "lambda_s3_full_access" {
policy_arn = aws_iam_policy.s3_full_access.arn
role = aws_iam_role.lambda.name
}
resource "aws_iam_role_policy_attachment" "lambda_dynamodb_full_access" {
policy_arn = "arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess"
role = aws_iam_role.lambda.name
}
resource "aws_iam_role_policy_attachment" "step_function_full_access" {
policy_arn = aws_iam_policy.step_function_full_access.arn
role = aws_iam_role.step_function.name
}
resource "aws_iam_role_policy_attachment" "step_function_dynamodb_full_access" {
policy_arn = "arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess"
role = aws_iam_role.step_function.name
}
resource "aws_iam_role_policy_attachment" "step_function_s3_full_access" {
policy_arn = aws_iam_policy.s3_full_access.arn
role = aws_iam_role.step_function.name
}
resource "aws_iam_role_policy_attachment" "step_function_lambda_role" {
policy_arn = aws_iam_policy.lambda_role.arn
role = aws_iam_role.step_function.name
}