Data Source: awsOutpostsOutpostInstanceType
Information about single Outpost Instance Type.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsOutpostsOutpostInstanceTypeExample =
new aws.dataAwsOutpostsOutpostInstanceType.DataAwsOutpostsOutpostInstanceType(
this,
"example",
{
arn: "${data.aws_outposts_outpost.example.arn}",
preferredInstanceTypes: ["m5.large", "m5.4xlarge"],
}
);
const awsEc2InstanceExample = new aws.ec2Instance.Ec2Instance(
this,
"example_1",
{
instance_type: dataAwsOutpostsOutpostInstanceTypeExample.instanceType,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsEc2InstanceExample.overrideLogicalId("example");
Argument Reference
The following arguments are required:
arn
- (Required) Outpost ARN.
The following arguments are optional:
instanceType
- (Optional) Desired instance type. Conflicts withpreferredInstanceTypes
.preferredInstanceTypes
- (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 withinstanceType
.
Attribute Reference
In addition to all arguments above, the following attributes are exported:
id
- Outpost identifier.