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: adds the ability to apply tags to spot request instances #8515

Conversation

richardbowden
Copy link
Contributor

Fixes #3263

adds the ability to tag instances that are created by spot instance requests

id := d.Id()

// Check for a Spot Instance Requests as it requires special
// handeling, the tagging process will tag the spot request it self
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo.

@kwilczynski
Copy link
Contributor

@richardbowden thank you!

Would you be able to add acceptance tests? So that we can ensure that the tags are being set and things hold water?

@richardbowden
Copy link
Contributor Author

@kwilczynski will make the changes mentioned :), will also get some tests done

@richardbowden richardbowden changed the title adds the ability to apply tags to spot request instances [WIP] adds the ability to apply tags to spot request instances Aug 30, 2016
@richardbowden
Copy link
Contributor Author

tagging code paths are tested in two ways, the original path will be tested as before using the existing resource types that test tags, for example TestAccAWSInstance_tags which is located in /github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_instance_test.go. Tagging for spot instance requests and the actual instance created are tested in github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_spot_instance_request_test.go

@richardbowden richardbowden changed the title [WIP] adds the ability to apply tags to spot request instances adds the ability to apply tags to spot request instances Aug 31, 2016
@richardbowden richardbowden changed the title adds the ability to apply tags to spot request instances provider/aws: adds the ability to apply tags to spot request instances Sep 1, 2016
@richardbowden
Copy link
Contributor Author

@stack72 hey, just checking to see if anything else needs to be done for this PR ? Happy to do more

Richard Bowden and others added 3 commits December 1, 2016 22:59
changes setTags to the entry point for tagging, this looks for a spot request, but cloud look for others if needed, extracts the instance id from the sport request and passes it to setTagsActual, if not a spot request things work as before
@richardbowden
Copy link
Contributor Author

richardbowden commented Oct 11, 2017 via email

@apparentlymart
Copy link
Contributor

Hello @richardbowden, and thanks for working on this!

As part of the the Terraform 0.10 release earlier this year, all of the Terraform providers were moved to their own repositories in the terraform-providers GitHub organization, and removed from the Terraform Core repository.

Unfortunately due to the fact that new issues and pull requests are being opened constantly, it was not possible for the various provider maintainers to merge all outstanding pull requests before this split, and there is no automatic way to migrate a pull request to a new repository.

As a result, this pull request can sadly no longer be applied as-is, and so I'm going to close it.

If you or someone else has the time and motivation to apply same changes to the aws provider repository and open a new PR there, the maintainers of that provider should be able to review and merge it.

Thanks again for working on this, and sorry it was not able to be merged before the provider repository changes.

@ghost
Copy link

ghost commented Apr 6, 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 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_spot_instance_request tags won't apply to instance
4 participants