provider/aws: Add Tags to Test AMIs to help debug leaks

This commit is contained in:
clint shryock 2016-06-01 09:09:41 -05:00
parent dd0ec5258b
commit 5add35d654
2 changed files with 6 additions and 0 deletions

View File

@ -147,6 +147,9 @@ resource "aws_instance" "test" {
// one snapshot in our created AMI.
ami = "ami-408c7f28"
instance_type = "t1.micro"
tags {
Name = "testAccAWSAMIFromInstanceConfig_TestAMI"
}
}
resource "aws_ami_from_instance" "test" {

View File

@ -1045,6 +1045,9 @@ resource "aws_instance" "foo" {
ami = "ami-408c7f28"
instance_type = "t1.micro"
key_name = "${aws_key_pair.debugging.key_name}"
tags {
Name = "testAccInstanceConfigKeyPair_TestAMI"
}
}
`