Provides a static IP address attachment - relationship between a Lightsail static IP & Lightsail instance.
Note: Lightsail is currently only supported in a limited number of AWS Regions, please see "Regions and Availability Zones in Amazon Lightsail" for more details
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" }
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 The following attributes are exported in addition to the arguments listed above:
arn
- The ARN of the Lightsail static IP ip_address
- The allocated static IP address support_code
- The support code.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/lightsail_static_ip_attachment.html