aws_lightsail_static_ip_attachment

Provides a static IP address attachment - relationship between a Lightsail static IP & Lightsail instance.

Example Usage

resource "aws_lightsail_static_ip_attachment" "test" {
  static_ip_name = "${aws_lightsail_static_ip.test.name}"
  instance_name = "${aws_lightsail_instance.test.name}"
}

resource "aws_lightsail_static_ip" "test" {
  name = "example"
}

resource "aws_lightsail_instance" "test" {
  name              = "example"
  availability_zone = "us-east-1b"
  blueprint_id      = "string"
  bundle_id         = "string"
  key_pair_name     = "some_key_name"
}

Argument Reference

The following arguments are supported:

  • static_ip_name - (Required) The name of the allocated static IP
  • instance_name - (Required) The name of the Lightsail instance to attach the IP to

Attributes Reference

The following attributes are exported in addition to the arguments listed above:

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/lightsail_static_ip_attachment.html