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

credit_specification should be updateable on new resources (T3 version) #5651

Closed
myoung34 opened this issue Aug 22, 2018 · 10 comments · Fixed by #5805
Closed

credit_specification should be updateable on new resources (T3 version) #5651

myoung34 opened this issue Aug 22, 2018 · 10 comments · Fixed by #5805
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@myoung34
Copy link
Contributor

myoung34 commented Aug 22, 2018

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

All

Affected Resource(s)

  • aws_launch_configuration
  • aws_instance

Terraform Configuration Files

n/a

Debug Output

n/a

Panic Output

n/a

Expected Behavior

Able to disable unlimited feature for t3 instances

Actual Behavior

T3 instances have unlimited enabled

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@bflad
Copy link
Contributor

bflad commented Aug 22, 2018

Hi @myoung34 👋

Can you please provide more details about this issue? According to the T3 instance product documentation:

T3 instances start in Unlimited mode by default

@bflad bflad added the service/ec2 Issues and PRs that pertain to the ec2 service. label Aug 22, 2018
@bflad
Copy link
Contributor

bflad commented Aug 22, 2018

Related? #5654 If so, we should consolidate tracking to that issue since it details the problem.

@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label Aug 22, 2018
@myoung34
Copy link
Contributor Author

I think mine is more to do with the fact that if you configure an autoscaling group with t3 types there's no way to disable Unlimited. Is there a better ticket to apply this to?

@myoung34 myoung34 changed the title credit_specification should not be updated on new resources (T3 version) credit_specification should be updateable on new resources (T3 version) Aug 27, 2018
@myoung34
Copy link
Contributor Author

@bflad I updated the description better
Basically for an ASG of type t3 its impossible currently to disable Unlimited credit specification

@garethsaxby
Copy link

I think I'm getting something very, very similar to the behaviour described here, if not identical; I've not had it with an ASG though. It's not quite the same as #5654 although it could well be a common cause between the two.

What is happening is that when you perform an initial terraform apply, it doesn't respect the credit_specification and sets the server to the unlimited specification; it is however successfully applied on a second apply.
The initial plan itself clearly shows the specification, it just doesn't actually apply it.

Apologies if I'm stepping on any toes; I'm happy to open this as a separate issue but that feels like more noise when this is basically the same problem.

Here's a demonstration of it below;

Terraform Version

$ terraform --version
Terraform v0.11.8
+ provider.aws v1.33.0

Terraform Configuration Files

In ec2_instance.tf:

provider "aws" {
  region = "eu-west-2"
}

resource "aws_instance" "test" {
  ami           = "ami-e1768386"
  instance_type = "t3.micro"

  credit_specification {
    cpu_credits = "standard"
  }
}

Execution/Debug Output

https://gist.github.com/garethsaxby/14903fb6912de57291aed4faeed1161a

@saravanan30erd
Copy link
Contributor

saravanan30erd commented Sep 6, 2018

Related #5654
@garethsaxby yes, looks like credit_specification will be applied only for t2 instances(during creation) as other type will not support this(now t3 included). I will work on it.

@bflad
Copy link
Contributor

bflad commented Sep 18, 2018

The fix for this has been merged into master for the aws_instance resource and will release with version 1.37.0 of the AWS provider, likely tomorrow.

@bflad bflad added this to the v1.37.0 milestone Sep 18, 2018
@bflad bflad added bug Addresses a defect in current functionality. and removed waiting-response Maintainers are waiting on response from community or contributor. labels Sep 18, 2018
@bflad
Copy link
Contributor

bflad commented Sep 19, 2018

This has been released in version 1.37.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@myoung34
Copy link
Contributor Author

myoung34 commented Dec 4, 2018

@bflad what about launch configurations?

@ghost
Copy link

ghost commented Apr 2, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants