{"id":24313803,"url":"https://github.com/martindsouza/docker-amazon-ask-cli","last_synced_at":"2025-09-26T19:31:27.304Z","repository":{"id":65386665,"uuid":"123739402","full_name":"martindsouza/docker-amazon-ask-cli","owner":"martindsouza","description":"Amazon Alexa ASK cli and AWS cli Docker Image","archived":false,"fork":false,"pushed_at":"2020-01-04T04:31:04.000Z","size":12,"stargazers_count":15,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T15:49:06.061Z","etag":null,"topics":["alexa","alexa-skill","aws-cli","docker","docker-amazon"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martindsouza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"martindsouza"}},"created_at":"2018-03-03T23:13:56.000Z","updated_at":"2023-10-03T22:25:33.000Z","dependencies_parsed_at":"2023-03-09T14:00:17.344Z","dependency_job_id":null,"html_url":"https://github.com/martindsouza/docker-amazon-ask-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindsouza%2Fdocker-amazon-ask-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindsouza%2Fdocker-amazon-ask-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindsouza%2Fdocker-amazon-ask-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martindsouza%2Fdocker-amazon-ask-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martindsouza","download_url":"https://codeload.github.com/martindsouza/docker-amazon-ask-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234338048,"owners_count":18816450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alexa","alexa-skill","aws-cli","docker","docker-amazon"],"created_at":"2025-01-17T09:13:32.381Z","updated_at":"2025-09-26T19:31:26.939Z","avatar_url":"https://github.com/martindsouza.png","language":"Dockerfile","readme":"# docker-amazon-ask-cli\n\nThe purpose of this container is to be able to use the [Amazon ASK CLI (Alexa Skills Kit)](https://developer.amazon.com/docs/smapi/ask-cli-intro.html#alexa-skills-kit-command-line-interface-ask-cli).\n\n\u003c!-- TOC --\u003e\n\n- [docker-amazon-ask-cli](#docker-amazon-ask-cli)\n  - [Example](#example)\n  - [AWS Config (optional)](#aws-config-optional)\n    - [`aws configure`](#aws-configure)\n    - [Setting `credentials` and `config` file](#setting-credentials-and-config-file)\n  - [Usage](#usage)\n    - [Run One Command](#run-one-command)\n    - [Run `bash`, then run `ask`](#run-bash-then-run-ask)\n    - [Volumes](#volumes)\n  - [Developers](#developers)\n  - [Sample `ask` commands](#sample-ask-commands)\n  - [Links:](#links)\n\n\u003c!-- /TOC --\u003e\n\n## Example\n\nThis example will show you both how to use this container and start a simple `HelloWorld` Alexa Skill. In this example we'll assume that AWS has been configured [see below](#aws-config-optional). \n\nPlease read the other sections on how to properly use this container and volume configurations. Before running this example ensure that you've registered for an [Alexa Developer](https://developer.amazon.com/alexa) account\n\n\n```bash\n# Get image\ndocker pull martindsouza/amazon-ask-cli\n\n# Create a ASK configuration folders.\ncd ~\nmkdir alexa-demo \\\n  alexa-demo/ask-config \\\n  alexa-demo/aws-config \\\n  alexa-demo/app\n\n# Note copy the aws-config information (see below) to the aws-config folder\n\n# To help simply writing out a full docker run command each time will use an alias\nalias alexa=\"docker run -it --rm \\\n  -v ~/alexa-demo/ask-config:/home/node/.ask \\\n  -v ~/alexa-demo/aws-config:/home/node/.aws \\\n  -v ~/alexa-demo/app:/home/node/app \\\n  martindsouza/amazon-ask-cli:latest \"\n\n# For windows users you'll need to run the following each time (unless you have an alternative to alias)\n# docker run -it --rm \\\n# -v C:/%UserProfile%/alexa-demo/ask-config:/home/node/.ask ^\n# -v C:/%UserProfile%/alexa-demo/aws-config:/home/node/.aws ^\n# -v C:/%UserProfile%/alexa-demo/app:/home/node/app ^\n# martindsouza/amazon-ask-cli:latest ^ \n# \u003ccommand\u003e \n\n\n# If using Lambda and want to load your configuration run:\n# alexa aws configure\n#\n# Some parameters to help out:\n# Region: us-east-1\n# Output format: json\n\n\n# Configure ASK\nalexa ask init --no-browser\n\n# ? Please choose one from the following AWS profiles for skill's Lambda function deployment.\n#  default\n# Chose default and hit enter\n#\n# A URL will be printed on screen. Copy and past into your browser\n# Login using your Amazon Developer account\n# Copy the code that is shown on the screen and past in the terminal\n# You should see a success message like: Tokens fetched and recorded in ask-cli config.\n\n\n# Verify profile was created\nalexa ask init -l\n# Should return:\n# Profile              Associated AWS Profile\n# [default]                 ** NULL **\n\n\n# Create a new app:\nalexa ask new --skill-name HelloWorld\n# New project for Alexa skill created.\n# This will also create a new folder: ~/alexa-demo/HelloWorld\n\n# To create a new app with lambda:\n# alexa ask new --skill-name HelloWorld --lambda-name hello-world-service\n\n\n# Move the HellowWorld folder back to app directory\ncd ~/alexa-demo/app/\nmv HelloWorld/* .\nmv HelloWorld/.ask .\nrmdir HelloWorld\n\n# Deploy (all): this will create both lambda and Alexa Skill\nalexa ask deploy\n\n# -------------------- Create Skill Project --------------------\n# Profile for the deployment: [default]\n# Skill Id: amzn1.ask.skill.55cb6762-4b48-433f-adef-2d6074d06c13\n# Skill deployment finished.\n# Model deployment finished.\n# Lambda deployment finished.\n# Your skill is now deployed and enabled in the development stage.\n# Try invoking the skill by saying “Alexa, open {your_skill_invocation_name}” or simulate an invocation via the `ask simulate` command.\n\n\n# Other options are:\n# alexa ask deploy -t lambda\n# alexa ask deploy -t skill\n# alexa ask deploy -t model\n\n\n```\n\n## AWS Config (optional)\nIf you plan to use [Lambda](https://aws.amazon.com/lambda/) you'll need to configure the AWS CLI. To simplify. You can configure it multiple ways.\n\nIn either case ensure that you pass in `-v $(pwd)/aws-config:/home/node/.aws \\` (where `$(pwd)/aws-config` is a location on your host machine) as an option when running the container to preserve the AWS configuration.\n\n### `aws configure`\n\nRunning `aws configure` in the container will ask you a set of questions to create the AWS credentials\n\n### Setting `credentials` and `config` file\n\nCopy the files in [`samples/aws-config`](samples/aws-config) to your local/host folder that will hold the credentials. You need to modify the `credentials` file with your `aws_access_key_id` and `aws_secret_access_key` at a minimum.\n\n## Usage\n\nGet the latest version of the container: `docker pull martindsouza/amazon-ask-cli`\n\nThey're two ways to use the `ask` cli for this container which are covered below. The volume documentation is listed following the examples.\n\n### Run One Command\n\nIn this mode the container will start, you run your `ask` command, then the container is stopped and deleted. _Don't worry your Docker image is still kept._\n\n```bash\ndocker run -it --rm \\\n  -v $(pwd)/ask-config:/home/node/.ask \\\n  -v $(pwd)/hello-world:/home/node/app-dev \\\n  martindsouza/amazon-ask-cli:latest \\\n  ask init -l\n```\n\n### Run `bash`, then run `ask`\n\nIn this mode, the container will start, you can then run the container's bash, and the container will stop and delete only once you `exit`.\n\n```bash\ndocker run -it --rm \\\n  -v $(pwd)/ask-config:/home/node/.ask \\\n  -v $(pwd)/app-dev/HelloWorld:/home/node/app-dev \\\n  martindsouza/amazon-ask-cli:latest \\\n  bash\n\n# You'll be prompted with:\n# bash-4.3$\n#\n# Type: exit  to end and terminate the container\n```\n\n\n### Volumes\n\nPath | Description \n--- | ---\n`/home/node/.ask` | `.ask` configuration folder for ASK cli\n`/home/node/.aws` | `.aws` configuration folder AWS cli \n`/home/node/app` | folder where your Alexa project is stored\n\n\n## Developers\n\n```bash\ndocker build -t martindsouza/amazon-ask-cli .\n\n# Pushing to Docker Hub\n# Note: not required since I have a build hook linked to the repo\n# docker login\n# docker build -t martindsouza/amazon-ask-cli:0.0.1 .\n# docker push martindsouza/amazon-ask-cli\n```\n\n## Sample `ask` commands\n\n```bash\n# Delete skill\nalexa ask api delete-skill -s SKILL_ID\n```\n\n## Links:\n\n- [ASK CLI Quickstart](https://developer.amazon.com/docs/smapi/quick-start-alexa-skills-kit-command-line-interface.html)\n- [ASK CLI Full Doc](https://developer.amazon.com/docs/smapi/ask-cli-intro.html#alexa-skills-kit-command-line-interface-ask-cli)\n\n","funding_links":["https://github.com/sponsors/martindsouza"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartindsouza%2Fdocker-amazon-ask-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartindsouza%2Fdocker-amazon-ask-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartindsouza%2Fdocker-amazon-ask-cli/lists"}