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

consolidate tag and tags diff during asg update #3533

Closed
wants to merge 1 commit into from

Conversation

enxebre
Copy link
Contributor

@enxebre enxebre commented Feb 26, 2018

Because of #3532:
After importing and applying an asg, Terraform tries to destroy and recreate tags with same values yielding into additional aws permissions needed to manipulate tags, which are not needed for creating the asg.
This consolidates "tag" and "tags" at the time of making the diff to build the payload for the aws request.
Note that this is intended to be an improvement to avoid an unneeded extra aws request, but the root problem in #3532 is still terraform import generated stated always setting tag field even if the config contains tags

@ghost ghost added the size/S Managed by automation to categorize the size of a PR. label Feb 26, 2018
@ghost ghost added the size/S Managed by automation to categorize the size of a PR. label Feb 26, 2018
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/autoscaling Issues and PRs that pertain to the autoscaling service. labels Feb 27, 2018
@aeschright aeschright requested a review from a team June 25, 2019 19:24
@bflad
Copy link
Contributor

bflad commented Jun 24, 2020

Hi @enxebre 👋 Thank you for contributing this and sorry it never got a proper review in the meantime. The Auto Scaling service tags are certainly a pain. 😖

We plan on fixing the aws_autoscaling_group resource tags in two ways:

The combination of these should supersede the intent of this pull request, as #13868 should cover a similar difference collapse and the future deprecation will allow the aws_autoscaling_group resource tagging to behave like all other resources without needing to handle two tagging arguments. Importing and state saving of the tags will only be in the single schema attribute.

Please reach out if you have any questions and thank you again for submitting this.

@bflad bflad closed this Jun 24, 2020
@ghost
Copy link

ghost commented Jul 25, 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 Jul 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/autoscaling Issues and PRs that pertain to the autoscaling service. size/S Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants