-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathssm.tf
28 lines (22 loc) · 894 Bytes
/
ssm.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
data "aws_ssm_parameter" "snmp_ro_community" {
name = "/${var.company_name}/awsvpn/${local.ssm_environment}/snmprocommunity"
}
data "aws_ssm_parameter" "snmp_rw_community" {
name = "/${var.company_name}/awsvpn/${local.ssm_environment}/snmprwcommunity"
}
data "aws_ssm_parameter" "toggle_port" {
name = "/${var.company_name}/awsvpn/${local.ssm_environment}/toggleport"
}
data "aws_ssm_parameter" "toggle_match" {
name = "/${var.company_name}/awsvpn/${local.ssm_environment}/togglematch"
}
resource "aws_ssm_parameter" "master_ip" {
name = "/${var.company_name}/awsvpn/${local.ssm_environment}/master_ip"
type = "String"
value = aws_instance.awsvpn.0.private_ip
}
resource "aws_ssm_parameter" "backup_ip" {
name = "/${var.company_name}/awsvpn/${local.ssm_environment}/backup_ip"
type = "String"
value = aws_instance.awsvpn.1.private_ip
}