Skip to content

Commit

Permalink
Update deploy to copy private key path to pulumi env (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack0x2 authored Dec 20, 2024
1 parent e015462 commit 1c919e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/aws/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from tasks.deploy import deploy as common_deploy

default_public_path_key_name = "ddinfra:aws/defaultPublicKeyPath"
default_private_path_key_name = "ddinfra:aws/defaultPrivateKeyPath"


def deploy(
Expand Down Expand Up @@ -42,6 +43,10 @@ def deploy(

flags[default_public_path_key_name] = _get_public_path_key_name(cfg, public_key_required)

privateKeyPath = cfg.get_aws().privateKeyPath
if privateKeyPath is not None:
flags[default_private_path_key_name] = privateKeyPath

awsKeyPairName = cfg.get_aws().keyPairName

flags["ddinfra:aws/defaultKeyPairName"] = awsKeyPairName
Expand Down

0 comments on commit 1c919e8

Please sign in to comment.