Skip to content

Commit e8770ad

Browse files
committed
Fix IAM permissions to query Redshift dev database via Data API.
1 parent cd08110 commit e8770ad

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

aws/cloudformation/cloud_formation_stack.yml.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,12 +535,18 @@ Resources:
535535
- !Sub
536536
- "arn:aws:redshift:${AWS::Region}:${AWS::AccountId}:dbuser:${ClusterNamespace}/etl_client"
537537
- ClusterNamespace: !ImportValue "DATA-production-RedshiftClusterIdentifier"
538+
# Legacy Database Migration Service exports Learning Platform tables to the `dashboard` database.
538539
- !Sub
539540
- "arn:aws:redshift:${AWS::Region}:${AWS::AccountId}:dbname:${ClusterNamespace}/dashboard"
540541
- ClusterNamespace: !ImportValue "DATA-production-RedshiftClusterIdentifier"
542+
# Zero ETL exports Learning Platform tables to the `[environment type]_learningplatform_mysql_zeroetl` database.
541543
- !Sub
542544
- "arn:aws:redshift:${AWS::Region}:${AWS::AccountId}:dbname:${ClusterNamespace}/<%=rack_env%>_learningplatform_mysql_zeroetl"
543545
- ClusterNamespace: !ImportValue "DATA-production-RedshiftClusterIdentifier"
546+
# We provision Materialized Views on Zero ETL tables in the `dev` database.
547+
- !Sub
548+
- "arn:aws:redshift:${AWS::Region}:${AWS::AccountId}:dbname:${ClusterNamespace}/dev"
549+
- ClusterNamespace: !ImportValue "DATA-production-RedshiftClusterIdentifier"
544550
<% end -%>
545551
<% if rack_env?(:production) -%>
546552
- PolicyName: StopInactiveAdhocInstances

0 commit comments

Comments
 (0)