我正在创建一个模板来预安装特定的包。模板可以启动实例和安全组,但没有安装任何内容。运行时
/opt/aws/bin/cfn-init -s SIM --access-key=XXX --secret-key=XXX --region us-west-2 -r WebServer
我得到: 构建期间发生错误:Yum没有可用于安装的gcc
"Resources": {
"WebServer": {
"Metadata" : {
"AWS::CloudFormation::Init" : {
"config" : {
"packages" : {
"yum" : {
"gcc " : [],
"make" : [],
"gcc-c++" : [],
"nginx" : [],
"zlib" : [],
"zlib-devel" : [],
"rubygems" : [],
"git-core" : [],
"selinux-policy-targeted" : [],
"selinux-policy-devel" : [],
"libmemcached" : [],
"libmemcached-devel" : []
}
我该如何解决这个问题?