- Aws account with lambda service
- Amazon Alexa account
- NodeJS with npm installed
- Create AWS Lambda service at the AWS Console. Make Sure that your region supports Alexa Skills Kit.
- Login to the AWS Console and select lambda services.
- Create new lambda function
- Fill info
- Select alexa skills kit
- Provide Skill ID from Alexa Dev Portal (Instructions for creating your the Alexa skill can be found below)
- Clone the source code to the local folder
- Open terminal and run “npm install”. Wait till the all dependencies will be installed
- Compress all project folder's files with installed dependencies
- Upload ZIP
- Configure environment variables. See “Environment variables configuration” section below
- Encrypt your OneSphere login add password
- Increase request timeout
- Login to the “Alexa Developer Portal” and go to the “Alexa Consoles -> Skills”
- Add a new skill
- Fill skill name field and press Next
- Select “Custom Skill” and press “Create Skill”
- Open your new skill
- Go to the Build Section
- Open JSON Editor and paste content from the “intents.json” file
- Open “Endpoint” and add your AWS Lambda ARN
- Enable your dev skill through the mobile app
ANALYTICS_API_URI: “http://ebc-demo.yoctocode.com:8086” - Eufore analytics URI
ANALYTICS_CLIENT_ID: “xxxxxxx-xxxx-xxxx-xxxx” – Eufore Client ID
IGNORE_SERVICE_SPEND: “true” – Set true to exclude “services” from total spend requests
ONESPHERE_APP_ID: “amzn1.ask.skill.xxxxxxxxxxxxxxxxxxxxx” – Alexa Skill ID
ONESPHERE_HOST: “https://demo.hpeonesphere.com” – OneSphere environment URI
ONESPHERE_PASSWORD: “encrypted_password” – Encrypted login
ONESPHERE_USERNAME: “encrypted_username” – Encrypted password
Initiate OneSphere skills by saying "Alexa, ask one sphere." The response will be "Welcome to HPE OneSphere."
-
demoFirstQuestionIntent
-
Alexa, what do you think of One Sphere?
- RE: I must say, I'm enjoying my interactions with One Sphere and recommend every AWS customer sign up.
-
-
lobSpendCurrentMonthIntent
-
Alexa, which line of business has the highest spend this month
- RE: The line of business "name" has the highest spend this month, total of $
-
-
projectsTopSpendCurrentMonthIntent
-
which project has the highest spend this month?
-
which project has the highest spend?
- RE: Your project “name” has the highest spend in January of $
-
-
projectsTotalSpendCurrentMonthIntent
-
what's my spend across projects?
-
for my spend across projects
-
for my project spend this month
-
what is my spend across projects
-
my project spend this month
- RE: You have 4 projects with a total February spend of $
-
-
providerTypesExtendedStatusIntent
-
How are my One Sphere cloud providers doing
-
Alexa, ask One Sphere how my cloud providers are doing
- RE: 2 out of 2 providers status is OK
-
-
regionStatusIntent
-
Alexa,what are my "Private Cloud" Regions?
- RE: 2 out of 2 regions status OK.
-
-
totalSpendAcrossProvidersIntent
-
Alexa, what is my total spend for the month?
-
Alexa, what is my total spend for the December?
- RE: The total spend across all of your providers in February is $8,397
-
-
utilizationAcrossHybridCloudsIntentByProviderType
-
what is the utilization of my Private Cloud?
- RE: The utilization score in Amazon Web Services is 159, using 5% cpu. The utilization score in your Private Cloud is 625, using 55% cpu, 45% memory, and 55% storage.
-
-
zoneStatusByRegionIntent
-
Alexa, ask One Sphere about the status of my zones in Private Cloud region?
-
zone status in Houston
- RE: In Houston region there is 1 zone: Beach-1 zone is OK and; it has 1 cluster named Picaso and 8 datastores and 5 networks.
-













