Skip to content

Commit 0103b52

Browse files
committed
Fix 039-redshift (ra3.xlplus, remove logging), 047-firewall (replace-route), 059-datazone (--managed flag)
039: dc2.large not available, removed non-existent log bucket 047: default routes already exist in VPC, use replace-route 059: list-environment-blueprints needs --managed flag. Still needs DataZone IAM permissions (prereq).
1 parent af71a94 commit 0103b52

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

tuts/039-redshift-provisioned/redshift-provisioned.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,13 @@ echo "=== Step 1: Creating Amazon Redshift Cluster ==="
156156
echo "Creating Redshift cluster: $CLUSTER_ID"
157157
CLUSTER_RESULT=$(aws redshift create-cluster \
158158
--cluster-identifier "$CLUSTER_ID" \
159-
--node-type ra3.4xlarge \
159+
--node-type ra3.xlplus \
160160
--number-of-nodes 2 \
161161
--master-username "$DB_USER" \
162162
--master-user-password "$DB_PASSWORD" \
163163
--db-name "$DB_NAME" \
164164
--port 5439 \
165165
--encrypted \
166-
--enable-logging \
167-
--log-bucket-name "redshift-logs-$(date +%s)" \
168166
2>&1) || handle_error "Failed to create Redshift cluster"
169167

170168
echo "$CLUSTER_RESULT"

tuts/047-aws-network-firewall-gs/aws-network-firewall-gs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ fi
695695

696696
# Update the internet gateway route table
697697
echo "Updating internet gateway route table..."
698-
if ! aws ec2 create-route \
698+
if ! aws ec2 replace-route \
699699
--route-table-id "$IGW_ROUTE_TABLE_ID" \
700700
--destination-cidr-block "$CUSTOMER_SUBNET_CIDR" \
701701
--vpc-endpoint-id "$FIREWALL_ENDPOINT"; then
@@ -706,7 +706,7 @@ fi
706706

707707
# Update the customer subnet route table
708708
echo "Updating customer subnet route table..."
709-
if ! aws ec2 create-route \
709+
if ! aws ec2 replace-route \
710710
--route-table-id "$SUBNET_ROUTE_TABLE_ID" \
711711
--destination-cidr-block "0.0.0.0/0" \
712712
--vpc-endpoint-id "$FIREWALL_ENDPOINT"; then

tuts/059-amazon-datazone-gs/amazon-datazone-gs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ echo "Step 3: Creating Environment Profile..."
296296
echo "Listing available environment blueprints..."
297297
BLUEPRINTS_RESULT=$(aws datazone list-environment-blueprints \
298298
--domain-identifier "$DOMAIN_ID" \
299+
--managed \
299300
--region "$REGION")
300301

301302
check_error "$BLUEPRINTS_RESULT" "list-environment-blueprints"

0 commit comments

Comments
 (0)