Questions tagged [amazon-cloudformation]

Amazon Web Services CloudFormation is a JSON- or YAML-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. You can think of it as 'Infrastructure-as-code'.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

AWS CloudFormation template with ConfigRule

I'm new to AWS but already tried looking everywhere for this, and couldn't find a proper answer. My aim is to create a CloudFormation template which forms a new stack, without assuming that AWS Config ...
1
vote
0answers
16 views

Configure AWS Cloudfront to send custom query params to origin

is it possible to configure my AWS Cloudfront distribution to append to the request a custom query param (e.g a private key) before sending it to origin? For example, the front end is calling *....
-1
votes
0answers
8 views

How can I add an external AWS account and assign a role to that via CloudFormation?

I want to create a CloudFormation script to create a new role and assign that role to an external AWS account. I'm doing that to use that account in my security audit using Prowler (the external ...
1
vote
1answer
127 views

AWS Cloudformation Template error: every Ref object must have a single String value

SNSTopic Type: 'AWS::SNS'...... SNSTopic2 Type: 'AWS::SNS'....... EventRule: Type: 'AWS::Events::Rule' Properties: Name: !Ref EventRuleName Description: State: ...
0
votes
1answer
82 views

Best way to install cfn-bootstrap utilities on CentOS 8

I'm working on a CentOS 8 based instance/launch configuration in AWS and would like to use cfn-init to manage some of the setup/provisioning steps. However, I'm finding that the provided RPM does not ...
1
vote
0answers
24 views

Autoscaling - lifecylehook implementation

I'm trying to implement my first ASG with a lifecycle hook and I am having this issue: LifecycleHandlerFunction: Encountered unsupported property Role The following resource(s) failed to create: [...
0
votes
2answers
53 views

Modify AWS Lambda function inside CloudFormation stack

I've launched this stack and needed to update it's Lamdba function, I've made some amendments and hit deploy, a new version of function was saved, however Lambda application still refers to the first ...
1
vote
1answer
34 views

CloudFormation: How to get a list of key pairs in a given region

I have a very simple CF template that creates an EC2 instance. The key pair is specified as a parameter. I would like the list of possible key paris to be populated automatically. Resources: ...
0
votes
0answers
65 views

What is wrong with this AWS SAM YAML Auth ResourcePolicy?

I tried to use the following Resource Policy for my API Gateway (YAML): Auth: ResourcePolicy: IntrinsicVpcWhitelist: - vpc-<ID Removed> I deployed via SAM, ...
0
votes
0answers
15 views

Provide Parameter file to AWS QuickStart in CloudFormation

I want to use an AWS QuickStart provided by the software vendor to create my AWS stack. The vendor's template has a phletora of parameters which I need to choose or enter manually, such as for example ...
1
vote
0answers
10 views

Will deploying an AWS quick start in the same tenant conflict with an existing installation?

I do have only one AWS tenant. There is an application (Atlassian Jira + Confluence) which is running productively in this tenant. Now I want to test a new version of this AWS QuickStart. If I will ...
0
votes
0answers
12 views

How to get PublicDNS name of InstanceId given as a Parameter?

I have a CFT with this parameter: ServerInstanceId: Type: AWS::EC2::Instance::Id Default: "i-0000000000000000" Description: EC2 InstanceId of the pre-existing server. And then ...
1
vote
1answer
159 views

How to dump AWS resource definitions in CloudFormation format?

I have read through the AWS Documentation and also this summarizing blog article here. The TL;DR is that CloudFormation "import" requires you to meticulously define, down to the last detail, ...
1
vote
1answer
41 views

How to emit IPv6 address of EC2 instance in the ouputs of a cloudformation stack?

I have AWS cloudformation stacks with ec2 instances that are entirely isolated from external traffic. They seldom need to be directly accessed. For cases when they do need to be accessed, I have a ...
2
votes
1answer
185 views

AWS CloudFormation - Creating Layer Version and Function that uses layer

I have a Cloudformation template that currently looks roughly like the following. Resources: MyLayer: Type: AWS::Lambda::LayerVersion Properties: CompatibleRuntimes: - nodejs12....
1
vote
1answer
91 views

How can I create a Permission that is limited to just one TargetGroup?

How can I create a Permission (that grants permission to invoke a certain lambda function) that is limited to just one TargetGroup? It might sound simple but the problem has a couple of different ...
0
votes
0answers
622 views

S3 – Connection Aborted / Broken Pipe when uploading to one bucket's presigned URLs, but other buckets are fine

I have an S3 bucket in a Cloudformation stack that holds artifacts. A lambda function in the same stack generates a presigned URL for clients to upload files into the bucket. I already had the code ...
1
vote
1answer
147 views

“Resource is not in the state changeSetCreateComplete” when deploying to AWS with CloudFormation from Azure DevOps

I'm deploying an application to AWS using the CloudFormation plugin for Azure DevOps. It works really well, and will automatically update things that need changing, leaving other things alone. I've ...
1
vote
2answers
272 views

AWS CloudFormation - can I use Sub inside GetAtt?

I'm trying to reference a security group inside a CloudFormation template. the name of the group is !Sub '${EnvironmentName}-SG-Private, where EnvironmentName is a template parameter. However, the ...
3
votes
1answer
1k views

Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement

I am running this template in cloud formation to create auto scaling in ubuntu-18.04 machine and it will rollback the all instances automatically that is created by this template and giving such error ...
2
votes
1answer
115 views

CWAgent Disk Space Alarms

I'm trying to implement an alarm(in Cloudformation) for disk space free using metrics from the Cloudwatch agent and I'm having issues with devices shuffling DeviceID. I encountered this earlier when ...
2
votes
0answers
126 views

Set CPU options on Elastic Beanstalk environment via Cloud Formation

I have an Elastic Beanstalk worker app that is doing some memory-intensive single-threaded computation. All the available instance types that meet my memory requirements (16 Gb) have 2+ vCPUs, so I ...
1
vote
1answer
123 views

What's the proper way to initially deploy a CloudFormation stack for testing?

I'm writing my first CF stacks and I'm running into failed deploys on the first try of course because I don't know the syntax and available parameters yet fully. I am validating my json and the ...
1
vote
2answers
180 views

Create EC2 Instances and Volumes Using CloudFormation

I'm trying to use CloudFormation to deploy two Windows Server 2019 EC2 instances and also attach a new volume to each instance (two instances, two volumes total). I get the following error when I ...
1
vote
1answer
32 views

Cloudformation deploy EC2 instance to same IP

I have a application stack that is deployed with cloud formation. It contains two auto scaling groups and one EC2 instance on its own. How do I configure the EC2 instance or cloud formation to ...
0
votes
0answers
39 views

Cloudformation Reuse EBS Volume

I am using cloudformation to manage my infra, and I am facing an issue, if i want to change instance type of an instance, a new instance will be launched with new EBS volume, is there any way to ...
2
votes
1answer
971 views

How to create an SSL certificate for an AWS application load balancer without a domain

I am trying to create a Cloudformation stack that can be provisioned by anybody (basically I want to share it either in the marketplace, or make it public in GitHub), which includes a set of EC2 ...
0
votes
1answer
219 views

aws blockchain template received failure signal with uniqueid +failed to create ec2 instance for dev

I am learning about How to Deploy Hyperledger Fabric on AWS with Blockchain Templates. from this tutorial https://medium.com/faun/how-to-deploy-hyperledger-fabric-on-aws-with-blockchain-templates-...
0
votes
0answers
514 views

How to create a Sandbox Environment in AWS?

I am trying to create a Sandbox playground in AWS for Users to practice some resources for 30min, after that, all resources should be deleted and account temporary account should also be deleted. I ...
1
vote
1answer
284 views

Discover private DNS of load balancers in Cloudformation

This is a pretty common issue but I am having trouble finding a proper answer to how to go about this. I have two apps, which will run on EC2s. These apps will be in their separate autoscaling groups,...
1
vote
0answers
1k views

Can't delete User Pool Domain when Cognito User Pool already deleted

I deployed a CloudFormation template that sets up a Cognito User Pool and an associated User Pool Domain. As there was a misconfiguration in the template a rollback was triggered. The rollback ...
2
votes
1answer
98 views

Failed to connect instance with ALB

I'm trying to build a system like this one: I can't connect to the Instance in private public through ALB. I checked my cloudformation code several times and still couldn't find problem. Please help ...
1
vote
1answer
29 views

Can't connect to the instance in private subnet through a ALB

I would like to build a simple AWS structure just like the picture. But I failed to connect the instance by using tera term. I checked everything but cannot find anything wrong, can someone please ...
1
vote
1answer
2k views

Adding an existing security group CloudFormation EC2 template

Instead of having to set ingress and egress rules, how do I reference existing EC2 security groups in a CloudFormation Template? Resources: EC2Instance: Type: AWS::EC2::Instance ...
0
votes
0answers
36 views

AWS easy way to provision a new database on an existing RDS (MariaDB) instance

I have a greenfields account, with a bunch of stacks I've built a-top of it. Now, I have no existing EC2 instances, however while "in this state" I want to connect to my existing RDS MariaDB instance ...
0
votes
1answer
202 views

How to include sticky session in AWS Elastic Beanstalk using Cloud Formation template

As I searched for the stickiness in Elastic Beanstalk I didn't find the way how to include it using AWS Cloud Formation. Can anyone help me to do that thing. Thanks in advance.
2
votes
0answers
258 views

Cloudformation for Kinesis Firehose delivery into Redshift

I am building a Kinesis Firehose Delivery Stream that will stream into Redshift. This process has an S3 bucket as an intermediary. The Cloudformation docs for AWS::KinesisFirehose::DeliveryStream ...
1
vote
1answer
80 views

AWS cloud formation what should be excluded

We currently have a web UI configured infrastructure that I want to move to cloud formation as it is growing in complexity. We use ECS with multiple docker containers, RDS, load balancers, SNS etc. ...
0
votes
1answer
153 views

Update the software in a EC2 instance with CloudFormation update process

I wonder if there's any way to update the software inside the instance. I mean, I've a software running in EC2, I deploy the software with a CF template. That template has a parameter with the ...
2
votes
1answer
135 views

AWS CloudFormation Template for Jupyter

When reading the instructions for setting up a CloudFormation Template in Creating and Using a Jupyter Instance on AWS, I find the following modification difficult. "AWSRegionArch2AMI" : { "ap-...
2
votes
2answers
108 views

How can I bulk update CloudFormation stacks while keeping the parameters unchanged?

Let's say I have a number of CloudFormation stacks created from the same template. After making changes to the template, I want all stacks to be updated to the new version of the template. I have ...
1
vote
0answers
791 views

How to expose multiple ports on one container in AWS behind ALB

The whole application consists of two servers (RabbitMQ and Tomcat) and a DB running behind ALB. For the time being there will be only one RabbitMQ instance and one Tomcat instance however the set up ...
1
vote
1answer
2k views

AWS CloudFormation: Internal Failure. Rollback requested by user

I am creating a stack via the AWS Ruby SDK v3 and it is failing with an internal error. After a long period of time (30-40 minutes) it fails and rolls back with an internal failure. No resources show ...
0
votes
1answer
398 views

How do I add storage with cloud templating?

I have a CloudFormation template to spin up an EC2 instance. Parameters: InstanceType: Type: String Description: Instance type for RStudio. Default is t2.micro. AllowedValues: - ...
4
votes
1answer
2k views

How to fix / why are Conditions causing Unresolved resource dependencies

Edit Original details below. In the process of chasing this down, I've now narrowed it down to the fact that this security group DatabaseSecurityGroup: Type: AWS::EC2::SecurityGroup ...
3
votes
2answers
322 views

How to get instance id for docker host in cloudformation template

I have a simple CloudFormation stack which gets created with a template. A server which hosts one Docker container. This is part of the template that creates the host and the container: ...
7
votes
2answers
13k views

How to upload a file into S3 bucket using CloudFormation script?

How do I upload a file into my AWS S3 bucket CloudFormation template? AWSTemplateFormatVersion: '2010-09-09' Resources: S3Bucket: Type: AWS::S3::Bucket Properties: AccessControl: ...
1
vote
0answers
92 views

Not able to deploy Openshift on AWS using QuickStart Guide

Thanks for your support. I am trying to deploy the Open-shift on aws using AWS Quickstart guide, as mentioned here. My deployment is gets Rollback as it is unable to deploy below resources: ...
0
votes
1answer
147 views

How to dynamically add users clause in CloudFormation::Init (or, how to programmatically set template keys)

The AWS::CloudFormation::Init documentation allows the specification of users to be created on ec2 instances, thusly: "users" : { "myUser" : { "groups" : ["groupOne", "groupTwo"], ...
0
votes
1answer
481 views

Can I use existing AWS IAM role to create S3 bucket via Cloudformation template?

I want to create a S3 Bucket via CloudFormation template. I found there is a way to do it for EC2 instance on this link. Do we have a way to create S3 bucket using existing IAM role via ...

1
2 3 4 5