Difference between revisions of "Terraform: resource"

From wikieduonline
Jump to navigation Jump to search
 
(57 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
* https://www.terraform.io/docs/language/resources/index.html
 
* https://www.terraform.io/docs/language/resources/index.html
 +
* Syntax: https://www.terraform.io/docs/language/resources/syntax.html
 +
* Naming convention: https://cloud.google.com/docs/terraform/best-practices-for-terraform#naming-convention
  
 
+
== [[AWS provider]] ==
== AWS provider ==
+
  resource "[[aws_instance]]" "my_app_server" {
  resource "[[aws_instance]]" "app_server" {
 
 
   ami          = "ami-08d70e59c07c61a3a"
 
   ami          = "ami-08d70e59c07c61a3a"
 
   instance_type = "t2.[[micro]]"
 
   instance_type = "t2.[[micro]]"
Line 11: Line 12:
 
   }
 
   }
  
* [[Terrafrom resource: aws_instance]]
+
* [[Terraform AWS resources]]
* [[Terraform resource: aws_key_pair]]
+
 
 +
== Resources ==
 +
* [[Terraform AWS|AWS]]
 +
** <code>[[Terraform resource: aws_instance|aws_instance]]</code>
 +
** <code>[[Terraform resource: aws_key_pair|aws_key_pair]]</code>
 +
** <code>[[aws_lb_listener_rule]]</code>
 +
** <code>[[aws_security_group]]</code>
 +
** <code>[[Terraform resource: aws_db_instance|aws_db_instance]]</code>
 +
* <code>[[source (Terraform modules)|source]]</code>
 +
* <code>[[multispace_run]]</code>
 +
* <code>[[Terraform resource: random string|random_string]]</code>
 +
* <code>[[local_file]]</code>
 +
* <code>[[null_resource]]</code>
 +
* <code>[[aws_ecs_service]]</code>
 +
 
 +
== Errors ==
 +
* <code>[[Error: Missing name for resource]]</code>
  
==Related terms==
+
== Related terms ==
* [[Terraform]]: [[Terraform modules]]
+
* [[Terraform modules]]
* <code>[[aws_lb_listener_rule]]</code>
+
* [[Terraform data sources]]: <code>[[data.]]</code>
* <code>[[terraform plan]]</code>
+
* [[Terraform provider]]
 
* <code>[[terraform import]]</code>
 
* <code>[[terraform import]]</code>
 +
* <code>[[gitlab_deploy_token]]</code>
 +
* <code>[[terraform show (grep resource)]]</code>
 +
* <code>[[~]], [[versions.tf]]</code>
 +
* <code>resources = [ "*" ]</code>
 +
* <code>[[.name]]</code>
 +
* <code>[[aws-nuke]]</code>
 +
* <code>[[aws_network_interface]]</code>
  
 
== See also ==
 
== See also ==
* {{terraform cmd}}
+
* {{tf ec2}}
* {{Terraform}}
+
* {{Terraform aws data sources}}
 +
* {{terraform aws resources}}
 +
* {{terraform resources}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 09:34, 7 February 2024

Advertising: