From c1afe5a021e3b4e98f53047a3a33911b5fdcaa30 Mon Sep 17 00:00:00 2001 From: Matthew Jeffryes Date: Wed, 6 Nov 2024 15:18:34 -0800 Subject: [PATCH] Remove documentation pointing to deleted examples --- .../registry/packages/aws-native/_index.md | 9 +- .../aws-native-java-s3-folder.md | 138 ------------------ .../how-to-guides/aws-native-ts-ecs.md | 131 ----------------- .../how-to-guides/aws-native-ts-s3-folder.md | 117 --------------- .../aws-native-ts-stepfunctions.md | 116 --------------- 5 files changed, 2 insertions(+), 509 deletions(-) delete mode 100644 themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-java-s3-folder.md delete mode 100644 themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-ecs.md delete mode 100644 themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-s3-folder.md delete mode 100644 themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-stepfunctions.md diff --git a/themes/default/content/registry/packages/aws-native/_index.md b/themes/default/content/registry/packages/aws-native/_index.md index 0789a9b2d1..91110344e3 100644 --- a/themes/default/content/registry/packages/aws-native/_index.md +++ b/themes/default/content/registry/packages/aws-native/_index.md @@ -21,14 +21,9 @@ AWS Cloud Control must be configured with credentials to deploy and update resou {{< youtube oKxaZCyu2OQ >}} -## Examples +## Example -Check out the examples below to try out AWS Cloud Control: - -* [Create an ECS Cluster on AWS](/registry/packages/aws-native/how-to-guides/aws-native-ts-ecs) -* [Host a Static Website on Amazon S3](/registry/packages/aws-native/how-to-guides/aws-native-ts-s3-folder) -* [Launch a Simple AWS Step Function State Machine With Lambda Functions](/registry/packages/aws-native/how-to-guides/aws-native-ts-stepfunctions) -* Create an Object Lambda access point that transforms object requests to a bucket: +Create an Object Lambda access point that transforms object requests to a bucket: {{< chooser language "typescript,python,csharp,go,java,yaml" >}} diff --git a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-java-s3-folder.md b/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-java-s3-folder.md deleted file mode 100644 index 561e7146c0..0000000000 --- a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-java-s3-folder.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -title: "Host a Static Website on Amazon S3 with the AWS Cloud Control Provider | Java" -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 Java" -no_edit_this_page: true -cloud: aws-native -language: java -layout: package ---- - - - - -

- - - - View Code - - - - Deploy this example with Pulumi - -

- - -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. - -## Deploying and running the program - -Note: some values in this example will be different from run to run. These values are indicated -with `***`. - -1. Set the AWS region: - - Either using an environment variable - ```bash - $ export AWS_REGION=us-west-2 - ``` - - Or with the stack config - ```bash - $ pulumi config set aws:region us-west-2 - $ pulumi config set aws-native:region us-west-2 - ``` - -1. Run `pulumi up` to preview and deploy changes. After the preview is shown you will be - prompted if you want to continue or not. - - ```bash - $ pulumi up - Previewing update (dev) - - View Live: https://app.pulumi.com/***/aws-java-s3-folder/dev/previews/e251093a-d128-4ed3-a230-4e98888aed84 - - Type Name Plan Info - + pulumi:pulumi:Stack aws-java-s3-folder-dev create 6 messages - + ├─ aws-native:s3:Bucket s3-website-bucket create - + ├─ aws:s3:BucketPolicy bucketPolicy create - + ├─ aws:s3:BucketObject index.html create - + └─ aws:s3:BucketObject favicon.ico create - - Diagnostics: - pulumi:pulumi:Stack (aws-java-s3-folder-dev): - > Task :app:compileJava UP-TO-DATE - > Task :app:processResources NO-SOURCE - > Task :app:classes UP-TO-DATE - > Task :app:run - BUILD SUCCESSFUL in 3s - 2 actionable tasks: 1 executed, 1 up-to-date - - - Updating (dev) - - View Live: https://app.pulumi.com/***/aws-java-s3-folder/dev/updates/1 - - Type Name Status Info - + pulumi:pulumi:Stack aws-java-s3-folder-dev created 6 messages - + ├─ aws-native:s3:Bucket s3-website-bucket created - + ├─ aws:s3:BucketPolicy bucketPolicy created - + ├─ aws:s3:BucketObject index.html created - + └─ aws:s3:BucketObject favicon.ico created - - Diagnostics: - pulumi:pulumi:Stack (aws-java-s3-folder-dev): - > Task :app:compileJava UP-TO-DATE - > Task :app:processResources NO-SOURCE - > Task :app:classes UP-TO-DATE - > Task :app:run - BUILD SUCCESSFUL in 1m 5s - 2 actionable tasks: 1 executed, 1 up-to-date - - Outputs: - bucketName: "s3-website-bucket-***" - urn : "***" - websiteUrl: "http://s3-website-bucket-***.s3-website-us-west-2.amazonaws.com" - - Resources: - + 5 created - - Duration: 1m6s - ``` - -1. To see the resources that were created, run `pulumi stack output`: - - ```bash - $ pulumi stack output - Current stack outputs (3): - OUTPUT VALUE - bucketName s3-website-bucket-*** - urn urn:pulumi:dev::aws-java-s3-folder::pulumi:pulumi:Stack::aws-java-s3-folder-dev - websiteUrl http://s3-website-bucket-***.s3-website-us-west-2.amazonaws.com - ``` - -1. To see that the S3 objects exist, you can either use the AWS Console or the AWS CLI: - - ```bash - $ aws s3 ls $(pulumi stack output bucketName) - 2022-02-17 14:11:54 13731 favicon.ico - 2022-02-17 14:11:54 198 index.html - ``` - -1. Open the site URL in a browser to see both the rendered HTML and the favicon: - - ```bash - $ pulumi stack output websiteUrl - http://s3-website-bucket-***.s3-website-us-west-2.amazonaws.com - ``` - - ![Hello S3 example](https://user-images.githubusercontent.com/274700/116912066-9384e300-abfc-11eb-8130-dbcff512a9de.png) - -1. To clean up resources, run `pulumi destroy` and answer the confirmation question at the prompt. - diff --git a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-ecs.md b/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-ecs.md deleted file mode 100644 index 5f84b5372e..0000000000 --- a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-ecs.md +++ /dev/null @@ -1,131 +0,0 @@ ---- -title: "Create an ECS cluster on AWS with the AWS Cloud Control Provider | TypeScript" -h1: "Create an ECS cluster on AWS with the AWS Cloud Control Provider" -linktitle: "Create an ECS cluster on AWS with the AWS Cloud Control Provider" -meta_desc: "Create an ECS cluster on AWS with the AWS Cloud Control Provider How-to Guide using TypeScript" -no_edit_this_page: true -cloud: aws-native -language: ts -layout: package ---- - - - - -

- - - - View Code - - - - Deploy this example with Pulumi - -

