Difference between revisions of "Terraform resource: aws eip"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
<code>[[aws_eip]]</code><ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eip</ref>
 
<code>[[aws_eip]]</code><ref>https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eip</ref>
  
== Example ==
+
== Examples ==
 
  resource "aws_eip" "my_instance_ip" {
 
  resource "aws_eip" "my_instance_ip" {
 
   instance = aws_instance.my_instance.id
 
   instance = aws_instance.my_instance.id
 +
}
 +
 +
=== Official example ===
 +
resource "aws_eip" "lb" {
 +
  instance = aws_instance.web.id
 +
  domain  = "vpc"
 
  }
 
  }
  

Revision as of 10:45, 20 June 2023

Advertising: