Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
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
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
#general
Title
b
best-lifeguard-91445
05/15/2020, 10:22 PM
Can you create EC2 key/pairs within pulumi? or must they be created in the AWS console, and attached by name?
f
faint-table-42725
05/15/2020, 10:28 PM
You can use the KeyPair resource:
https://www.pulumi.com/docs/reference/pkg/aws/ec2/keypair/
And you could generate the actual key material in code however you prefer (e.g. shell out to
ssh-keygen
or call a library or whatever)
b
best-lifeguard-91445
05/16/2020, 1:11 AM
awesome. Thanks Lee
f
faint-table-42725
05/16/2020, 3:17 AM
Oh yeah, not sure how I forgot to mention, you could also use
https://www.pulumi.com/docs/reference/pkg/tls/privatekey/
Post