Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloudformation/do_cloudformation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ case "$DW_VERB" in
--stack-name "$STACK_NAME" \
--template-body "$TEMPLATE_URI" \
--on-failure DO_NOTHING \
--capabilities CAPABILITY_NAMED_IAM \
--capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND \
--parameters $STACK_PARAMETERS \
--tags \
"Key=user:project,Value=data-warehouse" \
Expand Down
8 changes: 2 additions & 6 deletions cloudformation/dw_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ Parameters:
- Delete
- Retain
Default: Delete
AdditionalSecurityGroupParam:
Description: Add security group
Type: String
Environment:
Description: specify env dev or prod
Type: String
Expand Down Expand Up @@ -169,7 +166,7 @@ Resources:
- ParameterName: "search_path"
ParameterValue: "$user, public"
- ParameterName: "statement_timeout"
ParameterValue: 0
ParameterValue: 7200000
- ParameterName: "wlm_json_configuration"
ParameterValue: !Sub "[{ \"query_concurrency\": ${QueryConcurrency} }]"
Tags:
Expand Down Expand Up @@ -225,8 +222,7 @@ Resources:
PreferredMaintenanceWindow:
!Ref PreferredMaintenanceWindow
VpcSecurityGroupIds:
- Fn::ImportValue: !Sub "${VpcStackName}::redshift-public-sg"
- !Ref AdditionalSecurityGroupParam
- sg-eff0db9c
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a public repo. I wouldn't hard-code security groups.

SnapshotIdentifier:
!If [ "HasSnapshotIdentifier", !Ref "SnapshotIdentifier", !Ref "AWS::NoValue" ]
Tags:
Expand Down