-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: support ec2 termination protection #1988
Conversation
Weird double negative weirdness here. I see its the API field name... but ugh. LGTM |
@@ -629,6 +674,27 @@ resource "aws_instance" "foo" { | |||
} | |||
` | |||
|
|||
func testAccInstanceConfigDisableAPITermination(val bool) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this style
Yeah agreed, decided to take the "throw up your hands and map it through" approach and link the AWS docs right away. I figure trying to make it clearer at TF layer will only cause sad edge cases of major confusion. |
Failure is unrelated, merging through it so I don't leave this dangling. |
provider/aws: support ec2 termination protection
ami = "ami-4fccb37f" | ||
instance_type = "m1.small" | ||
subnet_id = "${aws_subnet.foo.id}" | ||
disable_api_termination = %t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to understand %t
in this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just boolean interpolation in Sprintf
👍
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. |
closes #1233