Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Add new tutorials #3574

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Add new tutorials #3574

merged 5 commits into from
Nov 3, 2023

Conversation

toriancrane
Copy link
Contributor

@toriancrane toriancrane commented Nov 2, 2023

Description

This PR is adding two new tutorials to the site. The tutorials have been added under a new folder called tutorials in preparation for the new tutorials experience. Until the new experience is launched, they will temporarily live in the Using Pulumi section of the site.

This PR also includes a new shortcode for injecting the contents of a separate code file into the main index file.

Will resolve this issue.

Relevant URL Paths

  • Using Pulumi hub page: /docs/using-pulumi/
  • Defining and Provisioning Resources tutorial: /docs/tutorials/define-and-provision-resources/
  • Stack References and Outputs tutorial: /docs/tutorials/stack-outputs-and-references/

@pulumi-bot
Copy link
Collaborator

Your site preview for commit 05b78ef is ready! 🎉

http://pulumi-hugo-origin-pr-3574-05b78efa.s3-website.us-west-2.amazonaws.com.

@desteves
Copy link
Contributor

desteves commented Nov 2, 2023

Defining and Provisioning Resources tutorial:

  • Can we add a little info note that if one gets the error:
    “creating EC2 Instance: InvalidAMIID.NotFound: The image id '[ami-09538990a0c4fe9be]' does not exist” is because the AMI doesn’t exist and they need to update it to match the region’s available AMIs. For us-west-2, use ami-06e2a005a056f76d7

@toriancrane
Copy link
Contributor Author

Defining and Provisioning Resources tutorial:

  • Can we add a little info note that if one gets the error:
    “creating EC2 Instance: InvalidAMIID.NotFound: The image id '[ami-09538990a0c4fe9be]' does not exist” is because the AMI doesn’t exist and they need to update it to match the region’s available AMIs. For us-west-2, use ami-06e2a005a056f76d7

Great catch! Added.

@pulumi-bot
Copy link
Collaborator

Your site preview for commit 343c133 is ready! 🎉

http://pulumi-hugo-origin-pr-3574-343c1338.s3-website.us-west-2.amazonaws.com.

@toriancrane toriancrane enabled auto-merge November 2, 2023 18:10
@desteves
Copy link
Contributor

desteves commented Nov 2, 2023

In the preview / files changed for Defining and Provisioning Resources tutorial, I noticed the typescript files end in .txt. Do we want to update them to .ts?

@desteves
Copy link
Contributor

desteves commented Nov 2, 2023

Add a note that the default aws profile will be used? I think it's fairly obvious but I could use a remainder now to help me when walking through the steps.

http://pulumi-hugo-origin-pr-3574-343c1338.s3-website.us-west-2.amazonaws.com/docs/tutorials/stack-outputs-and-references/#access-outputs-via-the-cli

@desteves
Copy link
Contributor

desteves commented Nov 2, 2023

@desteves
Copy link
Contributor

desteves commented Nov 2, 2023

I followed the python code examples, all good.

@toriancrane
Copy link
Contributor Author

In the preview / files changed for Defining and Provisioning Resources tutorial, I noticed the typescript files end in .txt. Do we want to update them to .ts?

Updated.

@toriancrane
Copy link
Contributor Author

Add a note that the default aws profile will be used? I think it's fairly obvious but I could use a remainder now to help me when walking through the steps.

http://pulumi-hugo-origin-pr-3574-343c1338.s3-website.us-west-2.amazonaws.com/docs/tutorials/stack-outputs-and-references/#access-outputs-via-the-cli

Added.

@toriancrane
Copy link
Contributor Author

http://pulumi-hugo-origin-pr-3574-343c1338.s3-website.us-west-2.amazonaws.com/docs/tutorials/stack-outputs-and-references/#reference-the-name-of-the-lambda-function we can add a note to run pulumi stack ls ?

Unless I am misunderstanding, there should be no reason for users to have to do this since they are creating a new project/stack in a new directory to work from.

@toriancrane
Copy link
Contributor Author

In the preview / files changed for Defining and Provisioning Resources tutorial, I noticed the typescript files end in .txt. Do we want to update them to .ts?

I now remember why I changed the files to .txt ending lol there are incomplete code examples (on purpose) and the build tests dont like that. Changing it back for now.

@pulumi-bot
Copy link
Collaborator

Your site preview for commit 2df7d06 is ready! 🎉

http://pulumi-hugo-origin-pr-3574-2df7d069.s3-website.us-west-2.amazonaws.com.

@desteves
Copy link
Contributor

desteves commented Nov 3, 2023

http://pulumi-hugo-origin-pr-3574-343c1338.s3-website.us-west-2.amazonaws.com/docs/tutorials/stack-outputs-and-references/#reference-the-name-of-the-lambda-function we can add a note to run pulumi stack ls ?

Unless I am misunderstanding, there should be no reason for users to have to do this since they are creating a new project/stack in a new directory to work from.

Gotcha, I only used command to help me figure out the fully qualified name

Copy link
Contributor

@desteves desteves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@toriancrane toriancrane merged commit bfcf410 into master Nov 3, 2023
@toriancrane toriancrane deleted the torian/new-tutorials branch November 3, 2023 14:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Add new tutorials to temp location on website
3 participants