File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ resource "random_pet" "this_exists_to_download_random_plugin_if_terraform_cache_
3636}
3737
3838resource "aws_key_pair" "cloud_key" {
39- key_name = var. key_pair_name
39+ key_name = " ${ terraform . workspace } - ${ var . key_pair_name } "
4040 public_key = var. key_pair_public_key
4141}
4242
Original file line number Diff line number Diff line change 1+ /* This file contains the logical resources to create and
2+ store parameters needed for UrbanOS deployment. The parameters
3+ are stored in AWS System Manager Parameter Store */
4+
5+ resource "aws_ssm_parameter" "certificate" {
6+ name = " ${ terraform . workspace } _certificate_arn"
7+ description = " Certificate ARN for Ingress"
8+ type = " String"
9+ value = module. tls_certificate . arn
10+ }
11+
12+ resource "aws_ssm_parameter" "public_subnets" {
13+ name = " ${ terraform . workspace } _public_subnets"
14+ description = " Certificate ARN for Ingress"
15+ type = " String"
16+ value = join (" \\ ," , module. vpc . public_subnets )
17+ }
18+
19+ resource "aws_ssm_parameter" "security_groups" {
20+ name = " ${ terraform . workspace } _security_group_id"
21+ description = " AWS Security Groups ID"
22+ type = " String"
23+ value = aws_security_group. allow_all . id
24+ }
25+
26+ resource "aws_ssm_parameter" "eks_wafv2_web_acl_arn" {
27+ name = " ${ terraform . workspace } eks_cluster_arn"
28+ description = " AWS Security Groups ID"
29+ type = " String"
30+ value = aws_wafv2_web_acl. eks_cluster . arn
31+ }
You can’t perform that action at this time.
0 commit comments