diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-assume-role.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-assume-role.md index 2924864b5e..28ec548f90 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-assume-role.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-assume-role.md @@ -76,7 +76,7 @@ directory, replacing `{YOUR_STACK_PATH/assume-role-create}` with the full name o ```bash $ cd assume-role -$ npm install +$ pulumi install $ export AWS_ACCESS_KEY_ID="$(pulumi stack output --stack {YOUR_STACK_PATH/assume-role-create} accessKeyId)" $ export AWS_SECRET_ACCESS_KEY="$(pulumi stack output --stack {YOUR_STACK_PATH/assume-role-create} --show-secrets secretAccessKey)" ``` diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-s3-folder.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-s3-folder.md index de3df38421..3b2d5022f7 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-s3-folder.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-cs-s3-folder.md @@ -47,7 +47,7 @@ A static website that uses [S3's website support](https://docs.aws.amazon.com/Am Previewing update (dev): Type Name Plan + pulumi:pulumi:Stack aws-cs-s3-folder-dev create - + └─ aws:s3:Bucket my-bucket create + + └─ aws:s3:BucketV2 my-bucket create + ├─ aws:s3:BucketObject index.html create + └─ aws:s3:BucketObject favicon.png create @@ -58,7 +58,7 @@ A static website that uses [S3's website support](https://docs.aws.amazon.com/Am Updating (dev): Type Name Status + pulumi:pulumi:Stack aws-cs-s3-folder-dev created - + └─ aws:s3:Bucket my-bucket created + + └─ aws:s3:BucketV2 my-bucket created + ├─ aws:s3:BucketObject index.html created + └─ aws:s3:BucketObject favicon.png created diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-fs-s3-folder.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-fs-s3-folder.md index afed9eaed1..b51aea7679 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-fs-s3-folder.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-fs-s3-folder.md @@ -47,7 +47,7 @@ A static website that uses [S3's website support](https://docs.aws.amazon.com/Am Previewing update (dev): Type Name Plan + pulumi:pulumi:Stack aws-cs-s3-folder-dev create - + └─ aws:s3:Bucket my-bucket create + + └─ aws:s3:BucketV2 my-bucket create + ├─ aws:s3:BucketObject index.html create + └─ aws:s3:BucketObject favicon.png create @@ -58,7 +58,7 @@ A static website that uses [S3's website support](https://docs.aws.amazon.com/Am Updating (dev): Type Name Status + pulumi:pulumi:Stack aws-cs-s3-folder-dev created - + └─ aws:s3:Bucket my-bucket created + + └─ aws:s3:BucketV2 my-bucket created + ├─ aws:s3:BucketObject index.html created + └─ aws:s3:BucketObject favicon.png created diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder-component.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder-component.md index f48bf3c62f..7f825754c6 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder-component.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder-component.md @@ -59,7 +59,7 @@ with `***`. Type Name Status + pulumi:pulumi:Stack aws-go-s3-folder-component-website-component-testing created + └─ pulumi:example:S3Folder pulumi-static-site created - + ├─ aws:s3:Bucket pulumi-static-site created + + ├─ aws:s3:BucketV2 pulumi-static-site created + ├─ aws:s3:BucketPolicy bucketPolicy created + ├─ aws:s3:BucketObject index.html created + └─ aws:s3:BucketObject favicon.png created diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder.md index 1f0bd77951..9c41a65dde 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-go-s3-folder.md @@ -54,7 +54,7 @@ For a detailed walkthrough of this example, see the tutorial [Static Website on #: Resource Type Name Status Extra Inf 1: pulumi:pulumi:Stack website-testing + created - 2: aws:s3:Bucket s3-website-bucket + created + 2: aws:s3:BucketV2 s3-website-bucket + created 3: aws:s3:BucketPolicy bucketPolicy + created 4: aws:s3:BucketObject favicon.png + created 5: aws:s3:BucketObject index.html + created diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder-component.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder-component.md index e278153f74..38b1bcd31b 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder-component.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder-component.md @@ -61,7 +61,7 @@ with `***`. Type Name Status Info + pulumi:pulumi:Stack aws-js-s3-folder-component-website-component-testing created + └─ examples:S3Folder pulumi-static-site created - + ├─ aws:s3:Bucket pulumi-static-site created + + ├─ aws:s3:BucketV2 pulumi-static-site created + ├─ aws:s3:BucketPolicy bucketPolicy created + ├─ aws:s3:BucketObject favicon.png created + └─ aws:s3:BucketObject index.html created diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder.md index 151ce95534..5fee93349a 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-js-s3-folder.md @@ -60,8 +60,8 @@ with `***`. Performing changes: Type Name Status Info - + pulumi:pulumi:Stack aws-js-s3-folder-website-testing created - + ├─ aws:s3:Bucket s3-website-bucket created + + pulumi:pulumi:Stack aws-js-s3-folder-website-testing. created + + ├─ aws:s3:BucketV2 s3-website-bucket created + ├─ aws:s3:BucketPolicy bucketPolicy created + ├─ aws:s3:BucketObject favicon.png created + └─ aws:s3:BucketObject index.html created diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-py-s3-folder.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-py-s3-folder.md index 954fb04c7d..109ee01f2a 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-py-s3-folder.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-py-s3-folder.md @@ -54,7 +54,7 @@ with `***`. Type Name Plan + pulumi:pulumi:Stack aws-py-s3-folder-dev create - + ├─ aws:s3:Bucket s3-website-bucket create + + ├─ aws:s3:BucketV2 s3-website-bucket create + ├─ aws:s3:BucketObject index.html create + ├─ aws:s3:BucketObject python.png create + ├─ aws:s3:BucketObject favicon.png create diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-py-static-website.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-py-static-website.md index eeceaa45a6..c844cbf194 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-py-static-website.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-py-static-website.md @@ -70,8 +70,8 @@ with `***`. Type Name Plan + pulumi:pulumi:Stack static-website-example create + ├─ pulumi:providers:aws east create - + ├─ aws:s3:Bucket requestLogs create - + ├─ aws:s3:Bucket contentBucket create + + ├─ aws:s3:BucketV2 requestLogs create + + ├─ aws:s3:BucketV2 contentBucket create + │ ├─ aws:s3:BucketObject 404.html create + │ └─ aws:s3:BucketObject index.html create + ├─ aws:acm:Certificate certificate create diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-lambda-slack.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-lambda-slack.md new file mode 100644 index 0000000000..f91a16dbd1 --- /dev/null +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-lambda-slack.md @@ -0,0 +1,74 @@ +--- +title: "AWS Lambda for Slack Notification | TypeScript" +h1: "AWS Lambda for Slack Notification" +linktitle: "AWS Lambda for Slack Notification" +meta_desc: "AWS Lambda for Slack Notification How-to Guide using TypeScript" +no_edit_this_page: true +cloud: aws +language: ts +layout: package +--- + + + + +
+ + +A Pulumi example to: + +- Creates an AWS Lambda function to post a message on Slack via a Webhook URL. +- Adds an AWS API Gateway so the Lambda can be invoked externally, e.g, via GitHub Webhooks. +- Uses a Pulumi ESC Environment to dynamically retrieve AWS OIDC Credentials and the Slack URL from AWS Secrets Manager. + +Last update: September 2024 + +## 📋 Pre-requisites + +- AWS OIDC configured in an Pulumi ESC Environment +- AWS Secrets Manager with a Slack Webhook URL secret +- A properly configured Slack Webhook URL +- [Pulumi CLI](https://www.pulumi.com/docs/get-started/install/) +- [Pulumi Cloud account](https://app.pulumi.com/signup) +- [npm](https://www.npmjs.com/get-npm) + +## 👩🏫 Get started + +This Pulumi example is written as a template. It is meant to be copied via `pulumi new` + +```bash +# login to your Pulumi Cloud if you haven't already +$ pulumi login + +# create a new dir and cd to it +$ mkdir my-slack-demo +$ cd my-slack-demo + +# start your pulumi project +$ pulumi new https://github.com/pulumi/examples/aws-ts-lambda-slack +``` + +```bash +# Add your Pulumi ESC Environment +$ pulumi config env add YOUR_ESC_ENV --yes --non-interactive +$ pulumi up +# select 'yes' to confirm the expected changes +# 🎉 Ta-Da! +``` + +## 🧹 Clean up + +To clean up your infrastructure, run: + +```bash +$ pulumi destroy +# select 'yes' to confirm the expected changes +``` + diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-oidc-provider-pulumi-cloud.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-oidc-provider-pulumi-cloud.md index e0a49bfe3a..ae5f626c18 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-oidc-provider-pulumi-cloud.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-oidc-provider-pulumi-cloud.md @@ -25,9 +25,9 @@ layout: package A Pulumi template to: - Create AWS resources for AWS OIDC (IdP + Role) -- Create a new Pulumi Cloud ESC Environment (optional) +- Create a new Pulumi Cloud ESC Environment -Last update: June 2024 +Last update: September 2024 ## 📋 Pre-requisites @@ -54,7 +54,7 @@ Once copied to your machine, feel free to edit as needed. ## 🎬 How to run -Note that this templates contains a default value which contains a valid AWS OIDC thumbprint as of June 2024. If this thumbprint becomes invalid, obtain a new OIDC thumbprint. For more information, see [Obtain the thumbprint for an OpenID Connect identity provider](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc_verify-thumbprint.html) in the AWS docs. +This template will pick up the thumbprint from the URL that you set in the stack configuration. By default it will use the OIDC IDP URL for Pulumi Cloud. To deploy your infrastructure, run: diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-s3-folder.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-s3-folder.md index 1a925dc6a8..4a547758ea 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-s3-folder.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-ts-s3-folder.md @@ -60,8 +60,8 @@ with `***`. Performing changes: Type Name Status Info - + pulumi:pulumi:Stack aws-js-s3-folder-website-testing created - + ├─ aws:s3:Bucket s3-website-bucket created + + pulumi:pulumi:Stack aws-js-s3-folder-website-testing created + + ├─ aws:s3:BucketV2 s3-website-bucket created + ├─ aws:s3:BucketPolicy bucketPolicy created + ├─ aws:s3:BucketObject favicon.png created + └─ aws:s3:BucketObject index.html created diff --git a/themes/default/content/registry/packages/aws/how-to-guides/aws-yaml-static-website.md b/themes/default/content/registry/packages/aws/how-to-guides/aws-yaml-static-website.md index 612547c422..7db9fa16d4 100644 --- a/themes/default/content/registry/packages/aws/how-to-guides/aws-yaml-static-website.md +++ b/themes/default/content/registry/packages/aws/how-to-guides/aws-yaml-static-website.md @@ -1,8 +1,8 @@ --- -title: "Host a Static Website on Amazon S3 with the AWS Cloud Control Provider | YAML" -h1: "Host a Static Website on Amazon S3 with the AWS Cloud Control Provider" -linktitle: "Host a Static Website on Amazon S3 with the AWS Cloud Control Provider" -meta_desc: "Host a Static Website on Amazon S3 with the AWS Cloud Control Provider How-to Guide using YAML" +title: "Host a Static Website on Amazon S3 with the AWS Native Provider | YAML" +h1: "Host a Static Website on Amazon S3 with the AWS Native Provider" +linktitle: "Host a Static Website on Amazon S3 with the AWS Native Provider" +meta_desc: "Host a Static Website on Amazon S3 with the AWS Native Provider How-to Guide using YAML" no_edit_this_page: true cloud: aws language: yaml @@ -28,8 +28,9 @@ layout: package A static website that uses [S3's website support](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html). For a detailed walkthrough of this example, see the tutorial [Static Website on AWS S3](https://www.pulumi.com/docs/tutorials/aws/s3-website/). -Note: Some resources are not yet supported by the AWS Cloud Control provider, so we are also using -the standard AWS provider for additional resources in this example. +Note: Some resources are not yet supported by the Native AWS provider, so we are using both the Native +and Classic provider in this example. The resources will be updated to use native resources as they are +available in AWS's Cloud Control API. ## Deploying and running the program diff --git a/themes/default/content/registry/packages/azure/how-to-guides/classic-azure-cs-botservice.md b/themes/default/content/registry/packages/azure/how-to-guides/classic-azure-cs-botservice.md index 0c843d5ddd..96dd9b083d 100644 --- a/themes/default/content/registry/packages/azure/how-to-guides/classic-azure-cs-botservice.md +++ b/themes/default/content/registry/packages/azure/how-to-guides/classic-azure-cs-botservice.md @@ -43,41 +43,42 @@ To deploy your infrastructure, follow the below steps. ### Publish Bot Steps -1. Within the **/bot** subfolder, publish the bot to subfolder called publish: +1. Within the **/bot** subfolder, publish the bot to subfolder called publish: ```bash - $ dotnet publish -o publish + dotnet publish -o publish ``` ### Pulumi Steps -1. Within the **azure-cs-botservice** folder, create a new stack: +1. Within the **azure-cs-botservice** folder, create a new stack: ```bash - $ pulumi stack init dev + pulumi stack init dev ``` -2. Login to Azure CLI (you will be prompted to do this during deployment if you forget this step): +1. Login to Azure CLI (you will be prompted to do this during deployment if you forget this step): ```bash - $ az login + az login ``` -3. Configure the location to deploy the resources to: +1. Configure the location to deploy the resources to: ```bash - $ pulumi config set azure:location "North Europe" + pulumi config set azure:location "North Europe" + pulumi config set azure:subscriptionId