### Install AWS SDK for Node.js (Shell) Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/node/aws/README.md Command to install the AWS SDK for Node.js using npm, which is required to interact with AWS services from the Node.js script. ```shell npm install aws-sdk ``` -------------------------------- ### Install AWS SDK (boto3) for Python Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/python/aws/README.md This shell command sequence creates a directory named 'lib' and then uses pip to install the boto3 library into that directory. This is necessary to bundle the dependency with the vRO action. ```shell mkdir lib pip install boto3 -t lib/ ``` -------------------------------- ### AWS Configuration File Structure (JSON) Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/node/aws/README.md Example structure for the 'awsconfig.json' file used to store AWS IAM user credentials (access key ID, secret access key) and the target region. It is recommended to use an IAM user with minimal permissions, specifically 'EC2:DescribeInstances'. ```json { "accessKeyId": "", "secretAccessKey": "", "region": "" } ``` -------------------------------- ### Download PowerShell Module from PSGallery (Shell) Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/powershell/3rd-party/README.md This command sequence creates a directory named 'Modules' and then uses the PowerShell core executable ('pwsh') to save the 'Assert' module from the official PSGallery repository into the newly created directory. This is a necessary step to make the module available to the script. ```Shell mkdir Modules pwsh -c "Save-Module -Name Assert -Path ./Modules/ -Repository PSGallery" ``` -------------------------------- ### AWS Credentials Configuration File Structure Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/python/aws/README.md This snippet shows the required structure for the 'awsconfig' file. It uses the default profile and includes placeholders for the AWS access key ID, secret access key, and region. ```text [default] aws_access_key_id= aws_secret_access_key= region= ``` -------------------------------- ### Zip Node.js Action for vRO (Shell) Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/node/aws/README.md Shell command to create a zip archive of the Node.js action contents. The command excludes any existing zip files and names the output archive 'vro-node-aws.zip', preparing it for upload into the vRO Action editor. ```shell zip -r --exclude=*.zip -X vro-node-aws.zip . ``` -------------------------------- ### Zipping PowerCLI script for vRO upload Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/powershell/vsphere/README.md This command zips the script file, excluding any existing zip files, into a new zip archive named 'vro-powershell-vsphere.zip' for uploading to vRealize Orchestrator (vRO). ```Shell zip -r --exclude=*.zip -X vro-powershell-vsphere.zip . ``` -------------------------------- ### Zip vRO PowerShell Script (Shell) Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/powershell/3rd-party/README.md This command uses the 'zip' utility to create an archive named 'vro-powershell-3rdparty.zip'. It recursively includes all files and directories from the current location ('.') but excludes any files that already end with '.zip'. This prepares the script and its dependencies for upload into vRO. ```Shell zip -r --exclude=*.zip -X vro-powershell-3rdparty.zip . ``` -------------------------------- ### Zip vRO Python Action Contents Source: https://github.com/tgeorgiev/vro-polyglot-scripts/blob/master/python/aws/README.md This shell command zips the contents of the current directory into a file named 'vro-python-aws.zip'. The '--exclude=*.zip' flag prevents the zip file itself from being included in the archive, and '-X' excludes extra file attributes. ```shell zip -r --exclude=*.zip -X vro-python-aws.zip . ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.