Pulumi AWS Native

1.61.0 · active · verified Thu Apr 16

Pulumi AWS Native, currently at version 1.61.0, is a Python package for defining and managing AWS resources using the AWS Cloud Control API. It provides same-day access to new AWS resources and properties as they become available in Cloud Control. The library maintains a rapid release cadence, often with multiple updates per month, reflecting its close alignment with AWS Cloud Control API updates.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart program provisions a new S3 bucket using the `pulumi-aws-native` provider. It demonstrates how to import the provider and create a basic AWS resource, then exports the bucket's name. Remember to configure your AWS credentials and region before running `pulumi up`.

import pulumi
import pulumi_aws_native as aws_native
import os

# Configure AWS region (e.g., via pulumi config set aws-native:region us-east-1
# or AWS_REGION environment variable) and AWS credentials.
# For quickstart, ensure AWS CLI is configured or env vars are set:
# export AWS_ACCESS_KEY_ID='YOUR_ACCESS_KEY'
# export AWS_SECRET_ACCESS_KEY='YOUR_SECRET_KEY'
# export AWS_REGION='us-east-1'

# Create an AWS S3 Bucket
# Pulumi will automatically assign a unique name if 'my-bucket' is used as the URN part.
# You can also pass a specific bucket_name property if a fixed name is required (must be globally unique).
bucket = aws_native.s3.Bucket("my-first-aws-native-bucket",
    bucket_name="my-unique-pulumi-bucket-name-12345") # Use a unique name for actual deployment

# Export the name of the bucket
pulumi.export("bucket_name", bucket.bucket_name)

# To deploy this, navigate to your project directory in the terminal and run:
# pulumi up

view raw JSON →