2017-09-01 68 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客户端。

相关问题