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

provider/aws: support ec2 termination protection #1988

Merged
merged 1 commit into from
May 15, 2015

Conversation

phinze
Copy link
Contributor

@phinze phinze commented May 15, 2015

closes #1233

@mitchellh
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this style

@phinze
Copy link
Contributor Author

phinze commented May 15, 2015

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.

@phinze
Copy link
Contributor Author

phinze commented May 15, 2015

Failure is unrelated, merging through it so I don't leave this dangling.

phinze added a commit that referenced this pull request May 15, 2015
provider/aws: support ec2 termination protection
@phinze phinze merged commit 03599e3 into master May 15, 2015
@phinze phinze deleted the f-aws-ec2-termination-protection branch May 15, 2015 19:28
ami = "ami-4fccb37f"
instance_type = "m1.small"
subnet_id = "${aws_subnet.foo.id}"
disable_api_termination = %t

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?

Copy link
Contributor Author

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 👍

@ghost
Copy link

ghost commented Apr 27, 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 27, 2020
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.

Support for EC2 termination protection option
4 participants