https://pulumi.com logo
#aws
Title
# aws
q

quiet-painter-30539

02/18/2020, 10:48 AM
How to set property "rotation_enabled" for Secrets Manager entity in Pulumi AWS Python SDK? https://github.com/pulumi/pulumi-aws/blob/master/sdk/python/pulumi_aws/secretsmanager/secret.py When trying to create this property I get error:
Copy code
__init__() got an unexpected keyword argument 'rotation_enabled'
g

gentle-diamond-70147

02/18/2020, 4:26 PM
Can you share the full code of your Secret resource?
q

quiet-painter-30539

02/18/2020, 5:33 PM
Copy code
def createSecret(name, description, pulumi_secret, tags):
    my_secret = secretsmanager.Secret(
        resource_name = name,
        description = description,
        # TODO: Error: got an unexpected keyword argument 'rotation_enabled'
        # rotation_enabled = True,
        # rotation_rules = [ { "automaticallyAfterDays": 10} ],
        tags = tags
    )
...
    return my_secret, my_secret_version