George McKinney Adventures in Software Development

April 20, 2021

Alexa Fact Skill Content

Filed under: Alexa,Amazon,AWS — georgemck @ 5:41 pm

 

const SKILL_NAME = ‘SKILL_NAME ‘;
const GET_FACT_MESSAGE = ‘Here\’s your information: ‘;
const HELP_MESSAGE = ‘You can say tell me a fact, or, tell me about something… What can I help you with?’;
const HELP_REPROMPT = ‘What can I help you with?’;
const STOP_MESSAGE = ‘Goodbye!’;

const data = [
‘Fact Number One.’,
‘Fact Number Two.’
];

const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === ‘LaunchRequest’
|| (request.type === ‘IntentRequest’
&& request.intent.name === ‘GetNewFactIntent’);
},
handle(handlerInput) {
const factArr = data;
const factIndex = Math.floor(Math.random() * factArr.length);
const randomFact = factArr[factIndex];
const speechOutput = GET_FACT_MESSAGE + randomFact;

return handlerInput.responseBuilder
.speak(speechOutput)
.withSimpleCard(SKILL_NAME, randomFact)
.getResponse();
},
};

January 2, 2021

AWS CloudShell CLI Update Process

Filed under: Amazon,AWS — georgemck @ 8:36 pm

Quick Procedure to update the AWS CloudShell available for IAM user accounts following instructions per

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

 

curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip” -o “awscliv2.zip”

unzip awscliv2.zip

sudo ./aws/install

 

 

AWS Shell Curl command
AWS Shell Unzip command
AWS Shell update command

November 20, 2020

AWS Cloud Practitioner Preparation

Filed under: Amazon,AWS,Certification — georgemck @ 12:00 am

Join AWS Certification & Training Team
at AWS re:Invent 2020

