Manage Resource Scripts

The Resource Scripts framework in JSDN Platform helps you to create various resources scripts.

The current version of JSDN Platform supports Ansible scripts to launch resources. It comes with some pre-seeded templates like Database, S3 Bucket, Elastic Load Balancing, Elastic Container Service, Route 53 and more to consume the resource. However, these resources can be managed only through provider console only.

The JSDN Platform helps you to execute your own custom script by selecting the Resource Type as "Custom" and providing a valid script.
Note: You should have valid permissions to perform the following actions. If you don’t see any of the options, we recommend you to contact your administrator.

Add New Script

  1. On the Resourcesmenu, click Resource Script. The Manage Resource Script page is displayed with list of existing scripts that are added so far in the platform.
  2. Click the Add Script icon. The Add Script page is displayed.
  3. Select the Provider from the drop-down list. Please note, the current release of JSDN is supported for Amazon Web Services only.
  4. Select the Resource Type from the drop-down list. You can select either Elastic Container Service, Identity and Access Management, RDS, Network, Route53, S3 Bucket or Elastic Load Balancing from the drop-down list.
  5. If you select Elastic Container Service (ECS) as your resource type, you will have an option to select "Launch ECS Instance" or "Delete ECS Instance".

    OR

  6. If you select Identity and Access Management (IAM) as your resource type, you will have an option to select "Create IAM Role" or "Delete IAM Role".

    OR

  7. If you select Relational Database Service (RDS) as your resource type, you will have an option to select either “Launch DB Instance” or “Delete DB Instance” or “Modify DB Instance” from the Template drop-down list. OR
  8. f you select Network as your resource type, you will have an option to select either “Create Subnet” or “Create VPC” from the Template drop-down list.

    OR

  9. If you select Route53 as your resource type, you will have an option to select "Create Zone" or "Create or Update a Record Set" or "Create or Update Multiple Record Sets" or "Delete a Record Set".

    OR

  10. If you select S3 Bucket as your resource type, you will have an option to select "Create S3 Bucket" or "Delete S3 Bucket".

    OR

  11. If you select Elastic Load Balancing (ELB) as your resource type, you will have an option to select "Create ELB" or "Delete ELB" or "Link Instance to ELB".

    OR

  12. If you select Custom as your resource type, you will have an option to select "Custom Template".

    OR

  13. If you select VPN as your resource type, you will have an option to select "Create VPN" or "Delete VPN".

    OR

  14. If you select DynamoDB as your resource type, you will have an option to select "Create Table" or "Delete Table".
  15. Enter a name for the script. Provide a unique Script Name to identify your template. It is case sensitive and should not exceed beyond 128 ASCII characters.
  16. If you want to modify the existing script, you can modify it. If you modify the script it is recommended that it should be in working condition before executing.
  17. Click Execute, to execute the script.
  18. Click Save, to save the script.

    Once the script is executed, you can refer to your Manage Resource Script page to see the status. If the script is successfully executed, you will see the status as Completed. If it fails, you will see the status as Failed.

Edit Script

  1. On the Resourcesmenu, click Resource Script. The Manage Resource Script page is displayed with list of existing scripts that are added so far in the platform.
  2. Please note, you can edit the scripts those are in Failed status.
  3. Click the Edit link from the Action column. The Edit Script page is displayed.
  4. On the Edit Script page, make the necessary changes and click Re-execute.

View Script Logs

  1. On the Resourcesmenu, click Resource Script. The Manage Resource Script page is displayed with list of existing scripts that are added so far in the platform.
  2. Click the View Log link from the Action column. The View Log pop-up window is displayed.
  3. The View Log pop-up window displays the log details.

View Script

  1. On the Resourcesmenu, click Resource Script. The Manage Resource Script page is displayed with list of existing scripts that are added so far in the platform.
  2. Click the View Script link from the Action column. The View Script pop-up window is displayed.
  3. The View Script pop-up window displays the script that was used while adding the script.

Re-execute Script

  1. On the Resourcesmenu, click Resource Script. The Manage Resource Script page is displayed with list of existing scripts that are added so far in the platform.
  2. Please note, you can re-execute the scripts those are in Failed status.
  3. Click the Re-execute link from the Action column. A confirmation message is displayed.
  4. Click Confirm, to delete the script.

Delete Script

  1. On the Resourcesmenu, click Resource Script. The Manage Resource Script page is displayed with list of existing scripts that are added so far in the platform.
  2. Please note, you can delete the scripts those are in Failed status.
  3. Click the Delete link from the Action column. A confirmation message is displayed.
  4. Click Confirm, to delete the script.