1. Packages
  2. AWS
  3. API Docs
  4. s3
  5. BucketServerSideEncryptionConfiguration
AWS v7.1.0 published on Monday, Jul 21, 2025 by Pulumi

aws.s3.BucketServerSideEncryptionConfiguration

Explore with Pulumi AI

aws logo
AWS v7.1.0 published on Monday, Jul 21, 2025 by Pulumi

    Provides a S3 bucket server-side encryption configuration resource.

    NOTE: Destroying an aws.s3.BucketServerSideEncryptionConfiguration resource resets the bucket to Amazon S3 bucket default encryption.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const mykey = new aws.kms.Key("mykey", {
        description: "This key is used to encrypt bucket objects",
        deletionWindowInDays: 10,
    });
    const mybucket = new aws.s3.Bucket("mybucket", {bucket: "mybucket"});
    const example = new aws.s3.BucketServerSideEncryptionConfiguration("example", {
        bucket: mybucket.id,
        rules: [{
            applyServerSideEncryptionByDefault: {
                kmsMasterKeyId: mykey.arn,
                sseAlgorithm: "aws:kms",
            },
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    mykey = aws.kms.Key("mykey",
        description="This key is used to encrypt bucket objects",
        deletion_window_in_days=10)
    mybucket = aws.s3.Bucket("mybucket", bucket="mybucket")
    example = aws.s3.BucketServerSideEncryptionConfiguration("example",
        bucket=mybucket.id,
        rules=[{
            "apply_server_side_encryption_by_default": {
                "kms_master_key_id": mykey.arn,
                "sse_algorithm": "aws:kms",
            },
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/kms"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		mykey, err := kms.NewKey(ctx, "mykey", &kms.KeyArgs{
    			Description:          pulumi.String("This key is used to encrypt bucket objects"),
    			DeletionWindowInDays: pulumi.Int(10),
    		})
    		if err != nil {
    			return err
    		}
    		mybucket, err := s3.NewBucket(ctx, "mybucket", &s3.BucketArgs{
    			Bucket: pulumi.String("mybucket"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = s3.NewBucketServerSideEncryptionConfiguration(ctx, "example", &s3.BucketServerSideEncryptionConfigurationArgs{
    			Bucket: mybucket.ID(),
    			Rules: s3.BucketServerSideEncryptionConfigurationRuleArray{
    				&s3.BucketServerSideEncryptionConfigurationRuleArgs{
    					ApplyServerSideEncryptionByDefault: &s3.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs{
    						KmsMasterKeyId: mykey.Arn,
    						SseAlgorithm:   pulumi.String("aws:kms"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var mykey = new Aws.Kms.Key("mykey", new()
        {
            Description = "This key is used to encrypt bucket objects",
            DeletionWindowInDays = 10,
        });
    
        var mybucket = new Aws.S3.Bucket("mybucket", new()
        {
            BucketName = "mybucket",
        });
    
        var example = new Aws.S3.BucketServerSideEncryptionConfiguration("example", new()
        {
            Bucket = mybucket.Id,
            Rules = new[]
            {
                new Aws.S3.Inputs.BucketServerSideEncryptionConfigurationRuleArgs
                {
                    ApplyServerSideEncryptionByDefault = new Aws.S3.Inputs.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs
                    {
                        KmsMasterKeyId = mykey.Arn,
                        SseAlgorithm = "aws:kms",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.kms.Key;
    import com.pulumi.aws.kms.KeyArgs;
    import com.pulumi.aws.s3.Bucket;
    import com.pulumi.aws.s3.BucketArgs;
    import com.pulumi.aws.s3.BucketServerSideEncryptionConfiguration;
    import com.pulumi.aws.s3.BucketServerSideEncryptionConfigurationArgs;
    import com.pulumi.aws.s3.inputs.BucketServerSideEncryptionConfigurationRuleArgs;
    import com.pulumi.aws.s3.inputs.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var mykey = new Key("mykey", KeyArgs.builder()
                .description("This key is used to encrypt bucket objects")
                .deletionWindowInDays(10)
                .build());
    
            var mybucket = new Bucket("mybucket", BucketArgs.builder()
                .bucket("mybucket")
                .build());
    
            var example = new BucketServerSideEncryptionConfiguration("example", BucketServerSideEncryptionConfigurationArgs.builder()
                .bucket(mybucket.id())
                .rules(BucketServerSideEncryptionConfigurationRuleArgs.builder()
                    .applyServerSideEncryptionByDefault(BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs.builder()
                        .kmsMasterKeyId(mykey.arn())
                        .sseAlgorithm("aws:kms")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      mykey:
        type: aws:kms:Key
        properties:
          description: This key is used to encrypt bucket objects
          deletionWindowInDays: 10
      mybucket:
        type: aws:s3:Bucket
        properties:
          bucket: mybucket
      example:
        type: aws:s3:BucketServerSideEncryptionConfiguration
        properties:
          bucket: ${mybucket.id}
          rules:
            - applyServerSideEncryptionByDefault:
                kmsMasterKeyId: ${mykey.arn}
                sseAlgorithm: aws:kms
    

    Create BucketServerSideEncryptionConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BucketServerSideEncryptionConfiguration(name: string, args: BucketServerSideEncryptionConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def BucketServerSideEncryptionConfiguration(resource_name: str,
                                                args: BucketServerSideEncryptionConfigurationInitArgs,
                                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def BucketServerSideEncryptionConfiguration(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                bucket: Optional[str] = None,
                                                rules: Optional[Sequence[BucketServerSideEncryptionConfigurationRuleArgs]] = None,
                                                expected_bucket_owner: Optional[str] = None,
                                                region: Optional[str] = None)
    func NewBucketServerSideEncryptionConfiguration(ctx *Context, name string, args BucketServerSideEncryptionConfigurationArgs, opts ...ResourceOption) (*BucketServerSideEncryptionConfiguration, error)
    public BucketServerSideEncryptionConfiguration(string name, BucketServerSideEncryptionConfigurationArgs args, CustomResourceOptions? opts = null)
    public BucketServerSideEncryptionConfiguration(String name, BucketServerSideEncryptionConfigurationArgs args)
    public BucketServerSideEncryptionConfiguration(String name, BucketServerSideEncryptionConfigurationArgs args, CustomResourceOptions options)
    
    type: aws:s3:BucketServerSideEncryptionConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BucketServerSideEncryptionConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BucketServerSideEncryptionConfigurationInitArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BucketServerSideEncryptionConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BucketServerSideEncryptionConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BucketServerSideEncryptionConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var bucketServerSideEncryptionConfigurationResource = new Aws.S3.BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource", new()
    {
        Bucket = "string",
        Rules = new[]
        {
            new Aws.S3.Inputs.BucketServerSideEncryptionConfigurationRuleArgs
            {
                ApplyServerSideEncryptionByDefault = new Aws.S3.Inputs.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs
                {
                    SseAlgorithm = "string",
                    KmsMasterKeyId = "string",
                },
                BucketKeyEnabled = false,
            },
        },
        ExpectedBucketOwner = "string",
        Region = "string",
    });
    
    example, err := s3.NewBucketServerSideEncryptionConfiguration(ctx, "bucketServerSideEncryptionConfigurationResource", &s3.BucketServerSideEncryptionConfigurationArgs{
    	Bucket: pulumi.String("string"),
    	Rules: s3.BucketServerSideEncryptionConfigurationRuleArray{
    		&s3.BucketServerSideEncryptionConfigurationRuleArgs{
    			ApplyServerSideEncryptionByDefault: &s3.BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs{
    				SseAlgorithm:   pulumi.String("string"),
    				KmsMasterKeyId: pulumi.String("string"),
    			},
    			BucketKeyEnabled: pulumi.Bool(false),
    		},
    	},
    	ExpectedBucketOwner: pulumi.String("string"),
    	Region:              pulumi.String("string"),
    })
    
    var bucketServerSideEncryptionConfigurationResource = new BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource", BucketServerSideEncryptionConfigurationArgs.builder()
        .bucket("string")
        .rules(BucketServerSideEncryptionConfigurationRuleArgs.builder()
            .applyServerSideEncryptionByDefault(BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs.builder()
                .sseAlgorithm("string")
                .kmsMasterKeyId("string")
                .build())
            .bucketKeyEnabled(false)
            .build())
        .expectedBucketOwner("string")
        .region("string")
        .build());
    
    bucket_server_side_encryption_configuration_resource = aws.s3.BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource",
        bucket="string",
        rules=[{
            "apply_server_side_encryption_by_default": {
                "sse_algorithm": "string",
                "kms_master_key_id": "string",
            },
            "bucket_key_enabled": False,
        }],
        expected_bucket_owner="string",
        region="string")
    
    const bucketServerSideEncryptionConfigurationResource = new aws.s3.BucketServerSideEncryptionConfiguration("bucketServerSideEncryptionConfigurationResource", {
        bucket: "string",
        rules: [{
            applyServerSideEncryptionByDefault: {
                sseAlgorithm: "string",
                kmsMasterKeyId: "string",
            },
            bucketKeyEnabled: false,
        }],
        expectedBucketOwner: "string",
        region: "string",
    });
    
    type: aws:s3:BucketServerSideEncryptionConfiguration
    properties:
        bucket: string
        expectedBucketOwner: string
        region: string
        rules:
            - applyServerSideEncryptionByDefault:
                kmsMasterKeyId: string
                sseAlgorithm: string
              bucketKeyEnabled: false
    

    BucketServerSideEncryptionConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The BucketServerSideEncryptionConfiguration resource accepts the following input properties:

    Bucket string
    ID (name) of the bucket.
    Rules List<BucketServerSideEncryptionConfigurationRule>
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    ExpectedBucketOwner string
    Account ID of the expected bucket owner.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Bucket string
    ID (name) of the bucket.
    Rules []BucketServerSideEncryptionConfigurationRuleArgs
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    ExpectedBucketOwner string
    Account ID of the expected bucket owner.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    bucket String
    ID (name) of the bucket.
    rules List<BucketServerSideEncryptionConfigurationRule>
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    expectedBucketOwner String
    Account ID of the expected bucket owner.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    bucket string
    ID (name) of the bucket.
    rules BucketServerSideEncryptionConfigurationRule[]
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    expectedBucketOwner string
    Account ID of the expected bucket owner.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    bucket str
    ID (name) of the bucket.
    rules Sequence[BucketServerSideEncryptionConfigurationRuleArgs]
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    expected_bucket_owner str
    Account ID of the expected bucket owner.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    bucket String
    ID (name) of the bucket.
    rules List<Property Map>
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    expectedBucketOwner String
    Account ID of the expected bucket owner.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BucketServerSideEncryptionConfiguration resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing BucketServerSideEncryptionConfiguration Resource

    Get an existing BucketServerSideEncryptionConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BucketServerSideEncryptionConfigurationState, opts?: CustomResourceOptions): BucketServerSideEncryptionConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket: Optional[str] = None,
            expected_bucket_owner: Optional[str] = None,
            region: Optional[str] = None,
            rules: Optional[Sequence[BucketServerSideEncryptionConfigurationRuleArgs]] = None) -> BucketServerSideEncryptionConfiguration
    func GetBucketServerSideEncryptionConfiguration(ctx *Context, name string, id IDInput, state *BucketServerSideEncryptionConfigurationState, opts ...ResourceOption) (*BucketServerSideEncryptionConfiguration, error)
    public static BucketServerSideEncryptionConfiguration Get(string name, Input<string> id, BucketServerSideEncryptionConfigurationState? state, CustomResourceOptions? opts = null)
    public static BucketServerSideEncryptionConfiguration get(String name, Output<String> id, BucketServerSideEncryptionConfigurationState state, CustomResourceOptions options)
    resources:  _:    type: aws:s3:BucketServerSideEncryptionConfiguration    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Bucket string
    ID (name) of the bucket.
    ExpectedBucketOwner string
    Account ID of the expected bucket owner.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Rules List<BucketServerSideEncryptionConfigurationRule>
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    Bucket string
    ID (name) of the bucket.
    ExpectedBucketOwner string
    Account ID of the expected bucket owner.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Rules []BucketServerSideEncryptionConfigurationRuleArgs
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    bucket String
    ID (name) of the bucket.
    expectedBucketOwner String
    Account ID of the expected bucket owner.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    rules List<BucketServerSideEncryptionConfigurationRule>
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    bucket string
    ID (name) of the bucket.
    expectedBucketOwner string
    Account ID of the expected bucket owner.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    rules BucketServerSideEncryptionConfigurationRule[]
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    bucket str
    ID (name) of the bucket.
    expected_bucket_owner str
    Account ID of the expected bucket owner.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    rules Sequence[BucketServerSideEncryptionConfigurationRuleArgs]
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
    bucket String
    ID (name) of the bucket.
    expectedBucketOwner String
    Account ID of the expected bucket owner.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    rules List<Property Map>
    Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.

    Supporting Types

    BucketServerSideEncryptionConfigurationRule, BucketServerSideEncryptionConfigurationRuleArgs

    ApplyServerSideEncryptionByDefault BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault
    Single object for setting server-side encryption by default. See below.
    BucketKeyEnabled bool
    Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
    ApplyServerSideEncryptionByDefault BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault
    Single object for setting server-side encryption by default. See below.
    BucketKeyEnabled bool
    Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
    applyServerSideEncryptionByDefault BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault
    Single object for setting server-side encryption by default. See below.
    bucketKeyEnabled Boolean
    Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
    applyServerSideEncryptionByDefault BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault
    Single object for setting server-side encryption by default. See below.
    bucketKeyEnabled boolean
    Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
    apply_server_side_encryption_by_default BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault
    Single object for setting server-side encryption by default. See below.
    bucket_key_enabled bool
    Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.
    applyServerSideEncryptionByDefault Property Map
    Single object for setting server-side encryption by default. See below.
    bucketKeyEnabled Boolean
    Whether or not to use Amazon S3 Bucket Keys for SSE-KMS.

    BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault, BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefaultArgs

    SseAlgorithm string
    Server-side encryption algorithm to use. Valid values are AES256, aws:kms, and aws:kms:dsse
    KmsMasterKeyId string
    AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms.
    SseAlgorithm string
    Server-side encryption algorithm to use. Valid values are AES256, aws:kms, and aws:kms:dsse
    KmsMasterKeyId string
    AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms.
    sseAlgorithm String
    Server-side encryption algorithm to use. Valid values are AES256, aws:kms, and aws:kms:dsse
    kmsMasterKeyId String
    AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms.
    sseAlgorithm string
    Server-side encryption algorithm to use. Valid values are AES256, aws:kms, and aws:kms:dsse
    kmsMasterKeyId string
    AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms.
    sse_algorithm str
    Server-side encryption algorithm to use. Valid values are AES256, aws:kms, and aws:kms:dsse
    kms_master_key_id str
    AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms.
    sseAlgorithm String
    Server-side encryption algorithm to use. Valid values are AES256, aws:kms, and aws:kms:dsse
    kmsMasterKeyId String
    AWS KMS master key ID used for the SSE-KMS encryption. This can only be used when you set the value of sse_algorithm as aws:kms. The default aws/s3 AWS KMS master key is used if this element is absent while the sse_algorithm is aws:kms.

    Import

    If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the bucket and expected_bucket_owner separated by a comma (,):

    Using pulumi import to import S3 bucket server-side encryption configuration using the bucket or using the bucket and expected_bucket_owner separated by a comma (,). For example:

    If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the bucket:

    $ pulumi import aws:s3/bucketServerSideEncryptionConfiguration:BucketServerSideEncryptionConfiguration example bucket-name
    

    If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the bucket and expected_bucket_owner separated by a comma (,):

    $ pulumi import aws:s3/bucketServerSideEncryptionConfiguration:BucketServerSideEncryptionConfiguration example bucket-name,123456789012
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.1.0 published on Monday, Jul 21, 2025 by Pulumi