I want to create variable number of EC2 instances within my cloudformation template (YAML). I am planning to create a stack for EC2 instance creation and loop the same. I read this is achievable using Troposphere. Can someone help me with a template or example?
Troposhere to loop EC2 instance creation
296 Views Asked by Reshma At
1
There are 1 best solutions below
Related Questions in AMAZON-EC2
- Failed to connect to your instance after deploying mern app on aws ec2 instance when i try to access frontend
- Using Amazon managed Prometheus to get EC2 metrics data in Grafana
- Unable to ping remote websites from an ipV6 only ubuntu ec2 Instance
- Unable to install mysql on Amazon Linux 2023
- AWS Elastic Beanstalk - Deployment Issues with Flask backend (React frontend already deployed with S3 and Cloudfront)
- AWS ECS agent does not start in EC2 instance
- Moving a website from a subdomain to the domain root
- Switch to Cloudfront CDN causing issues for small number of users
- Selenium parser
- ReadTimeout error when downloading images on AWS EC2 but not locally
- Iam not able to login to bastion server-permission denied error
- No GPU EC2 instances associated with AWS Batch
- Django Deployment on AWS EC2 with Docker Compose: Seeking Advice on Security, Scalability, and Best Practices
- How to host a react and django application on ec2
- Connection services in different containers in the same ec2 instance
Related Questions in AWS-CLOUDFORMATION
- How to set custom Origin Name in AWS CDK for CloudFront
- Error when creating cedar template-linked policy using CloudFormation
- AWS Cloudformation: InvalidTemplateException `Every Condition member must be a string.`
- AWS lambda calling two differents SNS mixed up account ids
- How to reuse a created resource in CloudFormation
- aws :: cloudformation :: possibilities to get current userID
- Cloudformation template for creating an emr cluster with imdsv2
- Need CloudFormation Guard to skip any lines starting with !Ref when scanning Managed Policies
- AWS Cloudformation stack creation failure
- Working on a cloudformation template which creates instances in public and private subnet instances in public sub needs to call api from private
- Using CloudFormation Output as Fn::ForEach collection
- How to access cross account resources through AWS Cloudformation
- Iterating over a file in Serverless Framework
- Validation error ApiGatewayMethodProxyVarGet: expected type: Boolean, found: JSONObject in AWS CloudFormation
- AWS CDK use `dependsOn` across different .yaml templates
Related Questions in TROPOSPHERE
- Calculate mean for variables in txt files
- Invalid / Unmodifiable / Unsupported DB Parameter: time_zone gives cloud-formation
- Invalid iops to storage (GB) ratio for engine name aurora-postgresql and storage type aurora
- Is there anyway to use try/catch in troposphere?
- Is there any workaround to use if statement in troposphere templates?
- TargetGroup object does not support attribute TargetGroupAttribute
- How to update the SSL negotiation policy in using the Troposhpere framework for an AWS classic load balancer 443 listener
- Troposphere DynamoDB TimeToLiveSpecification
- How to install troposphere for python3?
- AWS::ECS::Cluster object does not support attribute CapacityProviders
- Associating CloudWatch Alarm with MetricFilter using Troposphere
- Template validation error: invalid template resource property
- Import bash script as UserData in AWS CFN template using Troposphere
- Hi , i have written a code to create CloudFormation template using troposphere Getting Syntax error while running the code
- How to add OriginAccessIdentity to AWS S3 Bucket Policy using troposphere
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Write the below into a class you can reuse for each instance.
https://github.com/cloudtools/troposphere/blob/master/examples/EC2InstanceSample.py