- - -Create an ECS cluster, and deploy a task and service. - -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. - -## Deploying and running the program - -Note: some values in this example will be different from run to run. These values are indicated -with `***`. - -1. Create a new stack: - - ```bash - $ pulumi stack init dev - ``` - -1. Set the AWS region: - - Either using an environment variable - ```bash - $ export AWS_REGION=us-west-2 - ``` - - Or with the stack config - ```bash - $ pulumi config set aws:region us-west-2 - $ pulumi config set aws-native:region us-west-2 - ``` - -1. Restore NPM modules via `npm install` or `yarn install`. - -1. Run `pulumi up` to preview and deploy changes. After the preview is shown you will be - prompted if you want to continue or not. - - ```bash - $ pulumi up - Previewing update (dev) - ... - - Updating (dev) - - View Live: https://app.pulumi.com/***/aws-native-ts-ecs/dev/updates/1 - - Type Name Status - + pulumi:pulumi:Stack aws-native-ts-ecs-dev created - + ├─ aws:iam:Role task-exec-role created - + ├─ aws-native:ecs:Cluster cluster created - + ├─ aws:lb:TargetGroup app-tg created - + ├─ aws:ec2:SecurityGroup web-secgrp created - + ├─ aws:iam:RolePolicyAttachment task-exec-policy created - + ├─ aws-native:ecs:TaskDefinition app-task created - + ├─ aws:lb:LoadBalancer app-lb created - + ├─ aws-native:elasticloadbalancingv2:Listener web created - + └─ aws-native:ecs:Service app-svc created - - Outputs: - url: "app-lb-***.us-west-2.elb.amazonaws.com" - - Resources: - + 10 created - - Duration: *** - ``` - -1. To see the resources that were created, run `pulumi stack output`: - - ```bash - $ pulumi stack output - Current stack outputs (1): - OUTPUT VALUE - url app-lb-***.us-west-2.elb.amazonaws.com - ``` - -1. Use curl to confirm that NGINX was deployed successfully: - - ```bash - $ curl $(pulumi stack output url) - - - - Welcome to nginx! - - - -

Welcome to nginx!

-

If you see this page, the nginx web server is successfully installed and - working. Further configuration is required.

- -

For online documentation and support please refer to - nginx.org.
- Commercial support is available at - nginx.com.

- -

Thank you for using nginx.

- - - ``` - -1. To clean up resources, run `pulumi destroy` and answer the confirmation question at the prompt. - diff --git a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-s3-folder.md b/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-s3-folder.md deleted file mode 100644 index 288f2ff6ff..0000000000 --- a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-s3-folder.md +++ /dev/null @@ -1,117 +0,0 @@ ---- -title: "Host a Static Website on Amazon S3 with the AWS Cloud Control Provider | TypeScript" -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 TypeScript" -no_edit_this_page: true -cloud: aws-native -language: ts -layout: package ---- - - - - -

- - - - View Code - - - - Deploy this example with Pulumi - -

- - -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. - -## Deploying and running the program - -Note: some values in this example will be different from run to run. These values are indicated -with `***`. - -1. Create a new stack: - - ```bash - $ pulumi stack init dev - ``` - -1. Set the AWS region: - - Either using an environment variable - ```bash - $ export AWS_REGION=us-west-2 - ``` - - Or with the stack config - ```bash - $ pulumi config set aws:region us-west-2 - $ pulumi config set aws-native:region us-west-2 - ``` - -1. Restore NPM modules via `npm install` or `yarn install`. - -1. Run `pulumi up` to preview and deploy changes. After the preview is shown you will be - prompted if you want to continue or not. - - ```bash - $ pulumi up - Previewing update (dev) - ... - - Updating (dev) - - View Live: https://app.pulumi.com/***/aws-native-ts-s3-folder/dev/updates/1 - - Type Name Status - + pulumi:pulumi:Stack aws-native-ts-s3-folder-dev created - + ├─ aws-native:s3:Bucket s3-website-bucket created - + ├─ aws:s3:BucketPolicy bucketPolicy created - + ├─ aws:s3:BucketObject index.html created - + └─ aws:s3:BucketObject favicon.png created - - Outputs: - bucketName: "***" - websiteUrl: "http://***.s3-website-us-west-2.amazonaws.com" - - Resources: - + 5 created - - Duration: *** - ``` - -1. To see the resources that were created, run `pulumi stack output`: - - ```bash - $ pulumi stack output - Current stack outputs (2): - OUTPUT VALUE - bucketName *** - websiteUrl http://***.s3-website-us-west-2.amazonaws.com - ``` - -1. To see that the S3 objects exist, you can either use the AWS Console or the AWS CLI: - - ```bash - $ aws s3 ls $(pulumi stack output bucketName) - 2021-09-30 15:27:58 13731 favicon.png - 2021-09-30 15:27:58 198 index.html - ``` - -1. Open the site URL in a browser to see both the rendered HTML and the favicon: - - ```bash - $ pulumi stack output websiteUrl - ***.s3-website-us-west-2.amazonaws.com - ``` - - ![Hello S3 example](https://user-images.githubusercontent.com/274700/116912066-9384e300-abfc-11eb-8130-dbcff512a9de.png) - -1. To clean up resources, run `pulumi destroy` and answer the confirmation question at the prompt. - diff --git a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-stepfunctions.md b/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-stepfunctions.md deleted file mode 100644 index 4b589354f8..0000000000 --- a/themes/default/content/registry/packages/aws-native/how-to-guides/aws-native-ts-stepfunctions.md +++ /dev/null @@ -1,116 +0,0 @@ ---- -title: "AWS Step Functions with the AWS Cloud Control Provider | TypeScript" -h1: "AWS Step Functions with the AWS Cloud Control Provider" -linktitle: "AWS Step Functions with the AWS Cloud Control Provider" -meta_desc: "AWS Step Functions with the AWS Cloud Control Provider How-to Guide using TypeScript" -no_edit_this_page: true -cloud: aws-native -language: ts -layout: package ---- - - - - -

