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
3 views

Viewing updated changes in a Cloudformation script?

We have frequently changing CFM scripts in our environment, and occasionally something "not quite right" goes through and we need to know what was changed. Is there a way to see changes or ...
0
votes
0answers
14 views

ec2 update active directory domain

I have a curious one on hand. We have a CloudFormation template that contains an Active Directory (a domain controller) and a remote desktop gateway server as well as a number of other servers. It is ...
0
votes
1answer
13 views

How to force reboot EC2 instance after AWS CloudFormation finished running?

I've created a CF template for installing Windows 2012 R2 server with Visual Studio 2015 Community Edition. It executed w/o errors but when I tried to run Visual Studio it said "reboot pending" but ...
0
votes
1answer
12 views

Pass Nested Cloud Formation template, S3 bucket alternative

aws cloudformation create-stack --stack-name myteststack --template-body file:////home//local//test//sampletemplate.json Base on AWS Cloud Formation documentation, we can use Nested Cloud Formation. ...
0
votes
0answers
23 views

How to create a reusable string in cloudformation AWS?

I have to pass a string that 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 ...
0
votes
1answer
21 views

Assigning name to IAM Role with cloudformation

how can we set/assign name of any IAM role while creating an IAM role with cloudformation. Say i want to create an IAM role with name NewRole, using cloudformation script, but i cant find any ...
-1
votes
1answer
44 views

Nginx with mod_security on EC2 [closed]

I am looking to get some ideas and see what others are doing in terms of managing/keeping updated Nginx + mod_security on EC2 instances. The catch with this is that mod_security needs to be compiled ...
0
votes
1answer
26 views

Using CloudFormation, I cannot get an AAAA record to work with ELB

I have the following two CloudFormation resources: "TestELB" { ... }, "TestRecordSetGroup": { "Type": "AWS::Route53::RecordSetGroup", "Properties": { "HostedZoneName": "example.com.", ...
0
votes
0answers
57 views

Is there a way to create AWS autoscaling lifecycle hooks with CloudFormation without a race condition?

I am trying to use AWS autoscaling lifecycle hooks in a template that encapsulates the following things: AWS::AutoScaling::AutoScalingGroup with associated scale up/down policies, launch ...
0
votes
1answer
140 views

How to specify needed VPC and subnet into AWS CloudFormation template

I am new with Amazon services and particularly in CloudFormation. So I have begun to read from "Getting Started with CloudFormation" from Amazon site ...
0
votes
0answers
55 views

AWS Cloudformation OpsWorks Custom Recipe SSH Key

Is there a method to pass a SSH Key through to a Cloudformation script for custom recipes repo when configuring an Amazon Web Services OpsWorks stack besides mangling the newline characters and ...
0
votes
0answers
51 views

Cloudformation ELB Cloudwatch Alarms InsufficientData

I have setup a bunch of cloudwatch alarms for my service using cloudformation. All my alarms work except for the ELB alarms. They always just show insufficient data. I can go into the console and ...
0
votes
2answers
53 views

AWS - LaunchConfig starting before NAT instance is initiated (CloudFormation)

My Scenario In a CloudFormation template I have a single VPC, a public subnet and a private subnet. In the public subnet I have amazons NAT AMI in an instance. In the private subnet I have an ...
1
vote
1answer
82 views

Unable to mount EBS drives to an Ubuntu box using AWS CloudFormation (UserData not working)

I have an otherwise working CloudFormation template that creates an AWS instance 2 EBS volumes. The volumes are visible on the machine via lsblk. I am just having trouble getting them formatted and ...
1
vote
0answers
21 views

Use and modify existing Opsworks stack in CloudFormation

I want to create a stack in AWS CloudFormation that uses OpsWorks resources to create a new environment for my application. The thing is that my app needs the OpsWorks stack's id predefined, so I ...
0
votes
0answers
10 views

Cloudformation AllowPattern showing validation error

I have a CloudFormation script that provisions an instance with windows features installed. Parameter("Roles") do Type("String") Default("None") ...
1
vote
1answer
29 views

Can one use AWS Console to modify a stack that was created by Cloud Formation?

For example, I created a LAMP stack with multiple EC2 instances using Cloud Formation. Now, I just want to assign a temporary Security Group to one of the instances for next day or two. Can I do this ...
1
vote
2answers
386 views

Creating AWS VPC Endpoints with CloudFormation

I'm currently looking into automating the creation of VPC endpoints within our stack using CloudFormation (The purpose is so that our stack can access S3 without creating outbound traffic). The ...
1
vote
1answer
310 views

Cloudformation fails with “AMI cannot be described”

I made a change to my cloudformation template, just adding mappings, and userdata in the AWS::AutoScaling::LaunchConfiguration, and now it fails to create my stack with the message "AMI cannot be ...
0
votes
3answers
143 views

Getting information from one CloudFormation stack to use in another

I'm trying to set up a build pipeline for a web service in AWS. The plan is to have the service run in an Auto Scale Group, and use Jenkins to build a one off EC2 instance, run tests and, on success, ...
0
votes
0answers
88 views

UpdatePolicy in AutoScalingGroup failes to update instances

I have used the following settings in the CloudFormation for creating an autoscaling group: "myautoscalinggroup": { "Type": "AWS::AutoScaling::AutoScalingGroup", "UpdatePolicy" : { ...
0
votes
2answers
216 views

AWS CloudFormation give EC2 instance SSH Keys to other servers

I'm creating an EC2 instance using CloudFormation. The first thing I want to do is checkout a git repository containing puppet manifests. To do this I need an SSH key. What is the best way to get the ...
3
votes
3answers
131 views

AWS Cloudformation and manual changes

I can't seem to find any documentation about what happens when you manually mess with Cloudformation's objects. I see it tags its objects, but does it recover if, say, someone deletes a routing rule? ...
1
vote
1answer
212 views

Run EC2 instance into specific non-default VPC in random subnet

I have a problem and I expect that someone help me. I'm working with AWS and I have 2 VPC. The default VPC an another VPC created by me. Each VPC has 3 subnets in differents AZ (eu-west-1a, ...
0
votes
1answer
645 views

Amazon Cloud Formation: Import file from S3 bucket

I am struggling to get files from my S3 bucket to my EC2 instance using cloud formation. I have the following files: "files" : { "/var/www/text.txt": { "source": ...
0
votes
2answers
165 views

CloudFormation / Opsworks: public address of OpsWorks instance in CloudFormation template

I've got a CloudFormation template that's launching a central server instance using OpsWorks (so I'm defining an OpsWorks::App, OpsWorks::Instance, OpsWorks::Layer and OpsWorks::Stack). Elsewhere in ...
1
vote
1answer
331 views

AWS CloudFormation templates and a bash init script

Up until now I've been launching EC2 instances manually, copying over a bash script that downloads my chef + chef artifacts, and calls chef-solo to provision an instance. A former AWS engineer in the ...
1
vote
1answer
82 views

Amazon linux EC2 from CloudFormation - stop service

I'm running a my service on a Amazon EC2 create from a CloudFormation script. I put service file in /etc/rc.d/init.d/myService. (includeing "start" and "stop" functions). I've also linked it like ...
0
votes
1answer
80 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 ...
2
votes
1answer
536 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
33 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 ...
2
votes
1answer
296 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
180 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
319 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
58 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 ...
4
votes
3answers
751 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
185 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 ...
1
vote
2answers
160 views

Amazon RDS on solid state drives

I am planning to design a cloud based application which leverages the MySQL provided using Amazon RDS. I wish to setup read replicas for the data which I have obtained on solid state drives. Does ...
1
vote
1answer
1k 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
798 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 ...
1
vote
2answers
638 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 ...
1
vote
1answer
410 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 ...
1
vote
1answer
203 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
45 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
169 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 ...
3
votes
2answers
1k 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
1k 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 ...
1
vote
1answer
1k 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. ...
2
votes
2answers
1k 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
105 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 ...