-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #525 from DataBiosphere/jsaun/ref-lz-update
Support for deployment in Azure Government Cloud (lzs)
- Loading branch information
Showing
16 changed files
with
181 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ingzone/stairway/flight/create/reference/resource/step/ReferencedManagedIdentityStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package bio.terra.landingzone.stairway.flight.create.reference.resource.step; | ||
|
||
import static bio.terra.landingzone.stairway.flight.create.resource.step.CreateLandingZoneIdentityStep.LANDING_ZONE_IDENTITY_CLIENT_ID; | ||
import static bio.terra.landingzone.stairway.flight.create.resource.step.CreateLandingZoneIdentityStep.LANDING_ZONE_IDENTITY_RESOURCE_KEY; | ||
|
||
import bio.terra.landingzone.library.landingzones.definition.ArmManagers; | ||
import bio.terra.landingzone.service.landingzone.azure.model.LandingZoneResource; | ||
import bio.terra.stairway.FlightContext; | ||
|
||
public class ReferencedManagedIdentityStep extends SharedReferencedResourceStep { | ||
public ReferencedManagedIdentityStep(ArmManagers armManagers) { | ||
super(armManagers); | ||
} | ||
|
||
@Override | ||
protected ArmResourceType getArmResourceType() { | ||
return ArmResourceType.MANAGED_IDENTITY; | ||
} | ||
|
||
@Override | ||
protected void updateWorkingMap( | ||
FlightContext context, ArmManagers armManagers, String resourceId) { | ||
var uami = armManagers.azureResourceManager().identities().getById(resourceId); | ||
|
||
context.getWorkingMap().put(LANDING_ZONE_IDENTITY_CLIENT_ID, uami.clientId()); | ||
|
||
context | ||
.getWorkingMap() | ||
.put( | ||
LANDING_ZONE_IDENTITY_RESOURCE_KEY, | ||
LandingZoneResource.builder() | ||
.resourceId(uami.id()) | ||
.resourceType(uami.type()) | ||
.tags(uami.tags()) | ||
.region(uami.regionName()) | ||
.resourceName(uami.name()) | ||
.build()); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...ngzone/stairway/flight/create/reference/resource/step/ReferencedPostgresqlServerStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package bio.terra.landingzone.stairway.flight.create.reference.resource.step; | ||
|
||
import bio.terra.landingzone.library.landingzones.definition.ArmManagers; | ||
|
||
public class ReferencedPostgresqlServerStep extends SharedReferencedResourceStep { | ||
public ReferencedPostgresqlServerStep(ArmManagers armManagers) { | ||
super(armManagers); | ||
} | ||
|
||
@Override | ||
protected ArmResourceType getArmResourceType() { | ||
return ArmResourceType.POSTGRES_FLEXIBLE; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../landingzone/stairway/flight/create/reference/resource/step/ReferencedPrivateDNSStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package bio.terra.landingzone.stairway.flight.create.reference.resource.step; | ||
|
||
import bio.terra.landingzone.library.landingzones.definition.ArmManagers; | ||
|
||
public class ReferencedPrivateDNSStep extends SharedReferencedResourceStep { | ||
public ReferencedPrivateDNSStep(ArmManagers armManagers) { | ||
super(armManagers); | ||
} | ||
|
||
@Override | ||
protected ArmResourceType getArmResourceType() { | ||
return ArmResourceType.PRIVATE_DNS_ZONE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.