Rescue
post
Refactor Terraform codebase by extracting variables from resources and modules to separated files
🔒 Requires the read:rescue permission
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
terraformstring · binaryRequiredExample:
[email protected]iac_typestring · enumOptionalDefault:
The type of IaC source
terraformPossible values: Responses
200
Zip archive of refactored data
application/zip
Responsestring · binary
400
Failed to refactor terraform
application/json
401
Failed to authenticate user
application/json
403
Missing required scopes. 🔒 Requires the read:rescue permission
application/json
429
Too many requests
application/json
post
/api/v1/rescue/tf/extractpost
Generate bricks file template from IaC source
🔒 Requires the read:rescue permission
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
sourcestringRequired
The path to the IaC source directory
package_namestringRequired
The package name e.g. @bluebricks/aws-vpc
iac_typestring · enumRequiredPossible values:
The type of IaC source
Responses
200
Generated bricks file template
application/json
400
IaC source directory or package name are invalid
application/json
401
Failed to authenticate user
application/json
403
Missing required scopes. 🔒 Requires the read:rescue permission
application/json
429
Too many requests
application/json
post
/api/v1/rescueLast updated
Was this helpful?

