Skip to content

Commit

Permalink
feature #1 - Add ssm for exchange rate external api token
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 17, 2022
1 parent ad880f9 commit b7f5233
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion terraform/env/dev.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ aws_profile = "dev"
vpc_id = "vpc-0b1ae7a4fa0ec7d9d"
SUB_NET_01 = "subnet-06761316782230c98"
SUB_NET_02 = "subnet-052df03e273a7e04c"
SG_ID = "sg-026d83888df8aa77d"
SG_ID = "sg-026d83888df8aa77d"
EXCHANGE_RATE_EXTERNAL_TOKEN = "pTvKw2Xo2rJi5QolY07rJgZmdGVRnGqB"
3 changes: 2 additions & 1 deletion terraform/env/hml.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ aws_profile = "hml"
vpc_id = "vpc-0b1ae7a4fa0ec7d9d"
SUB_NET_01 = "subnet-05d245e39491bb3d2"
SUB_NET_02 = "subnet-06761316782230c98"
SG_ID = "sg-026d83888df8aa77d"
SG_ID = "sg-026d83888df8aa77d"
EXCHANGE_RATE_EXTERNAL_TOKEN = "pTvKw2Xo2rJi5QolY07rJgZmdGVRnGqB"
3 changes: 2 additions & 1 deletion terraform/env/prd.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ aws_profile = "prd"
vpc_id = "vpc-0b1ae7a4fa0ec7d9d"
SUB_NET_01 = "subnet-06761316782230c98"
SUB_NET_02 = "subnet-052df03e273a7e04c"
SG_ID = "sg-026d83888df8aa77d"
SG_ID = "sg-026d83888df8aa77d"
EXCHANGE_RATE_EXTERNAL_TOKEN = "pTvKw2Xo2rJi5QolY07rJgZmdGVRnGqB"
2 changes: 1 addition & 1 deletion terraform/ssm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resource "aws_ssm_parameter" "update-exchange-rate-queue-arn-ssm" {
resource "aws_ssm_parameter" "exchange-rate-api-token-ssm" {
name = "/exchangeRate/infra/api/exchangeRate/token"
type = "String"
value = "custom"
value = var.EXCHANGE_RATE_EXTERNAL_TOKEN
overwrite = true
}

Expand Down
6 changes: 6 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,10 @@ variable "SG_ID" {
type = string
description = "security group id"
default = null
}

variable "EXCHANGE_RATE_EXTERNAL_TOKEN" {
type = string
description = "Exchange Rate external API Token"
default = null
}

0 comments on commit b7f5233

Please sign in to comment.