Skip to content

Commit

Permalink
Fix some secret tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjjung committed Dec 18, 2024
1 parent 51a846d commit 7fd915d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tb_pulumi/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 7fd915d

Please sign in to comment.