Skip to content

Commit

Permalink
Update deploy to copy private key path to pulumi env
Browse files Browse the repository at this point in the history
  • Loading branch information
jack0x2 committed Nov 25, 2024
1 parent 19a7845 commit 28c4608
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 28c4608

Please sign in to comment.