Skip to content

Commit

Permalink
Terraform updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed Jul 7, 2023
1 parent 1e61f92 commit 0276649
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,22 @@ resource "aws_ssm_parameter" "app_frontend_uri_pattern" {
overwrite = true
}

resource "aws_ssm_parameter" "tea_mapping" {
for_each = var.tea_mapping

name = "${local.app_path}/swodlr.tea-mapping.${each.key}"
type = "String"
value = each.value
overwrite = true
}

resource "aws_ssm_parameter" "app_product_create_queue_url" {
name = "${local.app_path}/swodlr.product-create-queue-url"
type = "SecureString"
value = aws_sqs_queue.product_create.url
overwrite = true
}

/* -- Security -- */
resource "aws_security_group" "app" {
name = "${local.resource_prefix}-app-sg"
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/sit.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export BUCKET=podaac-services-sit-terraform

export TF_VAR_container_image_tag=develop
export TF_VAR_active_profiles="[\"dev\"]"
export TF_VAR_tea_mapping="{\"podaac-swot-sit-swodlr-protected\"=\"archive.swot.podaac.sit.earthdata.nasa.gov\"}"
4 changes: 4 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ variable "frontend_uri_pattern" {
type = string
default = ""
}

variable "tea_mapping" {
type = map(string)
}

0 comments on commit 0276649

Please sign in to comment.