Take the challenge to follow a recommended preparation path to earn AWS Certified Cloud Practitioner. All recommended training is free, including our new interactive Twitch series, AWS Power Hour: Cloud Practitioner. The best part? You can complete the preparation path just in time to get AWS Certified before AWS re:Invent 2020 – the world’s largest, most comprehensive cloud learning event. About the AWS Cloud Practioner Certificate (PDF

 

The content covers:

  • Introduction to Cloud Computing (Cloud Basics & Storage)
  • Compute & Network
  • Databases
  • Security
  • Well-Architected Framework
  • Cloud Practioner Review

 

How to participate? 

  1. Click here to Register for AWS Global Challenge 
  2. Watch the Video Series on Twitch (see list below)
  3. Take the Exam with PSI or Pearson

Cloud Practitioner Video Series
on Twitch

Cloud Basic & Storage S2 E1 (Blaine)

Watch on Twitch (59:33) Open Twitch App (59:33)

Cloud Basic & Storage S2 E1 Q&A

Watch on Twitch (30:18) Open Twitch App (30:18)

Compute & Network S2 E2 (Blaine)

Watch on Twitch (1:00:47) Open Twitch App (1:00:47)

Compute & Network S2 E2 Q&A

Watch on Twitch (30:12) Open Twitch App (30:12)

Databases S2 E3 (Jon)

Watch on Twitch (1:01:22) Open Twitch App (1:01:22)

Databases S2 E3 Q&A

Watch on Twitch (30:44) Open Twitch App (30:44)

Security S2 E4 (Jon)

Watch on Twitch (1:05:53) Open Twitch App (1:05:53)

Security S2 E4 Q&A

Watch on Twitch (30:25) Open Twitch App (30:25)

Well-Architected Framework S2 E5 (Blaine)

Watch on Twitch (59:09) Open Twitch App (59:09)

Well-Architected Framework S2 E5 Q&A

Watch on Twitch (30:46) Open Twitch App (30:46)

Review S2 E6 (Blaine, Bailey, Dion)

Watch on Twitch (1:01:51) Open Twitch App (1:01:51)

Review S2 E6 Q&A

Watch on Twitch (32:13) Open Twitch App (32:13)

Review S2 E6 (Jon)

Watch on Twitch (1:02:06) Open Twitch App (1:02:06)

Review S2 E6 Q&A

Watch on Twitch (32:13) Open Twitch App (32:13)

 

September 12, 2020

Updating AWS CLI on Linux from Version 1 to Version 2

Filed under: Amazon — georgemck @ 3:32 am

Amazon Linux 1 and 2 AMI used for EC2 have AWS CLI pre-installed but if it is version 1 and you want to update to version 2, do this.

 

Step 1. First check which version you have currently installed:

aws –version

will output something like this:

aws-cli/1.14.39 Python/3.7.3 Linux/4.14.193-113.317.amzn1.x86_64 exe/x86_64.amzn.2018

 

Step 2. Optionally, you can review its configuration with:

aws configure

output:

AWS Access Key ID [****************AU4L]:
AWS Secret Access Key [****************cFa+]:
Default region name [us-east-1]:
Default output format [json]:

 

Step 3. Uninstalling depends on which version of Python you have associated with AWS CLI. Check the AWS version previously displayed to be sure. Here is a link to the documentation https://docs.aws.amazon.com/cli/latest/userguide/install-linux-al2017.html

For Python 2, the command is:

pip uninstall awscli

For Python 3, the command is:

pip3 uninstall awscli

 

Step 4. Installing version 2 according to: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

   curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip” -o “awscliv2.zip”
   unzip awscliv2.zip
   sudo ./aws/install

 

Step 5. Upon installation of the version 2, it will probably not be in the same place the operating system is expecting and it will be necessary to update the path according to the output of Step 4.

export PATH=$PATH:/usr/local/bin/aws

 

Now check the version

aws –version

output:

aws-cli/2.0.48 Python/3.7.3 Linux/4.14.193-113.317.amzn1.x86_64 exe/x86_64.amzn.2018

 

Step 6. Optionally, rerun the configure option in order to make sure everything is still there and you will be good to go.

   aws configure

output:

AWS Access Key ID [****************AU4L]:
AWS Secret Access Key [****************cFa+]:
Default region name [us-east-1]:
Default output format [json]:

 

This shows how straightforward updating this valuable tool can be. As one of the three ways of managing Amazon Web Services resources (AWS Console, AWS SDKs and AWS CLI), you will be ready for the task at hand.

June 28, 2020

XReality Meetup Presentation on Creating and Sharing XR Experiences

Interactive Presentation with Videos on Google Slides



https://3dvu.co/xreality

Github Repo
https://github.com/georgemck/xreality

https://www.meetup.com/XReality-AR-VR-MR-and-Beyond/events/270672383/

June 23, 2020

Amazon Alexa Gaming

Filed under: Alexa,Amazon — georgemck @ 1:47 am

https://developer.amazon.com/blogs/alexa/post/de130c67-0703-4480-a2b3-c9f2977a7dd6/how-to-build-an-alexa-game-skill-from-scratch

AWS for WordPress

Filed under: Amazon — georgemck @ 1:40 am

AWS for WordPress
https://the-digital-reader.com/2019/02/19/how-to-bring-your-wordpress-blog-posts-to-alexa-as-audio/

Create audio versions of your posts, translate them into other languages, and create podcasts. Integrate with Amazon Alexa to listen to your posts on Alexa-enabled devices. Use Amazon CloudFront to accelerate your website and provide a faster, more reliable viewing experience.

CONFIGURATION
For configuration instructions, see the documentation at https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/WordPressPlugIn.html.

June 12, 2020

Amazon Redshift

Filed under: Amazon — Tags: , , — georgemck @ 2:45 pm

From PostgreSQL row-based Database to Amazon Redshift column-based Data Warehouse

Introduction to Redshift

Amazon Redshift Tutorial (go to 6:28)

Deep Dive on Amazon Redshift

June 11, 2020

AWS Database Migration Service

Filed under: Amazon — Tags: , , — georgemck @ 10:43 pm

Short introduction to the AWS Database Migration Service (1:33)

AWS Database Migration Service (46:48)

Introducing to AWS Database Migration Service (5:19)

DynamoDB Accelerator Video

Filed under: Amazon — Tags: , , — georgemck @ 10:00 am

Amazon DynamoDB Accelerator (DAX): A Read-Through/Write-Through Cache for DynamoDB

Older Posts »

Powered by WordPress