[英]Create JSON value in SSM Parameter Store in Cloudformation
I need to create SSM parameter store in Cloudformation to store JSON我需要在 Cloudformation 中创建 SSM 参数存储来存储 JSON
Here is my Template这是我的模板
Resources:
WebServersSSM:
Type: AWS::SSM::Parameter
Properties:
AllowedPattern: String
DataType: text
Description: WebServers CloudWatch Agent Configuration
Name: WebServersSSM
Type: String
Tier: Standard
Value: |
{
... My JSON File
}
I am facing error我面临错误
Parameter value, cannot be validated against allowedPattern: String (Service: AmazonSSM; Status Code: 400; Error Code: ParameterPatternMismatchException; Request ID: a7c2f063-9e63-4b4c-981b-c9ad05e56166; Proxy: null)
The AllowedPattern is a regular expression to validate the pattern and not the expected type. AllowedPattern是用于验证模式而非预期类型的正则表达式。 Remove it and it should work.
删除它,它应该可以工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.