From 33c334d1555270bf58d3b3b42e0d26cb2d6d2b5a Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Tue, 21 Mar 2023 23:13:19 +0800 Subject: [PATCH] aws/__init__.py: update aws.key_pair() --- infrastructure/aws/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/aws/__init__.py b/infrastructure/aws/__init__.py index f8befa8a..b4f5b02e 100644 --- a/infrastructure/aws/__init__.py +++ b/infrastructure/aws/__init__.py @@ -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 #------------------------------------#