IronFlowDocs

s3vector_create_index

Create an Amazon S3 Vector index inside a bucket.

Parameters

vector_bucket_namestringrequired*default environment-only fallback
Target bucket name. Uses S3VECTOR_BUCKET_NAME, then legacy S3_BUCKET, only when no target field is configured.
bucketstringdefault no
Alias for vector_bucket_name.
vector_bucket_arnstringrequired*default environment-only fallback
Alternative target bucket ARN. Uses S3VECTOR_BUCKET_ARN only when no target field is configured.
index_namestringrequireddefault environment-only fallback
Name for the new index. Uses S3VECTOR_INDEX_NAME only when no target field is configured.
indexstringdefault no
Alias for index_name.
data_typestringrequired
Vector type (for example: float32).
distance_metricstringrequired
Similarity metric (for example: euclidean, cosine).
dimensionintegerrequired
Vector dimension (must be > 0).
regionstringdefault AWS region chain
Override S3VECTORS_REGION, S3_REGION, AWS_REGION, or AWS_DEFAULT_REGION.
endpoint_urlstringdefault AWS_ENDPOINT_URL env var
Override the S3 Vectors service endpoint.
output_keystringdefault s3vector
Prefix for context output keys.

Target Resolution

The supported target shapes are a bucket name plus an index name, or a bucket ARN plus an index name. If any bucket or index target field is configured, all fields needed by that shape must come from node configuration after interpolation; identifier environment variables neither complete nor override it. With no configured target field, the node accepts the same coherent environment-only shapes from S3VECTOR_INDEX_NAME plus either S3VECTOR_BUCKET_NAME (falling back to legacy S3_BUCKET) or S3VECTOR_BUCKET_ARN. Conflicting forms and non-string, incomplete, or blank targets fail before the AWS client is built.

Context Output

  • {output_key}_index_name — Created index name.
  • {output_key}_bucket_name — Bucket name used for the name target form.
  • {output_key}_bucket_arn — Bucket ARN used for the ARN target form.
  • {output_key}_index_arn — ARN of created index.
  • {output_key}_distance_metric — Configured distance metric.
  • {output_key}_data_type — Configured data type.
  • {output_key}_dimension — Configured vector dimension.
  • {output_key}_successtrue on success.

Example

local flow = Flow.new("s3vector_create_index_example")

flow:step("create_index", nodes.s3vector_create_index({
    vector_bucket_name = "ironflow-vectors-demo",
    index_name = "ironflow-demo-index",
    data_type = "float32",
    distance_metric = "cosine",
    dimension = 3,
    output_key = "index"
}))

return flow

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close