Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform-boot new deploy service with script file contents in request body #803

Closed
8 tasks done
swaroopar opened this issue Aug 25, 2023 · 1 comment · Fixed by eclipse-xpanse/terraform-boot#11
Closed
8 tasks done
Assignees
Labels
enhancement New feature or request terraform-boot

Comments

@swaroopar
Copy link
Contributor

swaroopar commented Aug 25, 2023

We currently have terraform-boot services where the workspace is details are provided and terraform-boot executes the requested command on the requested folder. In addition to this, we need to add new service for deploy

  • rename existing deploy service as deployFromDirectory
  • rename existing data model - TerraformDeployRequest to TerraformDeployFromDirectoryRequest
  • create new service 'deployWithScripts' with new data model TerraformDeployWithScriptsRequest -> with similar data model as before. but additionally have 'files' as below.
             {
                "scripts":[
                   {
                      "script":"dffdfdfdfdfdfdfdfd"
                   },
                   {
                      "script":"dffdfdfdfdfdfdfdfd"
                   },
                   {
                      "script":"dffdfdfdfdfdfdfdfd"
                   }
                ]
             }
    
  • create a random directory under terraform.root.module.directory folder.
  • create files with random file names with '.tf' extension for each of the script in the scripts list.
  • Then execute the terraform command.
  • Extend TerraformResult data model to have a new optional field 'terraformState'. In case of TerraformDeployWithScriptsRequest method, the tfstate file contents from the workspace directory and return in the new field.
  • Service must be offered as both sync and async.
@swaroopar swaroopar changed the title terraform-boot new service to script file contents terraform-boot new service with script file contents in request body Aug 25, 2023
@swaroopar swaroopar changed the title terraform-boot new service with script file contents in request body terraform-boot new deploy service with script file contents in request body Aug 25, 2023
@swaroopar swaroopar moved this to Planned in xpanse Aug 25, 2023
@swaroopar swaroopar added enhancement New feature or request terraform-boot labels Aug 25, 2023
@WangLiNaruto
Copy link
Contributor

let me do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request terraform-boot
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants