Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 7e3d1b6

Browse files
committed
Added config files for vault and awslogs
1 parent 62b2f42 commit 7e3d1b6

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

scripts/awslogs-config-file

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[general]
2+
state_file = /var/awslogs/state/agent-state
3+
4+
[/var/log/syslog]
5+
file = /var/log/vault_audit.log
6+
#log_group_name = __VAULT_LOG_GROUP__
7+
log_group_name = Vault-Audit-Logs
8+
log_stream_name = {instance_id}
9+
datetime_format = %b %d %H:%M:%S

scripts/vault.hcl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
backend "consul" {
2+
address = "__CONSULMASTER__:8500"
3+
path = "vault"
4+
}
5+
6+
listener "tcp" {
7+
address = "127.0.0.1:8200"
8+
tls_disable = 1
9+
}

templates/quickstart-hashicorp-vault-master.template

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,6 @@
481481
]
482482
},
483483
"Parameters": {
484-
"AvailabilityZones": {
485-
"Fn::Join": [
486-
",", {
487-
"Ref": "AvailabilityZones"
488-
}
489-
]
490-
},
491484
"PrivateSubnet1ID": {
492485
"Fn::GetAtt": [
493486
"VPCStack",

templates/quickstart-hashicorp-vault.template

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
"AWSTemplateFormatVersion": "2010-09-09",
33
"Description": "QS(0037) HashiCorp Consul License: Apache 2.0 (Please do not remove) Oct,27,2016",
44
"Parameters": {
5-
"AvailabilityZones": {
6-
"Description": "List of Availability Zones to use for the subnets in the VPC. Note: The logical order is preserved and only 2 AZs are used for this deployment.",
7-
"Type": "List<AWS::EC2::AvailabilityZone::Name>"
8-
},
95
"KeyPair": {
106
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances",
117
"Type": "AWS::EC2::KeyPair::KeyName",

0 commit comments

Comments
 (0)