5 votes
Accepted

Best way to launch 100 identical Docker machines on AWS?

Look at AWS Fargate - it lets you run your Docker containers without having to spin up the EC2 instances for an ECS cluster. You simply schedule the Tasks (or Services), each gets is own IP address ...
user avatar
  • 971
4 votes

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

I'm afraid you can't. The nested stack files must be in S3 as far as I know. You have a couple of options: Have some automation in place (e.g. aws-cli + shell script, or better ansible) that when ...
user avatar
  • 971
3 votes
Accepted

How to set 'image tag mutability' using CloudFormation?

The ImageTagMutability property in ECR is not currently supported in CloudFormation, as verified by experimentation (nor is it part of the LifecyclePolicy property). There is sometimes lag between ...
user avatar
  • 201
2 votes
Accepted

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

Did you try the variable ServerlessRestApi? It works for us like this: Outputs: EncryptURL: Description: "Encrypt endpoint URL for Stage environment" Value: !Sub "https://${...
user avatar
2 votes

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

According to the documentation, the when directive is only allowed inside a stage. You have to use the script directive if you want to use conditional statements: post { always { script { ...
user avatar
  • 706
2 votes
Accepted

Practical reasons for 200 limit of AWS resources in CF templates

The 200 limit can be raised, however this is a grinding process that can take months. You work through customer support to get "elevated" as a client to more AWS privileges. Resources: - Worked under ...
user avatar
2 votes
Accepted

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

There is only one YAML spec. That would lead me to say "There are no YAML dialects". There are certainly differences in implementation, perhaps due to what the article claims as the spec's ambiguity: ...
user avatar
  • 3,058
2 votes
Accepted

How to get started with CloudFormation?

Linux Academy has many great courses on CloudFormation as well as other AWS and DevOps tools and services. They also have many guided labs where you will be given hands on guided learning of how to ...
user avatar
  • 2,993
2 votes

API Gateway - How Deploy API works?

1.) Create API (create-rest-api from the cli) simply creates the API Gateway resource, but it does not create the method, stage, authorizer, etc. for your API Gateway. Deploy API (create-deployment ...
user avatar
  • 2,993
1 vote
Accepted

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

You can use DockerImageAsset to initialize ECR with a base image like scratch or alpine, or even the most basic lambda container that would get your lambda function to execute. https://docs.aws.amazon....
user avatar
  • 345
1 vote

How to add a wait condition when creating IAM entities

It turns out I was doing it wrong due to me being new to CloudFormation. For anyone else looking into how to attach both managed and inline policies to a user at the moment of user creation, this is ...
user avatar
  • 121
1 vote

Does it make sense to create CloudFormation Stack using Terraform?

Initially, I though no it does not make sense to use Terraform to create the infra structure to run Cloud Formation script to do create resources you can do using Terraform. If you are experience in ...
user avatar
1 vote
Accepted

Issue with cloudformation in target groups and ASG

As the error message states, TargetGroupARNs value should be of type List. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html#cfn-as-group-targetgrouparns
user avatar
  • 26
1 vote

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

While the WorkDocs API describes create-user as creating a user in the Directory Service (and does), it also activates the user as a WorkDocs user. As a result, it can only be called when the ...
user avatar
  • 121
1 vote

Cloudformation issue with target groups and ASG

Resources: ...
user avatar
  • 11
1 vote

Cloudformation YAML not well-formed

The split function returns a list of strings. I believe encapsulating the function in a list is what is giving you the error. Have you tried removing the brackets around the split function? Something ...
user avatar
  • 2,993
1 vote

Get available CIDRs from existing VPC

Don't worry about putting each stack in its own set of subnets, that's an overkill. Simply make the resources' Security Groups refer to other SGs in your stack templates and not to subnet CIDRs. ...
user avatar
  • 971
1 vote

How to fail stack when EC2 spot is refused?

You should use TimeoutDurationMinutes in your code while requesting for spot instances via cloudformation. For more details: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-...
user avatar
  • 951
1 vote

Ansible cloudformation vs cloudformation

You wouldn't need to use Ansible for AWS cloudformation if you are fine with just using AWS cloudformation. Ansible integrated AWS cloudformation so that you can convert your local Ansible files into ...
user avatar
1 vote

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

I believe, alternatively, you could use CloudTrail+CloudWatch rules, but then you will get CREATE_STACK events for all stacks Here is some information about that: https://docs.aws.amazon.com/...
user avatar
1 vote
Accepted

Where to state CFT dependencies

This is a matter of implementation details and it's actually coming from the AWS Lambda product's implementation (which the doc you linked refers to), not from the Cloud Formation itself. Presently ...
user avatar
1 vote

Best way to launch 100 identical Docker machines on AWS?

Why don't you use Terraform for the purpose? It can launch as many instances you want, create network for you, create security groups, ECS, IAMs or whatever you want to create and terminate easily ...
user avatar
  • 243

Only top scored, non community-wiki answers of a minimum length are eligible