API Playground
Welcome to the Terraform Editor API Playground! Here you can experiment with the API in real-time:
- Enter your Terraform configuration in the Code section
- Specify your desired changes in the Edits section using our operations syntax
- Click "Make API Request" to see the results
- View the equivalent curl command to use in your own applications
The playground updates in real-time as you type, and you can copy any section using the copy button in the top-right corner of each box.
Loading playground...
Example Operations
Try these common operations in the playground above:
Add a New Resource
{
"add": {
"resource": {
"aws_s3_bucket": {
"example": [{
"set": {
"attributes": {
"bucket": "my-example-bucket"
}
}
}]
}
}
}
}
Update Attributes
{
"update": {
"resource": {
"aws_instance": {
"web": [{
"set": {
"attributes": {
"instance_type": "t2.medium"
}
}
}]
}
}
}
}
Delete a Block
{
"set": {
"resource": {
"aws_instance": {
"web": [{
"delete": {
"blockTypes": {
"ebs_block_device": [{
"where": {
"device_name": "/dev/sdh"
}
}]
}
}
}]
}
}
}
}
Notes
- The playground runs against the Onward API endpoint
- All operations are performed in memory and won't affect your actual Terraform files
- You can share your experiments by copying the input JSON
- Use the examples above as starting points for your own operations