我说错了
3/19/2018,4:40:25 PM -模板包含错误。:模板错误:参数'LifecycleConfiguration‘MaxLength必须位于字符串类型的参数上。
这是我的密码。
AWSTemplateFormatVersion: 2010-09-09
Description: S3 Bucket Template for cloudformation
Metadata:
Copyright:
- 'Copyrights 2018, All rights reserved'
Comments:
- !Ref Description
Parameters:
S3BucketName:
Description: Name of the S3 Bucket
Type: String
ConstraintDescription: S3 BucketName must be between 3 and 63 characters in length.
MinLength: 3
MaxLength: 63
LifecycleConfiguration:
Description: >-
Specify a number of days to keep files in the bucket, a value of 0 keeps
the files in the s3
Type: Number
MinValue: '0'
MaxLength: '365'
Resources:
S3Bucket:
Type: 'AWS::S3::Bucket'
Properties:
BucketName: !Ref S3BucketName
LifecycleConfiguration:
Rules:
- Id: GlacierRule
Prefix: glacier
Status: Enabled
ExpirationInDays: '365'
Transitions:
- TransitionInDays: '1'
StorageClass: Glacier发布于 2018-03-19 21:39:27
LifecycleConfiguration:
Description: >-
Specify a number of days to keep files in the bucket, a value of 0 keeps
the files in the s3
Type: Number
MinValue: '0'
MaxLength: '365'使用MaxValue: 365而不是MaxLength: 365
https://stackoverflow.com/questions/49372094
复制相似问题