sparse-intern-71089
02/01/2023, 8:09 PMlittle-cartoon-10569
02/01/2023, 8:14 PMkeyName
.
You also need an SSH daemon running on the EC2 instance, and you need to use the the private key on the machine you're connecting from.gentle-school-19497
02/01/2023, 8:39 PMgentle-school-19497
02/01/2023, 8:39 PMlittle-cartoon-10569
02/02/2023, 12:19 AMlittle-cartoon-10569
02/02/2023, 12:20 AMgentle-school-19497
02/02/2023, 3:25 AMlittle-cartoon-10569
02/02/2023, 3:42 AMgentle-school-19497
02/02/2023, 3:47 AMenough-painter-7423
02/02/2023, 1:59 PMIf [value] is not specified when setting a configuration key, the CLI will prompt for it interactively. Alternatively, the value can be set from standard input, which is useful for multiline values or any value that must be escaped on the command line:
cat my_key.pub | pulumi config set publicKey
https://www.pulumi.com/registry/packages/aws/how-to-guides/aws-go-ansible-wordpress/#deploying-your-infrastructure
Set the required configuration variables, choosing any valid AWS region. The code is written in such a way to work in any AWS region, including fetching the right Amazon Linux 2 AMI and availability zones:
pulumi config set aws:region us-east-1 # any valid AWS region
pulumi config set publicKeyPath wordpress-keypair.pub # your newly generated public key
pulumi config set privateKeyPath wordpress-keypair # your newly generated private key
pulumi config set dbPassword Sup45ekreT#123 --secret # your RDS database password -- keep it safe!
These sections are about the general mechanism to set a string value to Pulumi's config store (not sure what it should be called) so that your own Pulumi program can be implemented in such a way that it loads the string and sets it to AWS. They don't mean your SSH pub key will be sent to AWS directly/automatically