Any ideas on how to get ALL of the data for a resources not created via terraform?
This is assuming I do not have filters/ids.
I just want to view all of the instances of a resource (not created via terraform)
If that is not possible, How do I view all the resources with the filter of same tag .
data "aws_eip" "by_tags" {
tags = {
Env = "DEV"
}
}
Terraform errors with
Error: multiple Elastic IPs matched; use additional constraints to reduce matches to a single Elastic IP
Thank you
Sadly you can't do this . You must know something about the EC2 Transit Gateway VPN which you want to find. If not tags
, then maybe its id
, or some values for filter
option.
If you run the data source without any attributes you will get an error, which you are getting.
You can check filters available for transit-gateway-attachment
and see if you can use any of them, instead of name which you don't know.
You can bulk import these existing resources into terraform format with a tool like terraformer .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.