使用 Cloudformation 脚本创建 GlueSecurityConfiguration 时出错
Error when creating GlueSecurityConfiguration using Cloudformation script
我正在尝试使用 cloudformation 脚本创建胶水安全配置,但出现以下错误:
属性 验证失败:[属性 {/EncryptionConfiguration/S3Encryptions} 的值与类型 {Array} 不匹配]
S3加密的正确方法是什么?
AWSTemplateFormatVersion: 2010-09-09
Description: Script creates resources for GlueSecurityConfiguration
Resources:
GlueSecurityConfiguration:
Type: AWS::Glue::SecurityConfiguration
Properties:
EncryptionConfiguration:
S3Encryptions:
KmsKeyArn: !Ref KMSArn
S3EncryptionMode: SSE-KMS
JobBookmarksEncryption:
KmsKeyArn: !Ref KMSArn
CloudWatchEncryption:
KmsKeyArn: !Ref KMSArn
Name: !Sub '${SystemValue}-${SubSystemValue}'
我觉得应该是
- KmsKeyArn: !Ref KMSArn
S3EncryptionMode: SSE-KMS
因为 S3Encryptions 需要一个数组。
我正在尝试使用 cloudformation 脚本创建胶水安全配置,但出现以下错误: 属性 验证失败:[属性 {/EncryptionConfiguration/S3Encryptions} 的值与类型 {Array} 不匹配]
S3加密的正确方法是什么?
AWSTemplateFormatVersion: 2010-09-09
Description: Script creates resources for GlueSecurityConfiguration
Resources:
GlueSecurityConfiguration:
Type: AWS::Glue::SecurityConfiguration
Properties:
EncryptionConfiguration:
S3Encryptions:
KmsKeyArn: !Ref KMSArn
S3EncryptionMode: SSE-KMS
JobBookmarksEncryption:
KmsKeyArn: !Ref KMSArn
CloudWatchEncryption:
KmsKeyArn: !Ref KMSArn
Name: !Sub '${SystemValue}-${SubSystemValue}'
我觉得应该是
- KmsKeyArn: !Ref KMSArn
S3EncryptionMode: SSE-KMS
因为 S3Encryptions 需要一个数组。