- - - - View Code - - - - Deploy this example with Pulumi - -

- - -A basic example that demonstrates using AWS Step Functions with a Lambda function using the AWS Cloud Control provider. - -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. - -## Known error - -On the first update, you may see the following error message: - -``` -error: operation CREATE failed with "InvalidRequest": The role defined for the function cannot be assumed by Lambda. (Service: Lambda, Status Code: 400, Request ID: c33fdd39-59d4-4ba8-8ad6-29f6c04d79eb, Extended Request ID: null) -``` - -Re-running the update should succeed. This issue is tracked [here](https://github.com/pulumi/pulumi-aws-native/issues/148) - -## Deploying and running the program - -Note: some values in this example will be different from run to run. These values are indicated -with `***`. - -1. Create a new stack: - - ```bash - $ pulumi stack init dev - ``` - -1. Set the AWS region: - - Either using an environment variable - ```bash - $ export AWS_REGION=us-west-2 - ``` - - Or with the stack config - ```bash - $ pulumi config set aws:region us-west-2 - $ pulumi config set aws-native:region us-west-2 - ``` - -1. Restore NPM modules via `npm install` or `yarn install`. - -1. Run `pulumi up` to preview and deploy changes. After the preview is shown you will be - prompted if you want to continue or not. - - ```bash - $ pulumi up - Previewing update (dev) - ... - - Updating (dev) - - View Live: https://app.pulumi.com/***/stepfunctions/dev/updates/1 - - Type Name Status - + pulumi:pulumi:Stack stepfunctions-dev created - + ├─ aws:iam:Role sfnRole created - + ├─ aws:iam:Role lambdaRole created - + ├─ aws:iam:RolePolicy sfnRolePolicy created - + ├─ aws:iam:RolePolicy lambdaRolePolicy created - + ├─ aws-native:lambda:Function helloFunction created - + ├─ aws-native:lambda:Function worldFunction created - + └─ aws-native:stepfunctions:StateMachine stateMachine created - - Outputs: - + stateMachineArn: "arn:aws:states:us-west-2:***:stateMachine:***" - - Resources: - + 10 created - - Duration: *** - ``` - -1. To see the resources that were created, run `pulumi stack output`: - - ```bash - $ pulumi stack output - Current stack outputs (1): - OUTPUT VALUE - stateMachineArn arn:aws:states:us-west-2:***:stateMachine:*** - ``` - -1. Start execution using the AWS CLI (or from the console at https://console.aws.amazon.com/states) - - ```bash - $ aws stepfunctions start-sync-execution --state-machine-arn $(pulumi stack output stateMachineArn) - ``` - -1. To clean up resources, run `pulumi destroy` and answer the confirmation question at the prompt. -