For questions about CloudFormation, part of the Amazon Web Services (AWS) that provides a way to manage a collection of related AWS resources.
Questions tagged [aws-cloudformation]
8147 questions
164
votes
10 answers
What is the difference between Elastic Beanstalk and CloudFormation for a .NET project?
I have developed a .NET MVC application and have started playing around with AWS and deploying it via the Visual Studio Toolkit. I have successfully deployed the application using the Elastic Beanstalk option in the toolkit.
As I was going over the…

kspearrin
- 10,238
- 9
- 53
- 82
157
votes
4 answers
ValidationError Stack:arn aws cloudformation stack is in ROLLBACK_COMPLETE state and can not be updated
When I deploy using cloudformation aws cloudformation deploy --region $region --stack-name ABC
I get the error:
An error occurred (ValidationError) when calling the…

Thanh Nguyen Van
- 10,292
- 6
- 35
- 53
109
votes
13 answers
How can I quickly and effectively debug CloudFormation templates?
CloudFormation is a powerful AWS offering that allows the programmatic creation of AWS resource stacks, such as the web tier of an application, a high performance computing cluster, or an entire application stack, with a single API call. It is…

Christopher
- 42,720
- 11
- 81
- 99
91
votes
3 answers
Template format error: unsupported structure seen in AWS CloudFormation
I am trying to validate an AWS example CloudFormation template using a command like:
▶ aws cloudformation validate-template --template-body template.yml
This leads to the following error message:
An error occurred (ValidationError) when calling the…

bgenchel
- 3,739
- 4
- 19
- 28
91
votes
6 answers
AWS CloudFormation Stack update error: Requires capabilities : [CAPABILITY_IAM]
When creating a stack with CloudFormation, I get this error:
Stack update error: Requires capabilities : [CAPABILITY_IAM]
I can't find a template for adding CAPABILITIES_IAM to the CloudFormation configuration.
What are the options for resolving…

Eric Nord
- 4,674
- 3
- 28
- 56
91
votes
9 answers
AWS OpsWorks vs AWS Beanstalk vs AWS CloudFormation?
I would like to know what are the advantages and disadvantages of using AWS OpsWorks vs AWS Beanstalk and AWS CloudFormation?
I am interested in a system that can be auto scaled to handle any high number of simultaneous web requests (From 1000…

ipegasus
- 14,796
- 9
- 52
- 76
87
votes
5 answers
Getting Outputs from aws cloudformation describe-stacks
I am using the below to get the stack information I want via AWS Cli:
aws cloudformation --region ap-southeast-2 describe-stacks --stack-name mystack
It's returning result OK:
{
"Stacks": [
{
"StackId": "arn:aws:mystackid",…

Steven Yong
- 5,163
- 6
- 35
- 56
87
votes
6 answers
Specify log group for an AWS lambda?
Is there a way to specify the CloudWatch log group that an AWS lambda logs to? It seems to be generated directly from the lambda name; however, it would be especially convenient to, for example, aggregate multiple lambdas to a single log group. We…

JohnJ
- 4,753
- 2
- 28
- 40
87
votes
11 answers
User is not authorized to perform: cloudformation:CreateStack
I'm trying out Serverless to create AWS Lambdas and while creating a project using the command serverless project create I'm getting the following error.
AccessDenied: User: arn:aws:iam::XXXXXXXXX:user/XXXXXXXXX is not authorized to perform:…

Milindu Sanoj Kumarage
- 2,714
- 2
- 31
- 54
84
votes
1 answer
CloudFormation insists my DynamoDB creation JSON is invalid .. but I can't see how
Here's (the DynamoDB part of) my Troposphere-generated JSON:
"sandbox": {
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": "audit_id",
"AttributeType": "S"
…

user1381745
- 3,850
- 2
- 21
- 35
83
votes
1 answer
AWS: How to specify a boolean parameter in a CloudFormation template
I'm trying to specify a boolean parameter in a CloudFormation template so I can conditionally create resources based on a parameter passed in.
Looking at the documentation here and here it would appear there is a discernible lack of a boolean data…

Willem van Ketwich
- 5,666
- 7
- 49
- 57
82
votes
7 answers
AWS SAM YAML template - Unknown Tag !Ref
When I try to deploy my AWS SAM YAML file, it fails saying the !Ref is an unknown tag.
Any ideas to get around this?
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
MySimpleFunction:
Type:…

EdsonF
- 2,719
- 3
- 30
- 34
74
votes
3 answers
PropertyDefinition inconsistent
I have following template that i am using in cloudformation UI to create dynamoDB table. I want to create a table with PrimaryKey as ID and sortKey as Value
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "DB Description",
…

Em Ae
- 8,167
- 27
- 95
- 162
73
votes
4 answers
How to use Sub and GetAtt functions at the same time in CloudFormation template?
I created CloudFormation yaml template and I need to use !GetAtt "TestLambda.Arn" as part of !Sub function in "AWS::ApiGateway::Method" Integration Uri:
Type: "AWS::ApiGateway::Method"
Properties:
RestApiId:
Ref: "RestApi"
…

Hleb
- 7,037
- 12
- 58
- 117
73
votes
4 answers
Difference between SAM template and Cloudformation template
I'm finding it hard to understand the difference between SAM template and Cloudformation template. I know that SAM template can be used to define Serverless Applications like Lambda, but how does that make it different from Cloudformation template?…

Schleir
- 1,775
- 2
- 15
- 14