Skip to content

Commit

Permalink
Add dynamodb removal policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin, Jungseob committed Oct 2, 2024
1 parent b49a8fd commit af923ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cdk/examples/other_stack/bedrock_agent_stack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aws_cdk import Duration, Stack
from aws_cdk import Duration, Stack, RemovalPolicy
from aws_cdk.aws_iam import (
ManagedPolicy,
Role,
Expand Down Expand Up @@ -36,6 +36,7 @@ def __init__(
partition_key=dynamodb.Attribute(name="sessionCode",
type=dynamodb.AttributeType.STRING),
billing_mode=dynamodb.BillingMode.PAY_PER_REQUEST,
removal_policy=RemovalPolicy.DESTROY,
)

# create S3 bucket
Expand Down

0 comments on commit af923ef

Please sign in to comment.