Plugin enables support for AWS actions such as invoking Lambda, shrinking clusters and more.
2.3K
This plugin supports the migration of the following Spinnaker Stages to Harness:
Invoke Lambda FunctionDeploy Lambda FunctionResize Server GroupDestroy Server GroupEnable Server GroupShrink ClusterScale Down ClusterDisable ClusterRollback ClusterFind Image from ClusterLambda Update CodeThis plugin is used to help support the Spinnaker to Harness Migrator.
This plugin is only supported for use with AWS.
The documentation is for the latest release/tag. For information on old releases, please release notes at the bottom of this page.
For each spinnaker stage, the following parameters are supported. Each parameter can be modified using an environment variable. For example to set the AWS access key you can use the following command where the migrator is run:
export AWS_ACCESS_KEY_ID="<AWS ACCESS KEY ID>"
The following parameters are common to all actions:
AWS_ACCESS_KEY_ID: AWS access key IDAWS_SECRET_ACCESS_KEY: AWS secret access keyAWS_REGION: AWS regionFUNCTION_NAME: Name of the Lambda function to invokeAWS_REGION: AWS regionPAYLOAD: Payload to send to the Lambda functionALIAS: (Default: "$LATEST") Alias of the Lambda functionACCOUNT_NAME: (Default: "default") Name of the AWS accountTIMEOUT: (Default: 10) Timeout for the Lambda function executionEXECUTION_COUNT: (Default: 1) Number of times to execute the Lambda functionPAYLOAD_ENCODED: (Default: false) Whether the payload is base64 encodedFUNCTION_NAME: Name of the Lambda function to invokeAWS_REGION: AWS regionALIAS: (Default: "$LATEST") Alias of the Lambda functionACCOUNT_NAME: (Default: "default") Name of the AWS accountS3_BUCKET: Name of the bucket where code.zip is storedS3_KEY: Name of the code archive - eg code.zipHANDLER: Name of the function to call on the function executionROLE: Execution roleRUNTIME: Runtime https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supportedENV_VAR: Environment variablesTAGS: TagsDESCRIPTION: Description of the functionLAYERS: The resource ARNs for Lambda layer. Input the entire ARN.MEMORY: (Default: 128MB) Function's allocated memory (MB)TIMEOUT: (Default 120) The amount of seconds that Lambda allows a function to run before stopping it.DLARN: ARN of dead letter queue configurationSUBNET_IDS: Network subnets idsSECURITY_GROUPS_IDS: Network security groupsCLUSTER_NAME: Name of the cluster to scale downAWS_REGION: AWS regionTARGET: Cluster version that will be resized. (options: current_asg_dynamic, ancestor_asg_dynamic, oldest_asg_dynamic)RESIZE_ACTION: Resize action to apply. (options: scale_up, scale_down, scale_to_cluster, scale_exact)RESIZE_TYPE: Resize type to use in the scale calculation. (options: pct, incr, exact)SCALE_PERCENTAGE: Percentage number to resizeSCALE_NUMBER: Incremental number to resizeTARGET_HEALTHY_PERCENTAGE: (Default: 100) Percentage to consider target healthyCAPACITY_MIN: Exact capacity number in minCAPACITY_MAX: Exact capacity number in maxCAPACITY_DESIRED: Exact capacity number in desiredCLUSTER_NAME: Name of the cluster to destroyAWS_REGION: AWS regionTARGET: Cluster version that will be destroyed. (options: current_asg_dynamic, ancestor_asg_dynamic, oldest_asg_dynamic)CLUSTER_NAME: Name of the cluster to enableAWS_REGION: AWS regionTARGET: Cluster version that will be enabled. (options: current_asg_dynamic, ancestor_asg_dynamic, oldest_asg_dynamic)CLUSTER_NAME: (Default: "shrinkservergroup-v000") Name of the cluster to shrinkAWS_REGION: (Default: "us-west-2") AWS regionALLOW_DELETE_ACTIVE: (Default: true) Allow deletion of active instancesSHRINK_TO_SIZE: (Default: 1) Number of instances to shrink the cluster toRETAIN_LARGER_OVER_NEWER: (Default: false) Whether to retain larger instances over newer onesCLUSTER_NAME: Name of the cluster to scale downAWS_REGION: AWS regionREMAINING_FULL_SIZE_SERVER_GROUPS: (Default: 1) Number of remaining full-size server groupsPREFER_LARGER_OVER_NEWER: (Default: false) Whether to prefer larger instances over newer onesALLOW_SCALE_DOWN_ACTIVE: (Default: false) Whether to allow scaling down active instancesCLUSTER_NAME: Name of the cluster to disableAWS_REGION: AWS regionREMAINING_ENABLED_SERVER_GROUPS: (Default: 1) Number of remaining enabled server groupsPREFER_LARGER_OVER_NEWER: (Default: false) Whether to prefer larger instances over newer onesCLUSTER_NAME: Name of the cluster to rollbackAWS_REGION: AWS regionTARGET_HEALTHY_ROLLBACK_PERCENTAGE: (Default: 100) Percentage to consider a rollback healthyCLUSTER_NAME: Name of the cluster to find image.REGIONS: AWS regions to find image.TARGET: Use to specify which image to retrieve based on certain criteria. (options: CURRENT, PREVIOUS, OLDEST, LARGEST, FAIL)ONLY_ENABLED: Find enabled image only.FUNCTION_NAME: Name of the Lambda function to Update codeAWS_REGION: AWS regionS3_BUCKET: S3 bucket name (An Amazon S3 bucket in the same AWS Region as your function.)S3_KEY: S3 key name (The Amazon S3 key of the deployment package.)PUBLISH: (Default: false) Set to true to publish a new version of the function after updating the code.0.1.4Added support for the following Spinnaker stages:
Invoke Lambda FunctionDeploy Lambda FunctionResize Server GroupDestroy Server GroupEnable Server GroupShrink ClusterScale Down ClusterDisable ClusterRollback ClusterFind Image from ClusterLambda Update CodeContent type
Image
Digest
sha256:04fff044c…
Size
536.4 MB
Last updated
about 2 years ago
docker pull harnessdev/aws-drone-plugin