Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#aws
Title
# aws
r
rich-whale-93740
10/20/2023, 4:00 PM
Am I understanding correctly that for
ec2.KeyPair
, we need to manually create then import?
b
billowy-army-68599
10/20/2023, 4:07 PM
you don’t need to import, you can generate it using the TLS package set it using the public key data property:
https://github.com/jaxxstorm/pulumi-examples/blob/e6fc90bf0e4337ce8d87edede537de6e8b40b291/python/aws/cloudformation_template/__main__.py#L7-L17
r
rich-whale-93740
10/20/2023, 10:14 PM
Oh I see - thanks Lee!
Post