-
Notifications
You must be signed in to change notification settings - Fork 15
/
parameter_store.tf
55 lines (49 loc) · 1.31 KB
/
parameter_store.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
resource "aws_ssm_parameter" "password" {
count = local.store_parameters
name = "${local.parameter_prefix}/password"
type = "String"
value = local.password
tags = local.tags
}
resource "aws_ssm_parameter" "username" {
count = local.store_parameters
name = "${local.parameter_prefix}/username"
type = "String"
value = local.username
tags = local.tags
}
resource "aws_ssm_parameter" "database" {
count = local.store_parameters
name = "${local.parameter_prefix}/database"
type = "String"
value = local.database
tags = local.tags
}
resource "aws_ssm_parameter" "address" {
count = local.store_parameters
name = "${local.parameter_prefix}/address"
type = "String"
value = local.address
tags = local.tags
}
resource "aws_ssm_parameter" "zone_id" {
count = local.store_parameters
name = "${local.parameter_prefix}/zone_id"
type = "String"
value = local.hosted_zone_id
tags = local.tags
}
resource "aws_ssm_parameter" "id" {
count = local.store_parameters
name = "${local.parameter_prefix}/id"
type = "String"
value = local.id
tags = local.tags
}
resource "aws_ssm_parameter" "security_group_id" {
count = local.store_parameters
name = "${local.parameter_prefix}/security_group_id"
type = "String"
value = aws_security_group.default.id
tags = local.tags
}