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

Cloud Formation template add ingress rule to existing security group

Problem scope I have an application built using multiple cloud formation templates. They need to interact with each other but are too large/complicated to build in one template. Detail of scenario ...
0
votes
1answer
17 views

AWS Cloudformation: Invalid template resource property error

I am attempting to create a Cloudformation template to configure an IAM role. As far as I can tell my JSON is 100% valid but apparently I'm overlooking something else because it's not able to be ...
0
votes
0answers
9 views

How to update a running CoreOS instance's user-data through AWS CloudFormation?

I have a running CoreOS instance triggered by AWS CloudFormation. I updated the CloudFormation template via CF designer, but found out that user-data of the existing instance was not updated. Is there ...
0
votes
0answers
18 views

Best practice/way to manage Elasticsearch cluster nodes in EC2 cloud with Ansible

I have to deploy cluster for production environment in EC2 cloud and want to be able to: 1. Remove/Add nodes from/to cluster 2. Assign roles to nodes (dedicated master node, data node, and client ...
-1
votes
1answer
34 views

Deployment to Azure using Jenkins and github

I need to deploy code from github to Azure. i have configured jobs to perform test on the script and based on the result i want to deploy those script in Azure. I need help on what jenkins plugin to ...
1
vote
1answer
22 views

New instance registering with ELB too soon, how can CI signal if instance provisioning was successful?

I am using CloudFormation template that creates launch configuration and auto scaling group. User data script for this launch configuration calls CI web-hook to deploy application into this instance. ...
0
votes
1answer
22 views

How to add an existing RDS Database to a running stack?

I'm creating a cloud formation template that I would like to use to run and create an environment. The only problem is that I have an existing database that I would like to form a part of this stack. ...
0
votes
2answers
59 views

How to get public IP of instance in CloudFormation template when using LaunchConfig

I have a CloudFormation template with LaunchConfig. In UserData I need to reference public IP of the instance being created. I wanted to use Fn::GetAtt, but it requires logical name and I'm not sure ...
1
vote
1answer
24 views

AWS Cloudformation : CLI tool to render template

Given an AWS template that contains calls to instrinsic functions, and potential references parameters, is there a CLI tool that allows to pass values for the parameters, and generate the ...
1
vote
1answer
64 views

Access S3 bucket from my EC2 instance using CF::Init via IAM role not working

I have a CloudFormation template I'm using to set up an ECS cluster and I am trying to drop some config files onto the box using CloudFormation::Init on the ASG and pulling them out of S3. "...
1
vote
2answers
44 views

NAT for VPC will not allow internet access

I'm trying to hook up my private subnet postgres cluster to have internet access without being publicly accessible. My setup is as follows: I have a VPC 10.1.0.0/16 with 4 subnets: Postgres Subnet ...
1
vote
0answers
15 views

What happens when we remove the SnapshotIdentifier from our Cloudformation config

When we spun up our Cloudformation stack, we restored our DBCluster from a snapshot. We are now in the process of updating our stack. What will Cloudformation do with our DBCluster if we remove the ...
0
votes
0answers
22 views

Jenkins configure from command line?

Is it possible to setup a Jenkins from command line in more detail? So far I just install Jenkins and Plugins wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins....
0
votes
0answers
5 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
16 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
95 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
57 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
55 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
123 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
80 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
48 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
1answer
157 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
426 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 http://docs.aws.amazon.com/AWSCloudFormation/...
0
votes
0answers
82 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 ...
1
vote
1answer
131 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
97 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
195 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
28 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
11 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") AllowedPattern("(((AD\\-Certificate)|(AD\\-...
1
vote
2answers
53 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
496 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 ...
2
votes
1answer
636 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
208 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
202 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
421 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
202 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? ...
2
votes
1answer
302 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, eu-west-...
0
votes
1answer
1k 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": "https://s3.amazonaws.com/...
0
votes
2answers
219 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
712 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
103 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 this:...
0
votes
1answer
150 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
837 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 ...
2
votes
1answer
360 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
234 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
370 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
73 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 ...
6
votes
3answers
1k 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
222 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
181 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 ...