Difference between revisions of "Terraform: resource"
Jump to navigation
Jump to search
(70 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
+ | * 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]] == | ||
+ | resource "[[aws_instance]]" "my_app_server" { | ||
+ | ami = "ami-08d70e59c07c61a3a" | ||
+ | instance_type = "t2.[[micro]]" | ||
+ | |||
+ | tags = { | ||
+ | Name = "ExampleAppServerInstance" | ||
+ | } | ||
− | * | + | * [[Terraform AWS resources]] |
− | + | ||
− | * [[ | + | == 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 == | ||
+ | * [[Terraform modules]] | ||
+ | * [[Terraform data sources]]: <code>[[data.]]</code> | ||
+ | * [[Terraform provider]] | ||
+ | * <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 == | ||
+ | * {{tf ec2}} | ||
+ | * {{Terraform aws data sources}} | ||
+ | * {{terraform aws resources}} | ||
+ | * {{terraform resources}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 09:34, 7 February 2024
- 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[edit]
resource "aws_instance" "my_app_server" { ami = "ami-08d70e59c07c61a3a" instance_type = "t2.micro" tags = { Name = "ExampleAppServerInstance" }
Resources[edit]
Errors[edit]
Related terms[edit]
- Terraform modules
- Terraform data sources:
data.
- Terraform provider
terraform import
gitlab_deploy_token
terraform show (grep resource)
~, versions.tf
resources = [ "*" ]
.name
aws-nuke
aws_network_interface
See also[edit]
- Terraform EC2 resources:
aws_instance, aws_ebs_volume, aws_volume_attachment, aws_ec2_tag
, Terraform module:ec2-instance
,ebs_block_device
,argument/input
- AWS Data sources:
aws_region
,aws_vpc
,aws_caller_identity
,aws_availability_zones
,aws_eip
,aws_flow_log
,template_file, aws_ami
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
- Terraform resources, Terraform providers, Terraform provisioner,
random_password, random_string, null_resource
Advertising: