forked from GSA/grace-inventory
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
80 lines (67 loc) · 2.54 KB
/
variables.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
variable "schedule_expression" {
type = string
description = "(optional) Cloudwatch schedule expression for when to run inventory"
default = "cron(5 3 ? * MON-FRI *)"
}
variable "tenant_role_name" {
type = string
description = "(optional) Role assumed by lambda function to query tenant accounts"
default = "OrganizationAccountAccessRole"
}
variable "master_role_name" {
type = string
description = "(optional) Role assumed by lambda function to query organizations in Master Payer account"
default = ""
}
variable "regions" {
type = string
description = "(optional) Comma delimited list of AWS regions to inventory"
default = "us-east-1,us-east-2,us-west-1,us-west-2"
}
variable "appenv" {
type = string
description = "(optional) The environment in which the script is running (development | test | production)"
default = "development"
}
variable "master_account_id" {
type = string
description = "(optional) Account ID of AWS Master Payer Account"
default = ""
}
variable "accounts_info" {
type = string
description = "(optional) Determines which accounts to parse. Can be \"self\", comma delimited list of Account IDs or an S3 URI containing JSON output of `aws organizations list-accounts`. If empty, tries to query accounts with `organizations:ListAccounts`"
default = "self"
}
variable "organizational_units" {
type = string
description = "(optional) comma delimited list of organizational units to query for accounts. If set it will only query accounts in those organizational units"
default = ""
}
variable "source_file" {
type = string
description = "(optional) full or relative path to zipped binary of lambda handler"
default = "../release/grace-inventory-lambda.zip"
}
variable "project_name" {
type = string
description = "(required) project name (e.g. grace, fcs, fas, etc.). Used as prefix for AWS S3 bucket name"
default = "grace"
}
variable "s3_bucket_name" {
type = string
description = "(required) Name of the S3 bucket where the reports are saved"
}
variable "s3_logging_bucket_name" {
type = string
description = "(required) Name of the S3 bucket where the access logs are saved"
}
variable "s3_logging_bucket_prefix" {
type = string
description = "(required) Path prefix for the S3 bucket where the access logs are saved"
}
variable "memory_size" {
type = number
description = "(optional) Memory Specifications for Lambda function"
default = 512
}