Difference between revisions of "Terraform resource: aws lb target group"
Jump to navigation
Jump to search
↑ https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group
Line 1: | Line 1: | ||
* Terraform resource: <code>aws_lb_target_group</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group</ref> | * Terraform resource: <code>aws_lb_target_group</code> <ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group</ref> | ||
+ | |||
+ | ===Example Instance Target Group=== | ||
+ | <pre>resource "aws_lb_target_group" "test" { | ||
+ | name = "tf-example-lb-tg" | ||
+ | port = 80 | ||
+ | protocol = "HTTP" | ||
+ | vpc_id = aws_vpc.main.id | ||
+ | } | ||
+ | |||
+ | resource "aws_vpc" "main" { | ||
+ | cidr_block = "10.0.0.0/16" | ||
+ | } | ||
+ | </pre> | ||
== See also == | == See also == |
Revision as of 12:36, 8 September 2021
- Terraform resource:
aws_lb_target_group
[1]
Example Instance Target Group
resource "aws_lb_target_group" "test" { name = "tf-example-lb-tg" port = 80 protocol = "HTTP" vpc_id = aws_vpc.main.id } resource "aws_vpc" "main" { cidr_block = "10.0.0.0/16" }
See also
- Terraform AWS: providers, modules, resources
hashicorp/aws
- Terraform AWS resources: IAM, Net, EC2, ECS, ECR, S3, Route53, ACM, CloudWatch, CloudFront SES, RDS, DLM
- Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals:
depends_on
, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type,TF_VAR_, TF_LOG
, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog,tfsec, tflint
, Operators, Expressions:for, splat
, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos
Advertising: