mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: Add Tags to Test AMIs to help debug leaks
This commit is contained in:
parent
dd0ec5258b
commit
5add35d654
@ -147,6 +147,9 @@ resource "aws_instance" "test" {
|
|||||||
// one snapshot in our created AMI.
|
// one snapshot in our created AMI.
|
||||||
ami = "ami-408c7f28"
|
ami = "ami-408c7f28"
|
||||||
instance_type = "t1.micro"
|
instance_type = "t1.micro"
|
||||||
|
tags {
|
||||||
|
Name = "testAccAWSAMIFromInstanceConfig_TestAMI"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_ami_from_instance" "test" {
|
resource "aws_ami_from_instance" "test" {
|
||||||
|
@ -1045,6 +1045,9 @@ resource "aws_instance" "foo" {
|
|||||||
ami = "ami-408c7f28"
|
ami = "ami-408c7f28"
|
||||||
instance_type = "t1.micro"
|
instance_type = "t1.micro"
|
||||||
key_name = "${aws_key_pair.debugging.key_name}"
|
key_name = "${aws_key_pair.debugging.key_name}"
|
||||||
|
tags {
|
||||||
|
Name = "testAccInstanceConfigKeyPair_TestAMI"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user