Amazon Web Services CloudFormation is a JSON-based templating system that can be used to create and manage a collection of related AWS resources, provisioning and updating them in an orderly and predictable fashion.

learn more… | top users | synonyms

0
votes
0answers
6 views

What is a “supported service” in cloudformation-init::services?

I'm trying to launch a custom daemon from a cloudformation::init script. The /etc/init.d/myservice is fully functional; if I log in after cfn-init completes, sudo service myservice start behaves ...
-1
votes
0answers
12 views

Cloudformer instance is taking too much time to analyse the region and getting timedout [closed]

I have launched cloudformer instance to create cloudformation template out of the existing infrastructure but after the instance get launched, it's taking too much time to analyse the region. The ...
1
vote
0answers
43 views

AWS CloudFormation Create Route 53 Private Hosted Zone

Hello and thanks in advance... I'm leveraging AWS CloudFormation to automatically build up a VPC and Subnets etc. I would like the CloudFormation template to create a Route 53 Private Hosted Zone ...
0
votes
0answers
8 views

CloudFormation delete sequence issue

I configured three EC2 instances (different AZ with VPC stuffs through CloudFormation) and each instance has a shutdown hook script through upstart. The script communicate with CloudWatch Service to ...
1
vote
1answer
76 views

CloudFormation with an ELB and its public dns

I'm using Cloudformation to build a load balanced stack. My concern is that each time the stack is recreated, the ELB public url will change, which will require a change in the website's route 53 ...
0
votes
1answer
52 views

CloudFormation powershell to run as domain admin + elevated priviledge

So... I'm writing some cloud formation templates. Using cfn-init, I get the machine to join the domain, and now I need to run in a Domain Admin context as local admin with elevated privilege to: ...
0
votes
1answer
100 views

CloudFormation Script - Referencing earlier created Security Group

I have a CloudFormation script which is working fine except I need to be able to add my EC2 security group to an RDS security group so that the EC2 instance can access the MySQL database on the RDS ...
0
votes
1answer
35 views

Keeping Cloudformation documents for RDS and app separate, but linked

Putting my DB definition and my application server definition in the same cloudformation document has pros and cons: Pros: DB hostname, username and password can be provided to the app servers ...
2
votes
1answer
176 views

AWS CloudFormation returning “Invalid request” when trying to create a AWS::Route53::RecordSet

I'm at a loss on this one. 99% of the time CloudFormation is pretty good at giving you some kind of debug message you can work with, but "Invalid request" has left me stumped, especially when the ...
0
votes
1answer
63 views

“aws ec2 associate-address” not working when used in UserData in conjunction with Auto Scaling Group

I'm trying to use AWS CloudFormation to create a NAT instance via an AutoScalingGroup, and I'm running into a problem when trying to associate an EIP during instance creation via LaunchConfiguration ...
0
votes
1answer
431 views

Assigning a public ip to an ec2 in cloudformation?

In the vpc I am using on aws ec2's do not get a public ip address by default. I am trying to add one manually after referencing this and this bit of documentation. Currently my cloudformation ...
1
vote
2answers
153 views

Conditional Property in AWS CloudFormation

We've got an AWS CloudFormation template for creating some EC2 instances. Some of those however require a specific PrivateIpAddress and I'm struggling to figure out how to incorporate that to the ...
0
votes
1answer
158 views

AWS Custom AMI not running userdata script

We bake AMI's and lately I have wanted to run some user-data scripts to notify cloud formation when the instance is done booting and put it into service. I am using cfn-signal to do this. On the ...
0
votes
1answer
132 views

Keepalived unwanted transition to master

I'm starting 2 EC2 intances in Amazon with Cloudformation, the second instance starts about 30 seconds after the first one. The configuration looks like this : Instance 2 state BACKUP ...
0
votes
1answer
63 views

Per-instance alarms inside auto-scaling groups in CloudFormation

Basically what it ways on the tin, how can I create individual per-instance alarms inside an auto-scaling group created with a CloudFormation template? I can reference the ASG itself in an alarm and ...
1
vote
0answers
37 views

How is CloudFormation metadata access controlled?

As I understand it, an instance needs to be granted access to cloudformation:* resources in order to do anything with CloudFormation. But when I run this on a Beanstalk web server instance: ...
3
votes
1answer
115 views

