Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ resource "random_pet" "this_exists_to_download_random_plugin_if_terraform_cache_
}

resource "aws_key_pair" "cloud_key" {
key_name = var.key_pair_name
key_name = "${terraform.workspace}-${var.key_pair_name}"
public_key = var.key_pair_public_key
}

Expand Down
31 changes: 31 additions & 0 deletions parameters.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* 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" "public_subnets" {
name = "${terraform.workspace}_public_subnets"
description = "Certificate ARN for Ingress"
type = "String"
value = join("\\,", module.vpc.public_subnets)
}

resource "aws_ssm_parameter" "security_groups" {
name = "${terraform.workspace}_security_group_id"
description = "AWS Security Groups ID"
type = "String"
value = aws_security_group.allow_all.id
}

resource "aws_ssm_parameter" "eks_wafv2_web_acl_arn" {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a lot of acronyms in one name! eks_wafv2_web_acl_arn

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd like to name it waffle_clarn

name = "${terraform.workspace}eks_cluster_arn"
description = "AWS Security Groups ID"
type = "String"
value = aws_wafv2_web_acl.eks_cluster.arn
}