有谁知道在 Serverless v1.0 中将 cloudformation 转换为 yaml 的权威指南?
我可以做很多事情,但我完全坚持如何设置 Firehose 并允许 lambda 写入它。
我认为资源部分看起来像这样:
resources:
Resources:
FirehoseBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: my-firehose-bucket
FirehoseDeliveryStream:
Type: AWS::KinesisFirehose::DeliveryStream
Properties:
DeliveryStreamName: "FirehoseDeliveryStream"
S3DestinationConfiguration:
BucketARN:
Fn::Join:
- ''
- - 'arn:aws:s3:::'
- Ref: FirehoseBucket
BufferingHints:
IntervalInSeconds: 60
SizeInMBs: 5
CompressionFormat: GZIP
Prefix: ${prefix}
RoleARN: "arn:aws:iam::${account-number}:role/${project}-${env}-IamRoleLambda"
但我不知道如何为 IAM 部分转换 Cloudformation,如下所述:http: //docs.aws.amazon.com/firehose/latest/dev/controlling-access.html。
非常感谢任何关于 CF->Yaml 转换的指针、示例或指南!