gpt4 book ai didi

amazon-web-services - 如何将 AWS CloudFormation 模板与简单系统管理和 ElasticBeanstalk 结合使用

转载 作者:行者123 更新时间:2023-12-03 07:25:21 24 4
gpt4 key购买 nike

我尝试将 AWS CloudFormation 模板与 SSM 和 ElasticBeanstalk 一起使用,但出现以下错误:

Service:AmazonCloudFormation, Message:Stack named 'awseb-e-dg6tmg2rmj-stack' aborted operation. Current state: 'UPDATE_ROLLBACK_IN_PROGRESS' Reason: The following resource(s) failed to create: [ssmParameter].

我基本上需要从 SSM 检索值并用作 Amazon Linux 上的环境变量。

我已经研究并阅读了AWS CloudFormation官方 Material 上的所有相关 Material ,但对于这些模板的使用还不清楚。

这是我的模板代码:

Resources:
ssmParameter:
Type: "AWS::SSM::Parameter"
Properties:
Name: "MySSMParameter"

option_settings:
'aws:elasticbeanstalk:application:environment':
MY_ENV_VAR: {"Fn::GetAtt": "ssmParameter"}

此解决方案已按照 AWS blog post titled 'Integrating AWS CloudFormation with AWS Systems Manager Parameter Store' 中的说明进行了测试。

尽管如此,现在显示另一个错误:

InvalidParameterValue: Unknown Parameter Type: AWS::SSM::Parameter::Value

提前致谢

最佳答案

错误信息为:Unknown Parameter Type

正确的形式是AWS::SSM::Parameter::Value<TYPE>哪里TYPE是参数的类型:D

例如,要提取字符串:AWS::SSM::Parameter::Value<String>

关于amazon-web-services - 如何将 AWS CloudFormation 模板与简单系统管理和 ElasticBeanstalk 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51540795/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com