aws/__init__.py: update aws.key_pair()

This commit is contained in:
Haitao Pan 2023-03-21 23:13:19 +08:00
parent 921095c67a
commit 33c334d155

View File

@ -22,7 +22,7 @@ def vpc():
return vpc.id
#------------------------------------#
def key_pair( resource_name: str, public_key: Optional[str] = None):
def key_pair( resource_name: str, public_key: str ):
keypair = ec2.KeyPair( resource_name, public_key )
return keypair.key_name
#------------------------------------#