I want to configure a RedShift Spectrum resource with a Cloud Formation template. What are the CF template parameters to do so?
For example, a normal RedShift can be templated like,
myCluster:
Type: "AWS::Redshift::Cluster"
Properties:
DBName: "mydb"
MasterUsername: "master"
MasterUserPassword:
Ref: "MasterUserPassword"
NodeType: "dw.hs1.xlarge"
ClusterType: "single-node"
Tags:
- Key: foo
Value: bar
What is the Spectrum equivalent?
Your template looks ok, but there is one more thing to consider which is the IAM role (
IAMRoles
array) that is needed the CF documentation lists this as an additional parameter.The IAM role is needed to talk to the Glue / Athena catalog and authenticate your requests against your data in S3.