Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Imtiah01 committed Jan 17, 2025
1 parent 9ec1fd9 commit 438620f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cdp_cdk_python/redshift_role_policy_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
aws_s3 as s3,
aws_iam as iam,
aws_lambda as _lambda,
aws_redshiftserverless as redshiftserverless
# aws_redshiftserverless as redshiftserverless
aws_redshift as redshift
)
import aws_cdk as core
from constructs import Construct
Expand Down Expand Up @@ -80,7 +81,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
)

# Create Redshift Serverless Namespace
namespace = redshiftserverless.CfnNamespace(
namespace = redshift.CfnNamespace(
self, "RedshiftNamespace",
namespace_name="my-redshift-namespace",
admin_username="admin",
Expand All @@ -89,7 +90,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
)

# Create Redshift Serverless Workgroup
workgroup = redshiftserverless.CfnWorkgroup(
workgroup = redshift.CfnWorkgroup(
self, "RedshiftWorkgroup",
workgroup_name="my-redshift-workgroup",
namespace_name=namespace.namespace_name,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
attrs
aws-cdk-lib==2.176.0
aws-cdk-lib==2.23.0
# aws-cdk.cloud-assembly-schema==2.23.0
boto3==1.23.10
botocore==1.26.10
Expand Down

0 comments on commit 438620f

Please sign in to comment.