You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,42 @@ To prevent destruction interruptions, any resources that have been created outsi
50
50
51
51
The private key generated by Keypair module will be stored in AWS Systems Manager Parameter Store. For more details refer [this](https://registry.terraform.io/modules/squareops/keypair/aws)
52
52
53
+
For encrypting vpc flow log cloudwatch log group please use this kms key policy. Change the account id and region.
54
+
55
+
```json
56
+
{
57
+
"Version": "2012-10-17",
58
+
"Id": "allow-cloudwatch-logs-encryption",
59
+
"Statement": [
60
+
{
61
+
"Sid": "AllowRootFullPermissions",
62
+
"Effect": "Allow",
63
+
"Principal": {
64
+
"AWS": "arn:aws:iam::12345678:root"
65
+
},
66
+
"Action": "kms:*",
67
+
"Resource": "*"
68
+
},
69
+
{
70
+
"Sid": "AllowCloudWatchLogsEncryption",
71
+
"Effect": "Allow",
72
+
"Principal": {
73
+
"Service": "logs.us-east-2.amazonaws.com"
74
+
},
75
+
"Action": [
76
+
"kms:Encrypt*",
77
+
"kms:Decrypt*",
78
+
"kms:ReEncrypt*",
79
+
"kms:GenerateDataKey*",
80
+
"kms:Describe*"
81
+
],
82
+
"Resource": "*"
83
+
}
84
+
]
85
+
}
86
+
```
87
+
88
+
53
89
## Network Scenarios
54
90
55
91
Users need to declare `vpc_cidr` and subnets are calculated with the help of in-built functions.
0 commit comments