-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.tf
66 lines (57 loc) · 2.25 KB
/
parameters.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
/* This file contains the logical resources to create and
store parameters needed for UrbanOS deployment. The parameters
are stored in AWS System Manager Parameter Store */
resource "aws_ssm_parameter" "certificate" {
name = "${terraform.workspace}_certificate_arn"
description = "Certificate ARN for Ingress"
type = "String"
value = module.tls_certificate.arn
}
resource "aws_ssm_parameter" "root_certificate" {
name = "${terraform.workspace}_root_certificate_arn"
description = "Certificate ARN for Ingress"
type = "String"
value = module.root_tls_certificate.arn
}
resource "aws_ssm_parameter" "public_subnets" {
name = "${terraform.workspace}_public_subnets"
description = "Public subnets for Ingress ALB"
type = "String"
value = join("\\,", module.vpc.public_subnets)
}
resource "aws_ssm_parameter" "security_groups" {
name = "${terraform.workspace}_security_group_id"
description = "Allow all inbound security groups"
type = "String"
value = aws_security_group.allow_all.id
}
resource "aws_ssm_parameter" "eks_wafv2_web_acl_arn" {
name = "${terraform.workspace}eks_cluster_arn"
description = "ARN for the EKS Cluster"
type = "String"
value = aws_wafv2_web_acl.eks_cluster.arn
}
resource "aws_ssm_parameter" "eks_cluster_endpoint" {
name = "${terraform.workspace}_eks_cluster_endpoint"
description = "AWS EKS Cluster Endpoint URL"
type = "String"
value = module.eks-cluster.cluster_endpoint
}
resource "aws_ssm_parameter" "eks_cluster_cert_auth_data" {
name = "${terraform.workspace}_eks_cluster_cert_auth_data"
description = "AWS EKS Certificate Authority Data"
type = "String"
value = module.eks-cluster.cluster_certificate_authority_data
}
resource "aws_ssm_parameter" "dns_zone" {
name = "${terraform.workspace}_dns_zone"
description = "Internal DNS Zone for Ingress"
type = "String"
value = local.internal_public_hosted_zone_name
}
resource "aws_ssm_parameter" "root_dns_zone" {
name = "${terraform.workspace}_root_dns_zone"
description = "Root DNS Zone for Ingress"
type = "String"
value = local.root_public_hosted_zone_name
}