Why is this even a problem? I set up an aws SES (Simple email service) that will encrypt my messages. So in my template I create the ReceiptRule.
ReceiptRule:
Type: "AWS::SES::ReceiptRule"
DependsOn: [ TestEmailBucket ]
Properties:
RuleSetName:
Ref: RuleSetName
Rule:
Name: "TestName
Enabled: true
Actions:
- S3Action:
BucketName:
Ref: InboundEmailBucket
KmsKeyArn: "arn:aws:kms:eu-west-1:XXXXXX:key/XXXXXXX"
Recipients:
- Fn::Sub: default-recipient-to-avoid-catch-all${DomainName}
The code above works fine! But of course I don't want to hardcode my KmsKeyArn. So why is it not possible to just set a ref like this:
Parameters:
KmsMasterKeyArn:
Type: String
Default: "arn:aws:kms:eu-west-1:XXXXX:key/XXXXXXX"
---------
Actions:
- S3Action:
BucketName:
Ref: InboundEmailBucket
KmsKeyArn:
Ref: KmsMasterKeyArn
This is not working for me... I have many other places where the ref to KmsMasterKeyArn
is working. It's just here, in the S3Action it's not working. Anyone with a solution?