How can I get Puppet generated configuration to include internal hostnames of other ec2 instances in my CloudFormation stack?

I have a stack generated by AWS CloudFormation that includes an EC2 instance (running Ubuntu 14.04) and an RDS (database) instance. They are both inside a VPC, which includes a puppet master (not as ...
1
vote
2answers
511 views

AWS CloudFormation - Custom variables in templates

Is there any way to define shortcuts for often-used values derived from CloudFormation template parameters? For example - I've got a script that creates a Multi-AZ Project stack with ELB name project ...
0
votes
1answer
407 views

Using Cloud Formation provisioned security group with specific subnet

Summary I'm attempting to create an AWS CloudFormation template which contains an instance for which I want to select a particular subnet. If I specify the subnet ID then I get the following error ...
0
votes
0answers
85 views

How can I use ELB load balancing metrics in autoscaling group policy?

How do I configure an auto-scaling policy to work off the latency cloud watch metric of an associated ELB. I have looked at all the example cloud formation scripts and they only work upon metrics from ...
0
votes
1answer
555 views

using CloudFormation with an existing S3 bucket

Using CloudFormation, I want to set some of the properties in AWS::S3::Bucket on an existing bucket. In other words, I don't want to create the bucket, I just want to enforce some of the settings. ...
1
vote
1answer
320 views

Cloudformation can I create a new role referencing an existing policy?

At the moment I have a shared S3 bucket which has specific access to particular key paths (i.e. folders) for different instances. I've been able to create instance profile with my new role and test no ...
0
votes
1answer
70 views

AWS reserved instance AZ matching Cloud Formation AZ

When purchasing reserved instance, I had to choose availability zone (1 out of 3). In our Cloud Formation template we don't specify availability zone (seems like a right thing to do in case one AZ ...
0
votes
1answer
113 views

Continuously deploying a Symfony app on Cloudformation

My current plan is to begin hosting my team's Symfony-based app on a load-balanced, autoscaling group generated via Cloudformation. When someone on my team pushes to our Github repo, I would like ...
1
vote
1answer
213 views

Why would you use AWS Elastic Beanstalk in conjunction with AWS CloudFormation?

It states here of Elastic Beanstalk and CloudFormation that... These services are designed to complement each other. From my reading, I don't understand why you would want to use them together. ...
2
votes
1answer
678 views

How do I create DNS entries for EC2 instances created by Auto Scaling?

I'm looking into using auto scaling groups for a tier of webservers that would be fronted by an ELB. One of the things I'm having a hard time with is how to give each new instance the proper DNS ...
0
votes
1answer
551 views

Managing AWS Beanstalks with Puppet

I'm thinking about using Puppet Enterprise to deploy sets of servers/services to Amazon Web Services. As far as I can tell, the best way to do this is via CloudFormation. Based on what I've read, ...
1
vote
2answers
639 views

Amazon CloudFormation: How to get an ELB's private IP for a specific subnet?

TL;DR - Is it possible for a CloudFormation template to insert the subnet-specific internal IP address of a specific ELB into the UserData of an instance within that subnet? We have a fleet of EC2 ...
5
votes
2answers
739 views

Aws vpc default route table in CloudFormation

Am I missing something but is there no way to add a route via CloudFormation to the default route table that comes provisioned with a VPC?
2
votes
2answers
736 views

How can I reuse existing resources in CloudFormation?

I've have S3 bucket as resource in my CloudFormation template. With DeletionPolicy set to Retain. This works as expected, when deleting the stack, it does indeed retain the bucket. However, when I ...
0
votes
1answer
248 views

Expand Amazon EC2 HVM root partition

I created a VM with the Amazon AMI HVM. In the partition configuration I changed the default 8GB root partition to something bigger (10 in my example). Once up, I'm trying to resize but it's not ...
3
votes
3answers
425 views

in cloudformation is it possible to create a reusable string?

i have a string the is formed from a number of variables which i use for many different things such as Tags and host names. is there a way of creating a reusable string that i can just Ref though ...
0
votes
1answer
325 views

Cloudformation Cloudwatch Template

We have a bunch of existing servers in EC2. Future servers are created with Cloudformation with Cloudwatch integration. However, I need to setup Cloudwatch for servers that weren't created with ...
0
votes
1answer
112 views

Cloud Formation init script cfn-init cancellation

I used to Drupal Cloud Formation sample template to create my Drupal based web site. But now every time my EC2 instance reboot Cloud Formation helper script cfn-init reloads original Drupal ...
0
votes
1answer
100 views

Link AWS Resource to a CloudFormation stack

I have a Cloudformation Stack launch an Amazon AMI instance. Once this instance is started, I create an IAM user from a script (aws iam create-user --user-name blah). My issue is that when I delete ...
0
votes
2answers
361 views

Cloudformation Add Instance to Security Group in Different Region

I have a Cloudformation stack that I create through Jenkins in various Regions. I have a Chef server in one Region with a separate security group. I need new instances created via Cloudformation to ...
1
vote
0answers
74 views

AWS Cloudformation issue installing custom binaries

I'm trying to install a custom compiled package that I have in S3 as a zip file. I added this on my Cloudformation template: "sources" : { "/opt" : ...
3
votes
4answers
920 views

AWS Cloudformation - can't add multiple subnet associations to a public routing table

We have a VPC with an Internet Gateway. We have 3 subnets (one in each AZ) and want to use one routing table for all three. This RT contains a rule to route 0.0.0.0/0 to the igw however when we try ...
1
vote
1answer
149 views

What sort of updates do ELB properties support (for CloudFormation)?

Question: What type of updates do each ELB property support? I'm reading through the ELB CF docs: AWS::ElasticLoadBalancing::LoadBalancer ...
3
votes
1answer
1k views

AWS Cloud Formation.Requires capabilities : [CAPABILITY_IAM] (Child Stack)

IMPORTANT I'm building the TemplateURL dynamically. "TemplateURL" : { "Fn::Join" : ["", [ { "Ref" : "TemplateURL"}, "substack.template" ]] } I'm running a CloudFormation template in the AWS ...
5
votes
1answer
2k views

AWS CloudFormation: VPC default security group

I have a cfn stack that (among other things), creates a VPC, several security groups, and a handful of EC2 instances. It's trivial to assign security groups that are created within the stack to ...
2
votes
0answers
614 views

Is it possible to force Re-creation of EC2::Instance or RDS::DBInstance in amazon cloudformation?

It's possible to force the re-creation of a EC2 or RDS instance using cloudformation stacks? My stack goes stuck in a point where simply destroying and creating the resource will fix it, instead of ...
0
votes
1answer
532 views

Cloud formation - updating a stack behind an elb doesnt update the AMI

We are powering our AWS EC2 instances using cloud formation. We have 3 different stacks - testing, staging and production. Our workflow to update the images for any of the stacks is as follows: ...
2
votes
1answer
1k views

Cloudformation Ephemeral (Instance) Storage for instance

I am trying to launch an EC2 Instance with CloudFormation that uses ephemeral / instance storage rather than EBS. I have managed this with Opsworks - so that in the EC2 management window "root ...
1
vote
1answer
664 views

Amazon CloudFormation - is there an elegant shutdown and delete instances?

I have recently been recently using Amazon's CloudFormation to launch instances of EC2 Ubuntu machines running MongoDB. When it comes to deleting the stack it often fails I guess due to not being ...
0
votes
0answers
41 views

Cloudformation Resource for a Cross Region S3 bucket policy [duplicate]

I know this is somewhat a duplicate of Cross Region S3 bucket policy but I don't have enough rep to comment and the answer wasn't detailed enough. I would like to allow EC2 servers based in ...
0
votes
1answer
351 views

How to get the correct hostname when using ElasticIP in a CloudFormation template

I am using an elastic ip in a CloudFormation template "ServerEIP" : { "Type" : "AWS::EC2::EIP", "Properties" : { } }, Later on I have an EC2 Instance "Server" : { "Type" : ...
0
votes
2answers
1k views

How to make IP address known on both instances in an Amazon CloudFormation template

I have multiple instances in an Amazon CloudFormation template and am trying to connect them together via the UserData, i.e. tell each other the IP Address of the other machine. The template looks ...
0
votes
1answer
121 views

Why is my Cloudformation script not starting apache?

I'm trying to create an instance to run apache, and everything seems to be working, but the web server is not being started. It starts up fine manually. If I reboot the instance, it does not ...
0
votes
1answer
93 views

package management via AWS CloudFormation

I am trying to remove packages using a cloud formation template. I have and can install it using the both packages and files structures but I need to remove one and install a different version. i.e. ...