A minimal Pulumi template for provisioning AWS infrastructure using TypeScript. This template creates an Amazon S3 bucket and exports its name.
- Pulumi CLI (>= v3): https://www.pulumi.com/docs/get-started/install/
- Node.js (>= 14): https://nodejs.org/
- AWS credentials configured (e.g., via
aws configure
or environment variables)
-
Initialize a new Pulumi project:
pulumi new aws-typescript
Follow the prompts to set your:
- Project name
- Project description
- AWS region (defaults to
us-east-1
)
-
Preview and deploy your infrastructure:
pulumi preview pulumi up
-
When you're finished, tear down your stack:
pulumi destroy pulumi stack rm
Pulumi.yaml
— Pulumi project and template metadataindex.ts
— Main Pulumi program (creates an S3 bucket)package.json
— Node.js dependenciestsconfig.json
— TypeScript compiler options
Key | Description | Default |
---|---|---|
aws:region |
The AWS region to deploy resources into | us-east-1 |
Use pulumi config set <key> <value>
to customize configuration.
- Extend
index.ts
to provision additional resources (e.g., VPCs, Lambda functions, DynamoDB tables). - Explore Pulumi AWSX for higher-level AWS components.
- Consult the Pulumi documentation for more examples and best practices.
If you encounter any issues or have suggestions, please open an issue in this repository.