1. Packages
  2. AWS
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

AWS

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    The Amazon Web Services (AWS) provider for Pulumi can provision many of the cloud resources available in AWS. It uses the AWS SDK to manage and provision resources.

    The AWS provider must be configured with credentials to deploy and update resources in AWS; see Installation & Configuration for instructions.

    New to Pulumi and AWS? Get started with AWS using our tutorial.

    Example

    const aws = require("@pulumi/aws");
    
    const bucket = new aws.s3.Bucket("mybucket");
    
    import pulumi
    import pulumi_aws as aws
    
    bucket = aws.s3.Bucket("bucket")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/s3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := s3.NewBucket(ctx, "bucket", &s3.BucketArgs{})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    await Deployment.RunAsync(() =>
    {
        var bucket = new Aws.S3.Bucket("bucket");
    });
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.aws.s3.Bucket;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        private static void stack(Context ctx) {
            final var bucket = new Bucket("my-bucket");
            ctx.export("bucketName", bucket.name());
      }
    }
    
    resources:
      mybucket:
        type: aws:s3:Bucket
    outputs:
      bucketName: ${mybucket.name}
    

    Visit the How-to Guides to find step-by-step guides for specific scenarios like creating a serverless application or setting up Athena search.

    Components

    Pulumi offers Components that provide simpler interfaces and higher-productivity APIs for many areas of AWS:

    • Amazon EKS
    • Crosswalk for AWS, which includes API Gateway, CloudWatch, Elastic Container Registry, Elastic Container Service, Elastic Kubernetes Service, Elastic Load Balancing, Identity & Access Management, Lambda, Virtual Private Cloud, and more
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi