Skip to content

Make auth does not work for multiple environments within the same tenant. #307

@slawpast

Description

@slawpast

When I run "Make auth" for a second environment (the same tenant, different subsripton), Azure Credentials from the previous authorisation are being replaced.

Steps to reproduce the behavior:

  1. Fork and clone repository to the local machine, open in VS Code
  2. Create dev and prod environments in Github
  3. Update flowERHID in config.yaml file
  4. Create config.local.file ,set environment dev.
  5. Run Make auth in VS Code, save credentials to Github environment secrets
  6. Update config.local.yaml file - set environment: prod
  7. Run Make auth in VS Code,

At this point application registration is overriden instead of creating new one.
Can the logic be changed here, default name sp-flowehr-ci-${var.flowehr_id} in Auth/main.tf file be made dynamic (including environment name) and allowed multiple times without removing tfstate file for Auth terraform?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions