Questions tagged [aws-cloudformation]

The tag has no usage guidance.

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

How to pass terraform locals variables into AWS resource template body

I am trying to apply aws conformance pack to my aws account using terraform. I am using the sample aws config rules in cloudformation syntax provided in the awslabs repository. Now from an example ...
George Udosen's user avatar
1 vote
0 answers
40 views

AWS Cloudformation with AWS SAM cli - is it possible to rollback?

After updating a cloudformation stack via sam build, sam package and sam deploy is it possible to rollback to the previous configuration? My use case I've set up a Gitlab project with the ...
fudo's user avatar
  • 141
0 votes
0 answers
19 views

Cloudformation automatic calculation values

I have a Cloudformation template and in this template the customer selects the instance type they want according to the load. I wondered if there is something I can have this calculated automatically. ...
MrTux01's user avatar
  • 109
2 votes
0 answers
32 views

AWS Cloudformation - managing multiple stages versioning and deployment

I'm working on a simple cloudformation stack for a web app (some lambda functions, api gateway, cloudfront distribution, etc). The cloudformation stack template is currently versioned on a gitlab ...
fudo's user avatar
  • 141
0 votes
0 answers
42 views

simplest way to trigger my AWS cloudformation(cdk) if my github action finished(publish.yml)

long story short , I have a react js app that I build and upload to s3 with github actions. I tried with aws cloudbuild but it only offers me the default hooks which doesn't wait for my github action ...
Johji's user avatar
  • 101
1 vote
0 answers
37 views

Proper separation of IaC and code deployment via CI / CD

We're about to implement infrastructure-as-code on our project. We already have CI/CD pipelines that deploy: A CloudFormation stack for an ECS service Several CloudFormation stacks for AWS lamdbas (...
DmytroL's user avatar
  • 111
0 votes
1 answer
230 views

How to find logs when submitting resource type to Cloudformation Registry?

I am developing a private resource type for AWS Cloudformation Registry. I have designed my model schema and developed my handler code, submitted it, and even successfully deployed a stack with my ...
user981231237's user avatar
0 votes
1 answer
682 views

Cloudformation template with EC2 using docker compose

I'm relatively new to Cloudformation, and had a few questions about my template and best practices. I'm facing a few hurdles, and there is a lot of information out there, it's a bit overwhelming, so ...
kvnam's user avatar
  • 101
0 votes
0 answers
532 views

AWS Cloudformation: How generate create dynamic parameters value?

