Try AWS Native preview for resources not in the classic version.
aws.glacier.VaultLock
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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 tofalse
. 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 thecomplete_lock
argument totrue
. When changingcomplete_lock
totrue
, 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
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleVault = new Aws.Glacier.Vault("exampleVault");
var examplePolicyDocument = 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("exampleVaultLock", new()
{
CompleteLock = false,
Policy = examplePolicyDocument.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
VaultName = exampleVault.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, "exampleVault", nil)
if err != nil {
return err
}
examplePolicyDocument := 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, "exampleVaultLock", &glacier.VaultLockArgs{
CompleteLock: pulumi.Bool(false),
Policy: examplePolicyDocument.ApplyT(func(examplePolicyDocument iam.GetPolicyDocumentResult) (*string, error) {
return &examplePolicyDocument.Json, nil
}).(pulumi.StringPtrOutput),
VaultName: exampleVault.Name,
})
if err != nil {
return err
}
return nil
})
}
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.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");
final var examplePolicyDocument = 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(examplePolicyDocument.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult).applyValue(examplePolicyDocument -> examplePolicyDocument.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json())))
.vaultName(exampleVault.name())
.build());
}
}
import pulumi
import pulumi_aws as aws
example_vault = aws.glacier.Vault("exampleVault")
example_policy_document = 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("exampleVaultLock",
complete_lock=False,
policy=example_policy_document.json,
vault_name=example_vault.name)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleVault = new aws.glacier.Vault("exampleVault", {});
const examplePolicyDocument = 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("exampleVaultLock", {
completeLock: false,
policy: examplePolicyDocument.apply(examplePolicyDocument => examplePolicyDocument.json),
vaultName: exampleVault.name,
});
resources:
exampleVault:
type: aws:glacier:Vault
exampleVaultLock:
type: aws:glacier:VaultLock
properties:
completeLock: false
policy: ${examplePolicyDocument.json}
vaultName: ${exampleVault.name}
variables:
examplePolicyDocument:
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
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 = data.Aws_iam_policy_document.Example.Json,
VaultName = aws_glacier_vault.Example.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(data.Aws_iam_policy_document.Example.Json),
VaultName: pulumi.Any(aws_glacier_vault.Example.Name),
})
if err != nil {
return err
}
return nil
})
}
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(data.aws_iam_policy_document().example().json())
.vaultName(aws_glacier_vault.example().name())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.glacier.VaultLock("example",
complete_lock=True,
policy=data["aws_iam_policy_document"]["example"]["json"],
vault_name=aws_glacier_vault["example"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glacier.VaultLock("example", {
completeLock: true,
policy: data.aws_iam_policy_document.example.json,
vaultName: aws_glacier_vault.example.name,
});
resources:
example:
type: aws:glacier:VaultLock
properties:
completeLock: true
policy: ${data.aws_iam_policy_document.example.json}
vaultName: ${aws_glacier_vault.example.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:
- 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
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.
- Vault
Name string The name of the Glacier Vault.
- Ignore
Deletion boolError 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 totrue
.
- 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
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.
- Vault
Name string The name of the Glacier Vault.
- Ignore
Deletion boolError 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 totrue
.
- complete
Lock 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
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.
- vault
Name String The name of the Glacier Vault.
- ignore
Deletion BooleanError 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 totrue
.
- complete
Lock 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
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.
- vault
Name string The name of the Glacier Vault.
- ignore
Deletion booleanError 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 totrue
.
- 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
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_ boolerror 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 totrue
.
- complete
Lock 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
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.
- vault
Name String The name of the Glacier Vault.
- ignore
Deletion BooleanError 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 totrue
.
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.
- 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
is not possible unless the Glacier Vault is recreated at the same time.- Ignore
Deletion boolError 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 totrue
.- Policy string
JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
- Vault
Name 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
is not possible unless the Glacier Vault is recreated at the same time.- Ignore
Deletion boolError 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 totrue
.- Policy string
JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
- Vault
Name string The name of the Glacier Vault.
- complete
Lock 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
is not possible unless the Glacier Vault is recreated at the same time.- ignore
Deletion BooleanError 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 totrue
.- policy String
JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
- vault
Name String The name of the Glacier Vault.
- complete
Lock 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
is not possible unless the Glacier Vault is recreated at the same time.- ignore
Deletion booleanError 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 totrue
.- policy string
JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
- vault
Name 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
is not possible unless the Glacier Vault is recreated at the same time.- ignore_
deletion_ boolerror 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 totrue
.- 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.
- complete
Lock 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 fromfalse
totrue
will show as resource recreation, which is expected. Changing this fromtrue
tofalse
is not possible unless the Glacier Vault is recreated at the same time.- ignore
Deletion BooleanError 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 totrue
.- policy String
JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.
- vault
Name 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.
Try AWS Native preview for resources not in the classic version.