This commit is contained in:
Haitao Pan 2023-03-22 00:02:53 +08:00
parent 457573e05c
commit a1ecee6526

View File

@ -24,9 +24,9 @@ ssh_key = local.Command("random",
create="env | grep SSH_PUBLIC_KEY | awk -F= '{print $2}'"
)
pulumi.export("sshkey", key.stdout)
pulumi.export("sshkey", ssh_key.stdout)
key_pair = pulumi.aws.ec2.KeyPair("deployer", public_key=ssh_key)
key_pair = pulumi.aws.ec2.KeyPair("deployer", public_key=ssh_key.stdout)
# Create an AWS resource (S3 Bucket)
#bucket = s3.Bucket('my-bucket')