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

0.6.7- No tags applying on aws_spot_instance_request #4057

Closed
stolinzeev opened this issue Nov 25, 2015 · 4 comments
Closed

0.6.7- No tags applying on aws_spot_instance_request #4057

stolinzeev opened this issue Nov 25, 2015 · 4 comments

Comments

@stolinzeev
Copy link

provider "aws" {
  access_key = "${var.access_key}"
  secret_key = "${var.secret_key}"
  region = "eu-west-1"
}

resource "aws_spot_instance_request" "server" {
  ami = "xxxxxxx"
  instance_type = "m3.large"
  spot_price = "0.3"
  wait_for_fulfillment = true
  key_name = "xxxxxxxx"
  iam_instance_profile = "xxxxxxx"
  security_groups = [
    "xxxxxxx"
  ]
  user_data = "${file("xxxxxxxxxxxxx.txt")}"

  tags {
    Name = "xxxxxxxx"
  }
}
resource "aws_route53_record" "server" {
  zone_id = "Z3B9RV5H90BA7G"
  name = "xxxxxxxx"
  type = "CNAME"
  ttl = "60"
  records = ["${aws_spot_instance_request.server.public_dns}"]
}
@baskaran-md
Copy link

As far as I tested, these tags will be applied only on the spot requests, and not the actual instances created by these spot requests.

Probably, terraform needs to apply the same tags to those instances launched by spot requests.

@baskaran-md
Copy link

Duplicate of Issue #3263

@phinze
Copy link
Contributor

phinze commented Jan 6, 2016

Closing as dup of #3263

@phinze phinze closed this as completed Jan 6, 2016
@ghost
Copy link

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

No branches or pull requests

4 participants