【问题标题】:Error when creating GlueSecurityConfiguration using Cloudformation script使用 Cloudformation 脚本创建 GlueSecurityConfiguration 时出错
【发布时间】:2021-03-14 13:38:56
【问题描述】:

我正在尝试使用 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}'

【问题讨论】:

    标签: amazon-web-services amazon-s3 yaml amazon-cloudformation aws-glue


    【解决方案1】:

    我觉得应该是的

    - KmsKeyArn: !Ref KMSArn
      S3EncryptionMode: SSE-KMS
    

    因为 S3Encryptions 需要一个数组。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-20
      • 2017-07-15
      • 1970-01-01
      • 2017-07-23
      • 1970-01-01
      • 2023-02-25
      • 1970-01-01
      • 2017-06-11
      相关资源
      最近更新 更多