Tagged Questions

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
1answer
17 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
0answers
11 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
0answers
7 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
33 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
21 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
26 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
57 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
126 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
91 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
36 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
211 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
115 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
42 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
77 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
172 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. ...
1
vote
1answer
264 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
343 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
273 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 ...
1
vote
2answers
399 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?
1
vote
1answer
393 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
0answers
225 views

AWS Cloudformation Bootstraping with S3 File and Autoscaling

I just started trying to use CloudFormation and am using it for some autoscaling. I am new to all this so bare with me. I am using the sample template for autoscaling found here. ...
0
votes
1answer
178 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 ...
2
votes
3answers
167 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
165 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
93 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
83 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
273 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
59 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" : ...
1
vote
4answers
544 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
131 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
666 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 ...
3
votes
1answer
1k 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 ...
1
vote
0answers
281 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
334 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
776 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
436 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
40 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
261 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
863 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
70 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
87 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. ...
4
votes
3answers
1k views

Why doesn't the aws cloud formation install the packages that I specify?

I'm very new to the AWS services. I'm trying to use the AWS cloud formation and I created a template. The template is error free and I am able to create machines using that. But I have added some ...
0
votes
1answer
668 views

Download single files from GitHub in CloudFormation template

Within my CloudFormation template, I would like to download text files from GitHub. When I examine the downloaded files is encoded/encrypted content instead of plain text. It doesn't seem like it ...
3
votes
1answer
265 views

Is it possible to update an existing EC2 security group from CloudFormation?

I have a manually created security group to access Redis, and I am creating a LAMP stack with AWS CloudFormation. I need to update the Amazon EC2 security group from Redis to allow access from this ...
2
votes
1answer
402 views

CloudFormation - How to start a Windows Service with cfn-init

I'm creating a CloudFormation Stack that will install and start a service on a Windows Instance. I've figured out how to install the service, but how do I start the service using cfn-init? The ...
1
vote
2answers
2k views

How to change the computer name on a server configured by Puppet

I am new to Puppet and I'm trying to get Puppet to configure my EC2 instances after they're started from a Cloud Formation Template in AWS. The problem is that all the nodes that get started from the ...
0
votes
1answer
425 views

Persistent Spot Instance Request with CloudFormation

Is it possible to create "Persistent Spot Instance" with AWS CloudFormation ? I'm going through the Autoscale and EC2 CloudFormation's template references but there is no mention how to set a property ...
1
vote
1answer
232 views

How do I delete aws s3 bucket policy?

I've mistakenly configured a bucket policy with a name of nonexisting bucket (via cloudformation). Now I can't delete the stack (S3::DeleteBucketPolicy failed), and can't find any way to delete the ...
2
votes
1answer
94 views

Why don't cfn-init logs get sent by rsyslog?

I just signed up for Papertrail to aggregate logs from some AWS instances I'm setting up with CloudFormation::Init. I've followed the instructions and added *.* @logs.papertrailapp.com to the end of ...
2
votes
1answer
578 views

Bootstrapping in CloudFormation with Autoscale

My CloudFormation template creates an autoscale group and bootstrap it with utility script /opt/aws/bin/cfn-init. When I remove the bootstrap part out of my template the, autoscale get created without ...