-
0 votesanswersviews
使用 Cloud 编队在AWS EC2实例中创建文件的最佳实践
有很多选择可以做到这一点,我不知道哪个是最好的 . 我在开始时尝试做的如下: ServiceInstance: Type: "AWS::EC2::Instance" Properties: ImageId: !Ref AmiId, !Ref LatestOnescoutAmi ] InstanceType: !Ref InstanceType SubnetId: !... -
0 votesanswersviews
如何在不使用lambda的情况下创建Cloudformation堆栈时发送SNS电子邮件通知?
我正在开发 Cloud 形成堆栈,我想从SNS主题发送所有 Cloud 形成事件的电子邮件通知 . 我在网上看到很多引用使用lambda函数,它将 Cloud 形成事件转发给SNS主题 . But I don't want to use a lambda function. 是否有解决办法只在 Cloud 层内完成? 我想要实现的是使用在 Cloud 形成堆栈中创建的SNS主题发送电子邮件通知... -
12 votesanswersviews
如何使用lambda代理集成对API网关资源进行 Cloud 格式化
我一直在努力研究如何使用Lambda代理集成来表达(在cloudformation中)具有Lambda函数集成类型的API网关资源 . 这在AWS控制台中很容易实现,因为您可以选择一个复选框: 但是,AWS :: ApiGateway :: Method CloudFormation资源中没有相应的字段(它应该在Integration property中) . 如何在cloudformation中... -
2 votesanswersviews
将来自CloudFormation的ARN引用传递给Swagger
我们正在尝试使用Amazon CloudFormation和Swagger自动部署AWS lambda和API网关 . 为此,我们创建了一个CloudFormation模板来创建APIGateway所需的Lambda和其他资源(包括 endpoints ) . 我们想从外部swagger文件导入API定义,以便相同的CloudFormation模板可用于多个lambda和APIGateways .... -
2 votesanswersviews
使用CloudFormation为APIGateway设置Stage环境(缓存)
我使用 CloudFormation 设置了 APIGateway ,它将一个方法暴露为 /customers/{customerId} . 该方法调用 dynamodb service而不是使用任何lambda,如果缺少映射,则返回带有空对象的 HTTP 200 或带有 HTTP 200 的 customer 对象 . 现在,我想为我的 prod 阶段设置缓存 . 我有一个现有的api,我使... -
0 votesanswersviews
使用CloudFormation和API Gateway代理进行设置时,Lambda权限错误
我正在尝试编写一个可以创建lambda函数的cloudformation脚本,并将其连接到API网关代理资源 . 堆栈创建工作,但权限或集成配置有问题,当我测试 endpoints 时,我不断得到 星期一2月12日06:45:28 UTC 2018:转换前的 endpoints 响应体:无法确定要授权的服务/操作名称Mon Feb 12 06:45:28 UTC 2018: endpoints ... -
0 votesanswersviews
IdentityPoolRoleAttachment资源无法更新
我使用以下CloudFormation来创建堆栈 Resources: MyIdentityPool: Type: AWS::Cognito::IdentityPool Properties: AllowUnauthenticatedIdentities: 'true' CognitoRole: Type: 'AWS::IAM:... -
0 votesanswersviews
使用Ansible Tower将 Cloud 形成堆栈部署到AWS
我是Ansible,Ansible Tower和AWS Cloud Formation的新手,我正在尝试让Ansible Tower使用Cloud Formation模板部署EC2 Container Service . 我尝试运行部署作业,并在下面遇到此错误 . TASK [create/update stack] ****************************************... -
1 votesanswersviews
具有2个AWS账户的AWS CodePipeline最佳实践
目前,我的项目使用2个AWS账户 - 一个用于我们的客户可以依赖进行测试而另一个用于 生产环境 /现场 . 我正在尝试为新的 serverless 应用程序设置CodePipeline . 我想知道这个设置是否合适,是否有办法改进它 . Staging AWS account: GitHub源 - > AWS CodeBuild(测试和构建分段环境) - >手动批准门 - >在... -
3 votesanswersviews
Elastic Beanstalk,Immutable Deployments和CloudFormation的问题
我们刚刚开始在Elastic Beanstalk中使用不可变部署 . 更具体地说,我们启用了 不可变应用程序部署和 不可变配置更新 . 我们将CloudFormation用于一切 . 例如,我们不是使用UI(AWS管理控制台)启用不可变部署,而是在配置模板中将 OptionSettings 添加到 ConfigurationTemplate . 但是,我们使用这种方法遇到了一些问题 ... -
1 votesanswersviews
使用Cloudformation将API网关与SNS集成
我'm trying to integrate an API Gateway method to a SNS Topic using Cloudformation, but can'弄清楚 Uri 属性应该如何 . 对于连接到Lambda,它看起来像: "Integration": { "IntegrationHttpMethod": "... -
0 votesanswersviews
在CodePipeline中创建非Lambda代理AWS API网关
使用代码管道创建Lambda函数(POST)和相应的API网关 . 默认情况下,API网关是使用lambda代理类型集成创建的 . SAM中的哪些参数应该为我的API网关创建非Lambda代理类型集成 . 以下是我的SAM模板 . AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10- 31 Desc... -
1 votesanswersviews
AWS API Gateway:如何实现持续交付?
我正在使用AWS API Gateway和AWS Lambda构建API . 我想为此API实现持续交付 . 我选择的路径是通过AWS CodePipeline使用CloudFormation . 我已经设法使用Lambdas(没有API网关)进行另一个项目,它运行良好,使用起来非常愉快 . 我在部署时遇到的问题是Lambdas已正确更新但不是API定义 . 据我所知,AWS :: ApiGate... -
6 votesanswersviews
使用Cloudformation的AWS Api Gateway代理资源?
我正在尝试从API网关 endpoints 代理配置为网站的S3存储桶 . 我使用控制台成功配置了 endpoints ,但我无法使用Cloudformation重新创建配置 . 经过大量的试验和错误猜测,我想出了以下CF堆栈模板,让我非常接近: Resources: Api: Type: 'AWS::ApiGateway::RestApi' Properties: ... -
0 votesanswersviews
添加通过cloudformation在api网关中触发lambda的权限
我正在尝试使用cloudformation创建一个通过代理指向lambda的api网关: 首先,我创建我的root并授予它权限: RestApiHamed: Type: 'AWS::ApiGateway::RestApi' Properties: Name: hamed-proxy-test APIGatewayToLambdaPermission: Type: AWS... -
0 votesanswersviews
在Cloudformation模板中使用AWS API网关的IAM角色
我在使用 Cloud 信息模板在API网关中创建API时尝试使用IAM角色,以便API网关可以调用Lambda函数,该函数被设置为特定GET / POST调用的 endpoints . 我在搜索时遇到了这个问题: - How can I grant permission to API Gateway to invoke lambda functions through CloudFormati... -
1 votesanswersviews
将AWS区域和帐户ID传递给swagger
我正在使用AWS SAM定义我的API网关API ApiGatewayApi: Type: AWS::Serverless::Api Properties: DefinitionUri: swagger.yml StageName: prod Variables: Region: !Ref AWS::Region AccountId: !Re... -
0 votesanswersviews
AWS API Gateway Swagger Codegen的CloudFormation模板?
希望有人遇到类似的情况: 我们有一个现有的CloudFormation模板(在yaml中),用于创建我们的AWS API资源 . Swagger定义嵌入到AWS :: ApiGateway :: RestApi的body字段下的CF模板中 . Swagger定义包含AWS集成特定字段以及CF参数占位符 . 使用Swagger Codegen工具生成后端接口/数据对象的最佳方法是什么? (Java... -
1 votesanswersviews
在CloudFormation模板中为“AWS :: ApiGateway :: Resource”指定ParentId
如何在CloudFormation模板中为“AWS :: ApiGateway :: Resource”指定现有“AWS :: ApiGateway :: RestApi”的ParentId?例如,我已经创建了API Gateway REST API,我想在我的模板中指定它: MyTestResource: Type: 'AWS::ApiGateway::Resource' Pro... -
1 votesanswersviews
如何使用swagger和RestApi为Lambda添加触发器?
我正在尝试使用cloudformation创建Api网关和lambda函数 . 目前我能够使用swagger和lambda函数创建api网关 . 我的问题是lambda函数没有触发器支持api网关 . 如何为这个lambda函数添加触发器? RestApi Definitation MyRestApi: Properties: ApiKeySourceType: HEADER BodyS... -
0 votesanswersviews
AWS- modyfing lambda会立即更新CloudFormation Stack吗?
假设我运行了一个CloudFormation堆栈,它创建并部署了Lambda函数 . 在AWS控制台中,如果我将Lambda函数连接到API网关中的API,如果Lambda函数成功地与API集成,我的CloudFormation模板是否会立即更新? -
0 votesanswersviews
aws api网关导出为yaml swagger内部函数无法正常工作
我在cloudformation模板中定义了一个aws apigateway: PptApi: Type: 'AWS::Serverless::Api' Properties: StageName: !ImportValue StageName DefinitionBody: 'Fn::Transform': Na... -
1 votesanswersviews
没有状态原因的ApiGateway :: Method的Cloudformation堆栈CREATE_FAILED
如果删除RestAPI相关资源,则堆栈成功 . 我不知道如何获得错误消息,以了解为什么它失败了这个配置 . 这是失败资源的JSON: { "RestAPI":{ "Type":"AWS::ApiGateway::RestApi", "Properties":{ &quo... -
0 votesanswersviews
没有lambda的ApiGateway CloudFormation
我正在尝试创建一个模板,以便当我调用 api/divide/inputvalue 时,api从 DynamoDB 发送回来对应于 inputvalue 映射的响应 . 它很直接,因为我直接从db获取值而没有任何业务逻辑,因此我不需要任何lambda . 但是我谷歌或所有教程的所有例子他们都在使用lambdas而我现在迷失了,我怎么能让它在没有lambda的情况下工作 这就是我到目前为止所拥有的 .... -
0 votesanswersviews
如何在apigateway的cloudformation中自定义响应
我在用于cloudformation的apigateway模板中对我的 GET 方法进行了以下配置 "paths": { "/customer/{customerid}": { "get": { "description": "Returns JSO... -
0 votesanswersviews
为APIGateway方法设置缓存
我有以下CF模板 { "Conditions":{ "CreatedProdStage" : {...} } ... "Resources":{ "GetMethod": { ... }, "... -
1 votesanswersviews
CloudFormation创建的ApiGateway的S3大小限制
我有一个 Cloud 形成模板,定义了一个新的api网关: AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: API for getting planetary info Resources: PlanetsApi: Type: AWS::ApiGatewa... -
2 votesanswersviews
在CloudFormation中为APIGateway方法设置CloudWatch维度
我有一个api说 apifortest ,它在不同路径下有10种方法 . 那些方法是 GET , PUT 和 POST . 我想要做的是为这些创建一个CloudWatch监视器 . 我在这里看文件 http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/api-gateway-metrics-dimensions.html 这就... -
1 votesanswersviews
AWS Cloudformation Cloudwatch仪表板:Ref ApiGateway Headers
我有一个Cloudformation模板,其API网关定义为 Headers Employee Management API . 我在为API网关定义Cloudwatch仪表板时想要引用此 Headers . 现在,我将API网关的 Headers 硬编码到仪表板指标中 . 相反,如果我能够参考API网关的 Headers 属性,那就更好了 . 下面粘贴的是Cloudformation模板的... -
3 votesanswersviews
Cloudformation不支持在apigateway中创建vpc链接
在aws api网关中有一个名为API Link的部分,我可以手动设置它 . 问题是我在cloudformation文档中找不到关于如何通过api网关上的 Cloud 形成创建vpc链接的任何部分 . 是不是因为cloudformation不支持,还是我错过了?