Information about single Outpost Instance Type.
data "aws_outposts_outpost_instance_type" "example" {
arn = data.aws_outposts_outpost.example.arn
preferred_instance_types = ["m5.large", "m5.4xlarge"]
}
resource "aws_ec2_instance" "example" {
# ... other configuration ...
instance_type = data.aws_outposts_outpost_instance_type.example.instance_type
}
The following arguments are required:
arn
- (Required) Outpost ARN.The following arguments are optional:
instance_type
- (Optional) Desired instance type. Conflicts with preferred_instance_types
.preferred_instance_types
- (Optional) Ordered list of preferred instance types. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. Conflicts with instance_type
.This data source exports the following attributes in addition to the arguments above:
id
- Outpost identifier.