# Writing Transformation Input/Output to AWS S3

There is the possibility of adding instructions to output the input/output of the transformation to AWS S3.

```
<transformer data-source="spheres-fo">
  <write-input-to-aws-s3>
    <folder>foo/bar</folder> <!-- optional -->
    <tag name="foo">bar</tag> 
    <tag name="abc">def</tag> 
  </write-input-to-aws-s3>
  ...
  <write-output-to-aws-s3> 
    ...
  </write-output-to-aws-s3>
</transformer>
```

This creates objects in the S3 bucket which have the tags as specified, the correct Content-Type, and in addition a tag called "environment" which is either "preview" or "live".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://openendpoints.gitbook.io/doc/configuration/data-source-transformation/writing-transformation-input-output-to-aws-s3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
