Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 'One of launch_configuration, launch_template, or mixed_instance must be set for an Auto Scaling Group' #41

Conversation

federicogatti
Copy link
Contributor

Description

Executing terraform apply in the example-complete folder you will receive a message error likes

╷
│ Error: One of `launch_configuration`, `launch_template`, or `mixed_instances_policy` must be set for an Auto Scaling Group
│
│   with module.asg.aws_autoscaling_group.this[0],
│   on .terraform/modules/asg/main.tf line 309, in resource "aws_autoscaling_group" "this":
│  309: resource "aws_autoscaling_group" "this" {
│
╵

Motivation and Context

This commit will solve the message error.

Consulting Auto Scaling Module Reference I have used conditional creation for autoscaling group and launch configuration

Breaking Changes

There aren't breaking changes

How Has This Been Tested?

I have tested and validated these changes using executing terraform apply in complete-ecs examples folder.

Tested with Terraform v0.15.3

…s_policy must be set for an Auto Scaling Group' message error

Signed-off-by: Federico Gatti <[email protected]>
@antonbabenko antonbabenko merged commit aff3eb8 into terraform-aws-modules:master May 7, 2021
@antonbabenko
Copy link
Member

Thank you!

v3.1.0 has been just released.

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants