1. Packages
  2. AWS Classic
  3. API Docs
  4. glacier
  5. VaultLock

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.glacier.VaultLock

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    Manages a Glacier Vault Lock. You can refer to the Glacier Developer Guide for a full explanation of the Glacier Vault Lock functionality.

    NOTE: This resource allows you to test Glacier Vault Lock policies by setting the complete_lock argument to false. When testing policies in this manner, the Glacier Vault Lock automatically expires after 24 hours and this provider will show this resource as needing recreation after that time. To permanently apply the policy, set the complete_lock argument to true. When changing complete_lock to true, it is expected the resource will show as recreating.

    !> WARNING: Once a Glacier Vault Lock is completed, it is immutable. The deletion of the Glacier Vault Lock is not be possible and attempting to remove it from this provider will return an error. Set the ignore_deletion_error argument to true and apply this configuration before attempting to delete this resource via this provider or remove this resource from this provider’s management.

    Example Usage

    Testing Glacier Vault Lock Policy

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const exampleVault = new aws.glacier.Vault("example", {name: "example"});
    const example = aws.iam.getPolicyDocumentOutput({
        statements: [{
            actions: ["glacier:DeleteArchive"],
            effect: "Deny",
            resources: [exampleVault.arn],
            conditions: [{
                test: "NumericLessThanEquals",
                variable: "glacier:ArchiveAgeinDays",
                values: ["365"],
            }],
        }],
    });
    const exampleVaultLock = new aws.glacier.VaultLock("example", {
        completeLock: false,
        policy: example.apply(example => example.json),
        vaultName: exampleVault.name,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example_vault = aws.glacier.Vault("example", name="example")
    example = aws.iam.get_policy_document_output(statements=[aws.iam.GetPolicyDocumentStatementArgs(
        actions=["glacier:DeleteArchive"],
        effect="Deny",
        resources=[example_vault.arn],
        conditions=[aws.iam.GetPolicyDocumentStatementConditionArgs(
            test="NumericLessThanEquals",
            variable="glacier:ArchiveAgeinDays",
            values=["365"],
        )],
    )])
    example_vault_lock = aws.glacier.VaultLock("example",
        complete_lock=False,
        policy=example.json,
        vault_name=example_vault.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glacier"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleVault, err := glacier.NewVault(ctx, "example", &glacier.VaultArgs{
    			Name: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		example := iam.GetPolicyDocumentOutput(ctx, iam.GetPolicyDocumentOutputArgs{
    			Statements: iam.GetPolicyDocumentStatementArray{
    				&iam.GetPolicyDocumentStatementArgs{
    					Actions: pulumi.StringArray{
    						pulumi.String("glacier:DeleteArchive"),
    					},
    					Effect: pulumi.String("Deny"),
    					Resources: pulumi.StringArray{
    						exampleVault.Arn,
    					},
    					Conditions: iam.GetPolicyDocumentStatementConditionArray{
    						&iam.GetPolicyDocumentStatementConditionArgs{
    							Test:     pulumi.String("NumericLessThanEquals"),
    							Variable: pulumi.String("glacier:ArchiveAgeinDays"),
    							Values: pulumi.StringArray{
    								pulumi.String("365"),
    							},
    						},
    					},
    				},
    			},
    		}, nil)
    		_, err = glacier.NewVaultLock(ctx, "example", &glacier.VaultLockArgs{
    			CompleteLock: pulumi.Bool(false),
    			Policy: example.ApplyT(func(example iam.GetPolicyDocumentResult) (*string, error) {
    				return &example.Json, nil
    			}).(pulumi.StringPtrOutput),
    			VaultName: exampleVault.Name,
    		})
    		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 exampleVault = new Aws.Glacier.Vault("example", new()
        {
            Name = "example",
        });
    
        var example = Aws.Iam.GetPolicyDocument.Invoke(new()
        {
            Statements = new[]
            {
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Actions = new[]
                    {
                        "glacier:DeleteArchive",
                    },
                    Effect = "Deny",
                    Resources = new[]
                    {
                        exampleVault.Arn,
                    },
                    Conditions = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementConditionInputArgs
                        {
                            Test = "NumericLessThanEquals",
                            Variable = "glacier:ArchiveAgeinDays",
                            Values = new[]
                            {
                                "365",
                            },
                        },
                    },
                },
            },
        });
    
        var exampleVaultLock = new Aws.Glacier.VaultLock("example", new()
        {
            CompleteLock = false,
            Policy = example.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
            VaultName = exampleVault.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glacier.Vault;
    import com.pulumi.aws.glacier.VaultArgs;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.glacier.VaultLock;
    import com.pulumi.aws.glacier.VaultLockArgs;
    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 exampleVault = new Vault("exampleVault", VaultArgs.builder()        
                .name("example")
                .build());
    
            final var example = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .actions("glacier:DeleteArchive")
                    .effect("Deny")
                    .resources(exampleVault.arn())
                    .conditions(GetPolicyDocumentStatementConditionArgs.builder()
                        .test("NumericLessThanEquals")
                        .variable("glacier:ArchiveAgeinDays")
                        .values("365")
                        .build())
                    .build())
                .build());
    
            var exampleVaultLock = new VaultLock("exampleVaultLock", VaultLockArgs.builder()        
                .completeLock(false)
                .policy(example.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(example -> example.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())))
                .vaultName(exampleVault.name())
                .build());
    
        }
    }
    
    resources:
      exampleVault:
        type: aws:glacier:Vault
        name: example
        properties:
          name: example
      exampleVaultLock:
        type: aws:glacier:VaultLock
        name: example
        properties:
          completeLock: false
          policy: ${example.json}
          vaultName: ${exampleVault.name}
    variables:
      example:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - actions:
                  - glacier:DeleteArchive
                effect: Deny
                resources:
                  - ${exampleVault.arn}
                conditions:
                  - test: NumericLessThanEquals
                    variable: glacier:ArchiveAgeinDays
                    values:
                      - '365'
    

    Permanently Applying Glacier Vault Lock Policy

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.glacier.VaultLock("example", {
        completeLock: true,
        policy: exampleAwsIamPolicyDocument.json,
        vaultName: exampleAwsGlacierVault.name,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.glacier.VaultLock("example",
        complete_lock=True,
        policy=example_aws_iam_policy_document["json"],
        vault_name=example_aws_glacier_vault["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/glacier"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := glacier.NewVaultLock(ctx, "example", &glacier.VaultLockArgs{
    			CompleteLock: pulumi.Bool(true),
    			Policy:       pulumi.Any(exampleAwsIamPolicyDocument.Json),
    			VaultName:    pulumi.Any(exampleAwsGlacierVault.Name),
    		})
    		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 example = new Aws.Glacier.VaultLock("example", new()
        {
            CompleteLock = true,
            Policy = exampleAwsIamPolicyDocument.Json,
            VaultName = exampleAwsGlacierVault.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.glacier.VaultLock;
    import com.pulumi.aws.glacier.VaultLockArgs;
    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 example = new VaultLock("example", VaultLockArgs.builder()        
                .completeLock(true)
                .policy(exampleAwsIamPolicyDocument.json())
                .vaultName(exampleAwsGlacierVault.name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:glacier:VaultLock
        properties:
          completeLock: true
          policy: ${exampleAwsIamPolicyDocument.json}
          vaultName: ${exampleAwsGlacierVault.name}
    

    Create VaultLock Resource

    new VaultLock(name: string, args: VaultLockArgs, opts?: CustomResourceOptions);
    @overload
    def VaultLock(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  complete_lock: Optional[bool] = None,
                  ignore_deletion_error: Optional[bool] = None,
                  policy: Optional[str] = None,
                  vault_name: Optional[str] = None)
    @overload
    def VaultLock(resource_name: str,
                  args: VaultLockArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewVaultLock(ctx *Context, name string, args VaultLockArgs, opts ...ResourceOption) (*VaultLock, error)
    public VaultLock(string name, VaultLockArgs args, CustomResourceOptions? opts = null)
    public VaultLock(String name, VaultLockArgs args)
    public VaultLock(String name, VaultLockArgs args, CustomResourceOptions options)
    
    type: aws:glacier:VaultLock
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args VaultLockArgs
    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 VaultLockArgs
    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 VaultLockArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VaultLockArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VaultLockArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VaultLock Resource Properties

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

    Inputs

    The VaultLock resource accepts the following input properties:

    CompleteLock bool
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    Policy string
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    VaultName string
    The name of the Glacier Vault.
    IgnoreDeletionError bool
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    CompleteLock bool
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    Policy string
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    VaultName string
    The name of the Glacier Vault.
    IgnoreDeletionError bool
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    completeLock Boolean
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    policy String
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vaultName String
    The name of the Glacier Vault.
    ignoreDeletionError Boolean
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    completeLock boolean
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    policy string
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vaultName string
    The name of the Glacier Vault.
    ignoreDeletionError boolean
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    complete_lock bool
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    policy str
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vault_name str
    The name of the Glacier Vault.
    ignore_deletion_error bool
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    completeLock Boolean
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    policy String
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vaultName String
    The name of the Glacier Vault.
    ignoreDeletionError Boolean
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VaultLock 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 VaultLock Resource

    Get an existing VaultLock 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?: VaultLockState, opts?: CustomResourceOptions): VaultLock
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            complete_lock: Optional[bool] = None,
            ignore_deletion_error: Optional[bool] = None,
            policy: Optional[str] = None,
            vault_name: Optional[str] = None) -> VaultLock
    func GetVaultLock(ctx *Context, name string, id IDInput, state *VaultLockState, opts ...ResourceOption) (*VaultLock, error)
    public static VaultLock Get(string name, Input<string> id, VaultLockState? state, CustomResourceOptions? opts = null)
    public static VaultLock get(String name, Output<String> id, VaultLockState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CompleteLock bool
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    IgnoreDeletionError bool
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    Policy string
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    VaultName string
    The name of the Glacier Vault.
    CompleteLock bool
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    IgnoreDeletionError bool
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    Policy string
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    VaultName string
    The name of the Glacier Vault.
    completeLock Boolean
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    ignoreDeletionError Boolean
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    policy String
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vaultName String
    The name of the Glacier Vault.
    completeLock boolean
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    ignoreDeletionError boolean
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    policy string
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vaultName string
    The name of the Glacier Vault.
    complete_lock bool
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    ignore_deletion_error bool
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    policy str
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vault_name str
    The name of the Glacier Vault.
    completeLock Boolean
    Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to false, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from false to true will show as resource recreation, which is expected. Changing this from true to false is not possible unless the Glacier Vault is recreated at the same time.
    ignoreDeletionError Boolean
    Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with complete_lock being set to true.
    policy String
    JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
    vaultName String
    The name of the Glacier Vault.

    Import

    Using pulumi import, import Glacier Vault Locks using the Glacier Vault name. For example:

    $ pulumi import aws:glacier/vaultLock:VaultLock example example-vault
    

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi