From 7fd915d057946b4e0dd098e49ed9f7e5b374361d Mon Sep 17 00:00:00 2001 From: Ryan Jung Date: Wed, 18 Dec 2024 13:40:41 -0700 Subject: [PATCH] Fix some secret tags --- tb_pulumi/secrets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tb_pulumi/secrets.py b/tb_pulumi/secrets.py index 9084175..b365985 100644 --- a/tb_pulumi/secrets.py +++ b/tb_pulumi/secrets.py @@ -62,7 +62,7 @@ def __init__( ) secret = aws.secretsmanager.Secret( - f'{name}-secret', opts=pulumi.ResourceOptions(parent=self), name=secret_name, **kwargs + f'{name}-secret', opts=pulumi.ResourceOptions(parent=self), name=secret_name, tags=tags, **kwargs ) version = aws.secretsmanager.SecretVersion( @@ -105,9 +105,10 @@ def __init__( project: tb_pulumi.ThunderbirdPulumiProject, secret_names: list[str] = [], opts: pulumi.ResourceOptions = None, + tags: dict = {}, **kwargs, ): - super().__init__('tb:secrets:PulumiSecretsManager', name, project, opts=opts) + super().__init__('tb:secrets:PulumiSecretsManager', name, project, opts=opts, tags=tags) secrets = [] # First build the secrets @@ -124,6 +125,7 @@ def __init__( secret_value=secret_string, exclude_from_project=True, opts=pulumi.ResourceOptions(parent=self), + tags=self.tags, **kwargs, ) secrets.append(secret)