gpt4 book ai didi

amazon-web-services - 请参阅 Elastic Beanstalk 从我的应用程序创建的资源?

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

因此,我正在开发一个使用 SQS 的 Elastic Beanstalk 应用程序。我正在使用 .ebextensions 在部署过程中为我创建队列。

我可以很好地创建队列。但是如何让 Elastic Beanstalk/CloudFormation 告诉我的应用程序有关它们的信息?

仅供引用,我目前是 trying to pass the URLs through environment variables但 CloudFormation 对此感到窒息。

最佳答案

简单的解决方案是使用 something like this :

option_settings:
aws:elasticbeanstalk:customoption:
NewSignupEmail: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="92fff7d2f7eaf3ffe2fef7bcf1fdff" rel="noreferrer noopener nofollow">[email protected]</a>
aws:elasticbeanstalk:application:environment:
THEME: "flatly"
AWS_REGION: '`{"Ref" : "AWS::Region"}`'
STARTUP_SIGNUP_TABLE: '`{"Ref" : "StartupSignupsTable"}`'
NEW_SIGNUP_TOPIC: '`{"Ref" : "NewSignupTopic"}`'

关于amazon-web-services - 请参阅 Elastic Beanstalk 从我的应用程序创建的资源?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39168266/

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