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

Value "0" interpreted as empty #4718

Closed
jangrewe opened this issue Jan 18, 2016 · 4 comments
Closed

Value "0" interpreted as empty #4718

jangrewe opened this issue Jan 18, 2016 · 4 comments

Comments

@jangrewe
Copy link

I'm trying to use a AutoScaling Schedule to shut down a couple of instances during the night, but setting

resource "aws_autoscaling_schedule" "infra-down" {
[...]
    min_size = "0"
    max_size = "0"
    desired_capacity = "0"
}

gives me an error that i need to set at least one of the values. If i then set max_size to 1, it is also used as desired_capacity, which results in 1 instance staying up.
So it doesn't matter if i use "0" or 0 (without quotes), it's always "empty".

@stack72
Copy link
Contributor

stack72 commented Jan 18, 2016

hi @jangrewe this has been reported in #4690 so we should track the issue there and avoid the duplicate if that's ok?

@jangrewe
Copy link
Author

sure, sorry! =)

@stack72
Copy link
Contributor

stack72 commented Jan 18, 2016

Nothing to apologise for at all :) Just wanted to make you aware of the issue already being tracked so that you don't feel your issue is being over looked 👍

@ghost
Copy link

ghost commented Apr 28, 2020

I'm going to lock this issue 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 similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants