Difference between revisions of "Terraform data sources"
Jump to navigation
Jump to search
(7 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
* https://www.terraform.io/language/data-sources | * https://www.terraform.io/language/data-sources | ||
* https://www.terraform.io/docs/language/data-sources/index.html | * https://www.terraform.io/docs/language/data-sources/index.html | ||
+ | |||
+ | |||
+ | [[data]] "[[aws_ami]]" "example" { | ||
+ | most_recent = true | ||
+ | |||
+ | owners = ["self"] | ||
+ | tags = { | ||
+ | Name = "app-server" | ||
+ | Tested = "true" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
TO_MERGE: [[Terraform: Data sources]] | TO_MERGE: [[Terraform: Data sources]] | ||
Line 9: | Line 23: | ||
[[Terraform AWS data sources|AWS]] | [[Terraform AWS data sources|AWS]] | ||
− | * | + | * {{tf aws data sources TOC}} |
− | + | ||
− | + | ||
− | * [[ | + | [[GCP]] |
+ | * [[google_client_config]] | ||
− | |||
Line 23: | Line 37: | ||
* <code>[[aws_iam_policy_document]]</code> | * <code>[[aws_iam_policy_document]]</code> | ||
* <code>[[aws_partition]]</code> | * <code>[[aws_partition]]</code> | ||
+ | * <code>[[data.]]</code> | ||
+ | * [[Terraform EKS data sources]] | ||
== See also == | == See also == | ||
* {{terraform data sources}} | * {{terraform data sources}} | ||
* {{Terraform resources}} | * {{Terraform resources}} | ||
+ | * {{tf modules}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 15:14, 10 October 2024
Terraform data sources are available since 2016.
- https://www.terraform.io/language/data-sources
- https://www.terraform.io/docs/language/data-sources/index.html
data "aws_ami" "example" { most_recent = true owners = ["self"] tags = { Name = "app-server" Tested = "true" } }
TO_MERGE: Terraform: Data sources
aws_caller_identity
:data "aws_caller_identity" "current" {}
aws_availability_zones
aws_ami
aws_iam_policy_document
aws_vpc
aws_region
:data "aws_region" "current" {}
aws_subnet
aws_subnet_ids
aws_subnets
aws_s3_bucket
aws_ebs_snapshot
Related[edit]
- Terraform resource
aws_availability_zones
aws_caller_identity
aws_iam_policy_document
aws_partition
data.
- Terraform EKS data sources
See also[edit]
- Terraform data sources:
aws_vpc
,template_file
,aws_subnet_ids
,terraform remote state
,aws_eks_cluster
,aws_ami, aws_availability_zones, aws_partition, archive_file
- Terraform resources, Terraform providers, Terraform provisioner,
random_password, random_string, null_resource
- Terraform modules,
terraform get
,module { source }
, AWS modules,module.
, child modules, Terraform modules inputs, submodules,terraform init -upgrade
Advertising: