Skip to content

Commit

Permalink
Update secrets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhau committed Oct 2, 2024
1 parent 5539b10 commit 08f0a0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SecretsManager/cdk/secrets/lib/secrets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

from aws_cdk import CfnOutput, SecretValue, Stack
from aws_cdk import aws_iam as iam
from aws_cdk import aws_secretsmanager as sm
Expand Down Expand Up @@ -87,9 +85,9 @@ def create_secret_with_object(
return sm.Secret(
self,
id=sm_secret_name.replace("/", "-").lower(),
description=f"Secrets for app {app_name}",
description=description,
encryption_key=key_alias,
secret_name=secret_name,
secret_name=sm_secret_name,
secret_object_value={
secret["Name"]: SecretValue.unsafe_plain_text(secret["Value"]) for secret in secrets
},
Expand Down

0 comments on commit 08f0a0f

Please sign in to comment.