github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/lightsail_static_ip_attachment.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_lightsail_static_ip_attachment"
     4  sidebar_current: "docs-aws-resource-lightsail-static-ip-attachment"
     5  description: |-
     6    Provides an Lightsail Static IP Attachment
     7  ---
     8  
     9  # aws\_lightsail\_static\_ip\_attachment
    10  
    11  Provides a static IP address attachment - relationship between a Lightsail static IP & Lightsail instance.
    12  
    13  ~> **Note:** Lightsail is currently only supported in `us-east-1` region.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  resource "aws_lightsail_static_ip_attachment" "test" {
    19    static_ip_name = "${aws_lightsail_static_ip.test.name}"
    20    instance_name = "${aws_lightsail_instance.test.name}"
    21  }
    22  
    23  resource "aws_lightsail_static_ip" "test" {
    24    name = "example"
    25  }
    26  
    27  resource "aws_lightsail_instance" "test" {
    28    name              = "example"
    29    availability_zone = "us-east-1b"
    30    blueprint_id      = "string"
    31    bundle_id         = "string"
    32    key_pair_name     = "some_key_name"
    33  }
    34  ```
    35  
    36  ## Argument Reference
    37  
    38  The following arguments are supported:
    39  
    40  * `static_ip_name` - (Required) The name of the allocated static IP
    41  * `instance_name` - (Required) The name of the Lightsail instance to attach the IP to
    42  
    43  ## Attributes Reference
    44  
    45  The following attributes are exported in addition to the arguments listed above:
    46  
    47  * `arn` - The ARN of the Lightsail static IP
    48  * `ip_address` - The allocated static IP address
    49  * `support_code` - The support code.