- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我试图在我的参数上使用正则表达式强制执行允许的模式,但是当我尝试构建我的堆栈时,我收到以下错误消息:
Template validation error: Template error: Parameter 'myParam' AllowedPattern must be on a parameter of type String
这是我的参数定义:
"myParam": {
"Description": "this is my param",
"Type": "CommaDelimitedList",
"AllowedPattern": "\\+[0-9\\-\\ ]+",
"MinLength": "1"
}
最佳答案
我相信你不能在 CommaDelimitedList 上执行正则表达式。正则表达式只能应用于字符串。
CommaDelimitedList – 用逗号分隔的文字字符串数组
关于amazon-web-services - 在 Cloudformation 脚本中对 CommaDelimitedList 类型的参数强制执行 AllowedPattern,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32339584/
为ACM编写CFN,但不知道两者之间的区别 CommaDelimitedList和List 根据 aws 文档 https://docs.amazonaws.cn/en_us/AWSCloudForm
在我的 AWS CloudFormation 模板中,我想通过 CommaDelimitedList 参数来条件化嵌套堆栈创建。 我会这样做: { "AWSTemplateFormatVersio
我有以下 Cloudformation 模板: AWSTemplateFormatVersion: '2010-09-09' Parameters: serviceRoleArn: Typ
我正在尝试创建一个 IAM Policy用于限制对选定 S3 存储桶的访问。有一些默认的 S3 存储桶 ARN,必须始终存在,模板运算符(operator)可以添加额外的存储桶 ARN 列表来授予通过
请注意,此问题与 Enforce AllowedPattern for parameter of type CommaDelimitedList in Cloudformation script 不同
我有一个 CommaDelimitedList,需要将其作为 JSONArray 放入策略 JSON 属性中: Parameters: ApiAllowedIps: Type:
我正在尝试创建一个 Cloudwatch 事件规则,它将使用多个 Codepipelines 作为源和触发器目标。 Parameters: SourcePipeline: Descript
我尝试传入 CommaDelimitedList 以填充 AWS::ElasticLoadBalancingV2::ListenerCertificate 资源中的证书列表。 错误:属性证书的值必须是
我正在编写 CF 模板来创建 Elasticache 复制组。其中,我有一个名为 CommaDelimitedList 类型的 Snapshots 参数,用于将存储在 s3 中的 RDB 快照文件作为
我目前很难正确地表达此陈述。我一直在尝试许多变体,并且很困惑为什么在部署时,由于此语句而出现错误(如果我没有此行,则部署成功) 假设我有一个名为 Fruits 的 CommaDelimitedList
我正在尝试创建一个具有默认值的 cloudformation 模板,并且我正在运行一些 !Sub 函数来将导入的参数替换到模板中。但是,我将一个列表传递给 Nodejs Lambda 函数,在发送它之
我有一个输入参数,它是角色名称列表: Parameters: UserRoles: Type: CommaDelimitedList Default: "" 现在我想在策略文档主体
我试图在我的参数上使用正则表达式强制执行允许的模式,但是当我尝试构建我的堆栈时,我收到以下错误消息: Template validation error: Template error: Parame
我试图在我的参数上使用正则表达式强制执行允许的模式,但是当我尝试构建我的堆栈时,我收到以下错误消息: Template validation error: Template error: Parame
我有一个 cloudformation 模板,它生成一个带有策略文档的 kms key ,以授予角色对该 key 的访问权限。现在我希望角色成为 Cloudformation 模板的 CommaDel
我发现 CommaDelimitedList 参数值出现无效类型错误。 CF 运行时控制台没有出现任何错误。 AWS CLI 命令: aws cloudformation create-stack -
我一直在尝试构建一个存储桶策略,以允许对 CloudFormation 中的集中帐户执行操作到共享相同模式的一系列其他帐户中的 IAM 角色 - 即: arn:aws:iam::11111111111
我正在尝试创建一个 cfn 堆栈。模板采用一个/两个值作为参数部分的输入。如果我从参数中传递两个值,则在资源部分中读取相同的值,则其工作正常。但如果我通过了一个,它就会崩溃。 用例:- 我想从参数传递
我正在尝试创建一个 WebACL,在其中我可以提供外部提供程序列表作为 CommaDelimitedList,并循环这些值以基于每个提供程序创建具有多个 IPSetReferenceStatement
如何将 CommaDelimitedList 参数转换为字符串,以便将其作为环境变量传递给 Lamda 函数? 下面是示例 CommaDelimitedList 参数,其中包含 AWS 区域列表,我需
我是一名优秀的程序员,十分优秀!