Skip to content

Commit

Permalink
Update magenx.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
magenx authored Jun 11, 2021
1 parent 2b55a27 commit 9873feb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions magenx.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ resource "random_uuid" "this" {
# Generate random passwords
# # ---------------------------------------------------------------------------------------------------------------------#
resource "random_password" "this" {
for_each = toset(["rds", "elk", "mq", "magento", "blowfish"])
length = 16
for_each = toset(["rds", "elk", "mq", "app", "blowfish"])
length = (each.key == "blowfish" ? 32 : 16)
lower = true
upper = true
number = true
Expand Down Expand Up @@ -1416,7 +1416,7 @@ DATABASE_USER_NAME="${aws_db_instance.this["production"].username}"
DATABASE_PASSWORD='${random_password.this["rds"].result}'
ADMIN_PATH='admin_${random_string.string.result}'
ADMIN_PASSWORD='${random_password.this["magento"].result}'
ADMIN_PASSWORD='${random_password.this["app"].result}'
RABBITMQ_ENDPOINT="${trimsuffix(trimprefix("${aws_mq_broker.this.instances.0.endpoints.0}", "amqps://"), ":5671")}"
RABBITMQ_USER="${var.app["brand"]}"
Expand Down Expand Up @@ -1605,7 +1605,7 @@ mainSteps:
--admin-lastname=${var.app["brand"]} \
--admin-email=${var.app["admin_email"]} \
--admin-user=admin \
--admin-password='${random_password.this["magento"].result}' \
--admin-password='${random_password.this["app"].result}' \
--backend-frontname='admin_${random_string.string.result}' \
--language=${var.app["language"]} \
--currency=${var.app["currency"]} \
Expand Down

0 comments on commit 9873feb

Please sign in to comment.