Can you explain to me how to dynamically generate parameters? In this example I want to generate a dynamic PrivateIpAddress parameter. { "AWSTemplateFormatVersion" : "2010-09-09",...
seikida's user avatar
  • 101
1 vote
1 answer
245 views

How to avoid disclosing account ID in AWS ARN

I'm new to the AWS ecosystem and have what might be a naive question. While trying to create a GlueRunner Lambda stack with CloudFormation (using pynt), from the Cloud9 shell of an account with all ...
strangeloop's user avatar
1 vote
1 answer
830 views

CDK: How to solve chicken and egg problem of Lambda backed with ECR

In CDK, if I have something like this: const repository = new ecr.Repository(this, 'SomeRepository', { repositoryName: 'SomeRepository', }); const lambda = new lambda.DockerImageFunction(this, '...
synic's user avatar
  • 113
1 vote
1 answer
246 views

How to add a wait condition when creating IAM entities

I'm working on a template that allows to create a user, tag it, and add it to any groups, add any roles, managed policies and in-line policies if needed: ## =================== VERSION ================...
solr's user avatar
  • 121
2 votes
3 answers
888 views

Does it make sense to create CloudFormation Stack using Terraform?

I am not very familiar with AWS, but I know the basics. So please forgive me for any newbie mistakes in the question. I am trying to integrate our AWS accounts with a vendor app. The vendor has ...
Sreeraj's user avatar
  • 121
0 votes
2 answers
808 views

Export CloudFormation file from CDK

Since I've seen Hashicorp Terraform, I have been wondering why the "plan" it can export has binary format. Now in the AWS world you have got a declarative configuration language called ...
Ta Mu's user avatar
  • 6,802
0 votes
1 answer
50 views

Issue with cloudformation in target groups and ASG

I am trying to use cloudformation to setup a ASG and I have a target group which I would like to associate with the ASG. The target group is created okay but when I go to attach it to the ASG I get an ...
Turnip's user avatar
  • 63
1 vote
1 answer
764 views

`UnauthorizedResourceAccessException` when calling `aws workdocs create-user`

When calling aws workdocs create-user, I'm getting UnauthorizedResourceAccessException or UnauthorizedOperationException. I believe I have all of the permissions required. What could be causing this?...
claytond's user avatar
  • 121
0 votes
0 answers
3k views

SQS Error Message: The specified queue does not exist for this wsdl version

I have a Lambda function that is created inside a serverless framework setup. I am trying to pass in a queue url as an ENV variable, when I do that it results in the below error message. I've checked ...
joshk132's user avatar
  • 465
1 vote
2 answers
1k views

Cloudformation issue with target groups and ASG

I am trying to use cloudformation to setup a ASG and I have a target group which I would like to associate with the ASG. The target group is created okay but when I go to attach it to the ASG I get an ...
joshk132's user avatar
  • 465
0 votes
1 answer
1k views

Cloudformation YAML not well-formed

I have a cloud formation template that I want to import some values from another template. Currently the other template exports a string by joining together an array (better way of doing this?). In ...
joshk132's user avatar
  • 465
3 votes
1 answer
575 views

How to set 'image tag mutability' using CloudFormation?

When one would like to create an Elastic Container Registry then it is possible to set 'image tag mutability': Image tag mutability The image tag mutability setting for the repository. Select "...
030's user avatar
  • 13.1k
0 votes
1 answer
53 views

How to get started with CloudFormation? [closed]

There is an official website and there are multiple ways to learn CloudFormation. Just curious what worked best for you.
030's user avatar
  • 13.1k
1 vote
1 answer
176 views

API Gateway - How Deploy API works?

After creating API Gateway with two API names and integrating with lambda function, AWS documentation recommends to deploy this API, as shown below: 1) What does deploy API mean? How creating API ...
overexchange's user avatar
2 votes
1 answer
173 views

Get available CIDRs from existing VPC

I'm writing a few templates to create a stack on demand. Because of the concurrent VPC limitations (5 to start), I'm attempting to create all the feature-based dev environments on a single VPC and ...
Manatax's user avatar
  • 143
1 vote
1 answer
56 views

How to fail stack when EC2 spot is refused?

I'm using AWS Cloudformation to create EC2 spot instance (with block duration). In order to do this in cloudformation I'm using a Launch Template where spot configuration is set. Then my ...
Maxime C's user avatar
0 votes
1 answer
150 views

AWS Automation Document Run Steps Against Different Servers Targeted By Tag

As the title describes I want to execute a step against a resource, but I want to specify that resource not by resource id but by tags, I have tried with the below example, but it doesn't work. What ...
Daniel Johns's user avatar
1 vote
1 answer
827 views

Ansible cloudformation vs cloudformation

I would like to know the difference between - AWS cloudformation - Make AWS cloudformation template through Ansible (https://docs.ansible.com/ansible/latest/modules/cloudformation_module.html) I ...
mgg's user avatar
  • 111
1 vote
1 answer
33 views

Practical reasons for 200 limit of AWS resources in CF templates

Not sure I get it. If my service layer is completely maintainable, indepedent services and very easy to maintain taking only a few minutes to deploy and has no bugs, AWS still won't let me deploy it ...
Niklas Rosencrantz's user avatar
2 votes
0 answers
176 views

Jenkins - IBM UrbanCode - AWS & Azure cloud [closed]

For continuous delivery, we do manual deployment after generating binary artifacts from Jenkins pipeline(in an automated process). Further, for continuous deployment, we would like to use IBM ...
overexchange's user avatar
0 votes
1 answer
92 views

Are there dialects of YAML or just differences in parsing it?

We use YAML in several frameworks to define types and structures for our deployments. I read an article about why some people don't like YAML and they stated that the parsing of YAML is very different ...
Niklas Rosencrantz's user avatar
1 vote
1 answer
193 views

AWS Cloudformation: Callback only for CREATE_COMPLETE or CREATE_FAILED of entire stack

I am creating a CF stack; I have been using the --notification-arns flag of aws cloudformaction create-stack to send notifications to an email topic; however this produces a huge amount of spam, ...
pkaramol's user avatar
  • 967
1 vote
1 answer
88 views

Where to state CFT dependencies

With AWS, why can't I just state in the cloudformation template which dependencies I need? Right now I need to add the dependencies automatically in an accompanying script during our gitlab pipeline. ...
Niklas Rosencrantz's user avatar
0 votes
1 answer
68 views

How can I get the first part of the API Deployment URL from inside cloud formation template?

https://u1i7vf9mnl.execute-api.us-west-1.amazonaws.com/v1 How can I get the u1i7vf9mnl portion of the URL from inside of the cloudformation template as a Ref or Fn::GetAtt or some other way?
Dr. Chocolate's user avatar
7 votes
1 answer
6k views

How can I use a local file for a nested Cloudformation stack?

How and is it possible to use a local file for a CloudFormation stack besides an S3 bucket?
Dr. Chocolate's user avatar
8 votes
2 answers
903 views

Best way to launch 100 identical Docker machines on AWS?

I need to do some large scale testing on a system. The system consists of 2 main parts: Manager and Nodes. There will be only one manager server, but 100 nodes. Both the manager and nodes are Docker ...
Trolley's user avatar
  • 183
1 vote
2 answers
5k views

Always execute post statement in a jenkins pipeline when a conditional statement is met

Although it seems counterintuitive, I would like to execute an always statement when a conditional is met. In my pipeline, my post statement should always destroy my AWS CloudFormation Stack if a ...
Preston Martin's user avatar
  • 3,218