aureq / pulumi-aws-ts-training-session-2

Exercises to learn how to use Pulumi (2nd session)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pulumi training using TypeScript (2nd session)

Exercises to learn how to use Pulumi (2nd session)

Introduction

The series of tasks below will help you learn how to use Pulumi configuration and secrets. You will also learn how to do basic operations such as string concatenation on Output<T>.

Content

  1. Switch to the exercise folder, create a new stack and install the node modules (npm install)
  2. Create a new configuration entry named ownerName
  3. Create a new configuration entry named subscriptionId
  4. Create a new secret entry named apiKey
  5. Generate a new password using the Random provider
    • At least 20 charaters long
    • Must contain special characters
  6. Generate a random pet name using the Random provider
  7. Concatenate the ownerName stack config value with the random pet name (format: owner-pet) using pulumi.interpolate And display the result on the console.
  8. Use pulumi.all() to create a welcome message "Hello dear <ownerName>, this is your pet <petName>."
  9. Create stack outputs for:
  • the random password generated in 5
  • the stack pet name from step 6
  • the concatenated owner name and pet name from step 7
  • the apiKey set in step 1 as apiKey
  • the plain text value of apiKey set in step 1 as insecureApiKey
  • the welcome message
  1. In one command, set the stack tag pet as the randomly generated pet name

Bonus/Challenges

  1. Set a stack README for your stack

Resources

Answers

You will find all the answers here.

About

Exercises to learn how to use Pulumi (2nd session)

License:Apache License 2.0


Languages

Language:TypeScript 100.0%