Dip*_*shi 13 parameters amazon-web-services aws-cloudformation
我在用
aws cloudformation validate-template --template-body file://template.json
Run Code Online (Sandbox Code Playgroud)
然后面对“CloudFormation Parameter Template Error : Parameter is non alphanumeric”错误,以下代码显示了我的params.json
和template.json
文件。
参数文件
[
{
"ParameterKey": "name_for_abc",
"ParameterValue": "abc"
}
]
Run Code Online (Sandbox Code Playgroud)
模板文件
{
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Description": "some text",
"Parameters": {
"name": {
"Description": "name_of_abc",
"Type": "String"
}
},
"Resources": {
"LambdaFunctionAuto": {
"Type": "AWS::Serverless::Function",
"Properties": {
"Environment": {
"Variables": {
"name_of_abc": {
"Ref": "name_of_abc"
}
}
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
11748 次 |
最近记录: |