-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path0-locals-data.tf
72 lines (65 loc) · 1.83 KB
/
0-locals-data.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
#
# Copyright Amazon.com, Inc. and its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License. See the LICENSE accompanying this file
# for the specific language governing permissions and limitations under
# the License.
#
locals {
common_tags = {
Environment = var.environment
Project = var.Project
Owner = var.Owner
managedBy = "terraform"
}
#https://docs.aws.amazon.com/redshift/latest/mgmt/db-auditing.html
redshift_logging_region_account_id_bucket_policy = {
"us-east-1" : "193672423079",
"us-east-2" : "391106570357",
"us-west-1" : "262260360010",
"us-west-2" : "902366379725",
"af-south-1" : "365689465814",
"ap-east-1" : "313564881002",
"ap-south-1" : "865932855811",
"ap-northeast-3" : "090321488786",
"ap-northeast-2" : "760740231472",
"ap-southeast-1" : "361669875840",
"ap-southeast-2" : "762762565011",
"ap-northeast-1" : "404641285394",
"ca-central-1" : "907379612154",
"eu-central-1" : "053454850223",
"eu-west-1" : "210876761215",
"eu-west-2" : "307160386991",
"eu-south-1" : "945612479654",
"eu-west-3" : "915173422425",
"eu-north-1" : "729911121831",
"me-south-1" : "013126148197",
"sa-east-1" : "075028567923"
}
cfront_tags = {
AWS_WAF = "Enabled",
Environment = "poc",
Type = "edge"
}
app_tags = {
AWS_WAF = "Enabled",
Environment = "poc",
Type = "application"
}
}
data "aws_region" "region" {}
data "aws_caller_identity" "current" {}
data "aws_caller_identity" "security" {
provider = aws.regional
}
data "aws_availability_zones" "available" {}
data "aws_caller_identity" "us-east-1" {
provider = aws.global
}
data "aws_region" "us-east-1" {
provider = aws.global
}
data "aws_region" "security" {
provider = aws.regional
}