Skip to content

Examples using removed Pulumi AWS v2 SDK #2182

@rgharris

Description

@rgharris

What happened?

Some TS examples are outdated - they try to use the AWS v2 SDK via @pulumi/aws (aws.sdk) which was removed in 2023. You get an error like Property 'sdk' does not exist on type 'typeof import("/deployment/node_modules/@pulumi/aws/index")'.

Plus there are two examples on the pulumi.com website’s serverless page that use the removed property (e.g., aws.sdk.DynamoDB.DocumentClient()).

Example

Follow the instructions for the aws-ts-url-shortener-cache-http example.

Output of pulumi about

CLI          
Version      3.173.0
Go Version   go1.24.3
Go Compiler  gc

Plugins
KIND      NAME    VERSION
language  nodejs  3.173.0

Host     
OS       darwin
Version  15.5
Arch     arm64

This project is written in nodejs: executable='/Users/REDACTED/.nvm/versions/node/v22.11.0/bin/node' version='v22.11.0'

Current Stack: REDACTED/stack-test-02/dev

TYPE                 URN
pulumi:pulumi:Stack  urn:pulumi:dev::stack-test-02::pulumi:pulumi:Stack::stack-test-02-dev


Found no pending operations associated with dev

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/REDACTED
User           REDACTED
Organizations  REDACTED
Token type     personal

Dependencies:
NAME            VERSION
@pulumi/pulumi  3.175.0
@types/node     18.19.111
typescript      5.8.3

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSome behavior is incorrect or out of specneeds-triageNeeds attention from the triage team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions