AWS Lambda Setup
AWS Lambda Testing
In order to pass scripts using Octopus, script should be created in the tool registry.
Script values can be stored in DB.
We can use this script for passing it via Octopus and use it in the Octopus Deploy step configuration.
Pre-Requisites:
Zip file should be placed in Github.
Repository and component should be created in Nexus tool.
Feed should be created for the Nexus repo created under the used octopus tool in the pipeline.
Mentioned feed should be selected in the pipeline config.
Creating Scripts
Login to https://portal.opsera.io -> Tool Registry -> Click Scripts tab->Click on New Script
Click on the new script give Name, select language as Powershell and give script details and click on the Create button. Values will be stored in DB.
INLINE FLOW:
2. Create a pipeline with Command Line Build ->Nexus Repo ->Octopus Deploy. Select Octopus Platform type -> Script, Script Type -> Inline. Select created script from Opsera Script library dropdown.
3. Click Start Pipeline button for execution.
4. Login to Octopus portal.
5. Click on Process in the project.
PACKAGE FLOW:
6. Zip file package should be placed in the Nexus Repository.
7. Same zip file should be available in the local path.
8. Pipeline should be created with the Octopus deploy step. Select Script Type -> Package, Script File name -> appdeploy.ps1 (whichever script file user has in the zip file) as mentioned in the zip file package. Give script parameters that need to be validated.
10. Login to Octopus tool and click on the process for the mentioned project in the pipeline.