2017-09-01 94 views
1

我想使用Cloud Formation模板配置RedShift Spectrum資源。什麼是CF模板參數這樣做?將Cloudshift與Cloud Formation結合使用

例如,一個正常的紅移可以templated等,

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 

什麼是頻譜等效?

+0

你能否提供你想要「設置」的更多細節? AWS CloudFormation可以啓動數據庫,但不會在數據庫中運行查詢*。它也不能定義表格(對於Spectrum或其他)。 –

+0

@JohnRotenstein請參閱編輯。我只想要Spectrum的CF模板參數。 –

+0

要做什麼?創建一個外部模式? –

回答

2

您的模板看起來不錯,但有一個更多的考慮其是需要的CF文件列出了此作爲附加參數的IAM角色(IAMRoles陣列)的東西。

myCluster: 
    Type: "AWS::Redshift::Cluster" 
    Properties: 
    DBName: "mydb" 
    MasterUsername: "master" 
    MasterUserPassword: 
     Ref: "MasterUserPassword" 
    NodeType: "dw.hs1.xlarge" 
    ClusterType: "single-node" 
    IamRoles: 
     - "arn:aws:iam::123456789012:role/S3Access" 
    Tags: 
     - Key: foo 
     Value: bar 

需要的IAM角色交談的膠水/雅典娜目錄,並針對S3數據驗證您的請求。

0

Amazon Redshift Spectrum是Amazon Redshift的功能

只需啓動普通的Amazon Redshift羣集,即可使用Amazon Redshift Spectrum的功能。

Getting Started with Amazon Redshift Spectrum

要使用紅移光譜,你需要一個Amazon紅移集羣和連接到您的集羣,這樣就可以執行SQL命令SQL客戶端。

相關問題