aws-samples / connected-drink-dispenser-workshop Goto Github PK
View Code? Open in Web Editor NEWCode and walk-through to assemble, program and build a multi-user Amazon FreeRTOS and AWS IoT enabled drink dispenser.
License: MIT No Attribution
Code and walk-through to assemble, program and build a multi-user Amazon FreeRTOS and AWS IoT enabled drink dispenser.
License: MIT No Attribution
Thanks for your presentation today. Probably more fun than I've had at a conference session. I guess that reveals how little I get out. :-)
Runing Python 3.8 on Mac and seeing this error after installing all the dependencies and trying to run cdk synth
:
(awscli) 8c859026bc23:deploy causey$ cdk synth
Traceback (most recent call last):
File "cdk_app.py", line 12, in <module>
from aws_cdk import core
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/aws_cdk/core/__init__.py", line 406, in <module>
import jsii
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/jsii/__init__.py", line 4, in <module>
from ._runtime import (
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/jsii/_runtime.py", line 6, in <module>
from jsii import _reference_map
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/jsii/_reference_map.py", line 6, in <module>
from ._kernel.types import JSClass, Referenceable
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/jsii/_kernel/__init__.py", line 15, in <module>
from jsii._kernel.providers import BaseProvider, ProcessProvider
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/jsii/_kernel/providers/__init__.py", line 2, in <module>
from jsii._kernel.providers.process import ProcessProvider
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/jsii/_kernel/providers/process.py", line 15, in <module>
import cattr # type: ignore
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/cattr/__init__.py", line 2, in <module>
from .converters import Converter, UnstructureStrategy
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/cattr/converters.py", line 3, in <module>
from ._compat import (
File "/Users/causey/.pyenv/versions/awscli/lib/python3.8/site-packages/cattr/_compat.py", line 86, in <module>
from typing import _Union
ImportError: cannot import name '_Union' from 'typing' (/Users/causey/.pyenv/versions/3.8.0/lib/python3.8/typing.py)
Subprocess exited with error 1
Any ideas? Thanks!
Dispenser app should require a password. Also, field should be validated against E.164 to enforce correct country codes.
At 4. Connect the Microcontroller to Your Laptop and Test Serial Communication the documentation shows the LED ring lit up. In almost all cases the LED ring did not turn on, leaving the participant puzzled since they though something was not working.
It would be better to show a picture with the LED ring off.
When users login in for first time and resource creation is kicked off, the waiting for resource times out. In some cases, the creation may have completed successfully, but in other cases, the Cloud9 environment was not created.
This does not seem to be an issue with low resource creation load, even with a lot of created resources.
I am trying to create the environment of the workshop in eu-central-1. Fixed some issues in cdk_app.py and static_site_construct.py (listed in an other issue). The application starts to create the stack however it fails with this error message:
28/99 | 3:32:46 PM | CREATE_FAILED | AWS::CloudFront::Distribution | StaticSite/SiteDistribution/CFDistribution (StaticSiteSiteDistributionCFDistribution500D676B) The specified SSL certificate doesn't exist, isn't in us-east-1 region, isn't valid, or doesn't include a valid certificate chain. (Service: AmazonCloudFront; Status Code: 400; Error Code: InvalidViewerCertificate; Request ID: 118a47d5-6e62-43ec-9ef8-74f18170b8a1)
new CloudFrontWebDistribution (/tmp/jsii-kernel-8eVR2P/node_modules/@aws-cdk/aws-cloudfront/lib/web_distribution.js:338:30)
_ obj._wrapSandboxCode (/home/ec2-user/environment/connected-drink-dispenser-workshop/deploy/.env/lib/python3.6/dist-packages/jsii/_embedded/jsii/jsii-runtime.js:7761:49)
_ Kernel._wrapSandboxCode (/home/ec2-user/environment/connected-drink-dispenser-workshop/deploy/.env/lib/python3.6/dist-packages/jsii/_embedded/jsii/jsii-runtime.js:8221:20)
_ Kernel._create (/home/ec2-user/environment/connected-drink-dispenser-workshop/deploy/.env/lib/python3.6/dist-packages/jsii/_embedded/jsii/jsii-runtime.js:7761:26)
_ Kernel.create (/home/ec2-user/environment/connected-drink-dispenser-workshop/deploy/.env/lib/python3.6/dist-packages/jsii/_embedded/jsii/jsii-runtime.js:7508:21)
_ KernelHost.processRequest (/home/ec2-user/environment/connected-drink-dispenser-workshop/deploy/.env/lib/python3.6/dist-packages/jsii/_embedded/jsii/jsii-runtime.js:7296:28)
_ KernelHost.run (/home/ec2-user/environment/connected-drink-dispenser-workshop/deploy/.env/lib/python3.6/dist-packages/jsii/_embedded/jsii/jsii-runtime.js:7236:14)
_ Immediate.setImmediate [as _onImmediate] (/home/ec2-user/environment/connected-drink-dispenser-workshop/deploy/.env/lib/python3.6/dist-packages/jsii/_embedded/jsii/jsii-runtime.js:7239:37)
_ runCallback (timers.js:705:18)
_ tryOnImmediate (timers.js:676:5)
_ processImmediate (timers.js:658:5)
I assume the problem is that it tries to use the ssl certificate in us-east-1 which is available in eu-central-1. I configured Region=eu-central-1 in config.json and fixed the constant in cdk_app.py. I cannot find any other occurence of "us-east-" in the sources but the application seems to get this information from somewhere.
I found following bugs when running cdk synth:
To complete the workshop content for others.
Attempting to create user resources errors out with the following:
[WARNING] ... Error calling iam.get_account_password_policy() (will retry) for user cdduser, error: An error occurred (NoSuchEntity) when calling the GetAccountPasswordPolicy operation: The Password Policy with domain name ACCOUNT_ID cannot be found.
Need to add test for NoSuchEntity
when getting the accounts password policy and if triggered, create a policy that aligns with the workshop policy.
reference to #11
If you've completed a dispenser, modified or built your own, or used one at a workshop, please post your pictures here. GitHub doesn't support video embedding, but links to YouTube are fine.
All posts will be moderated for content.
Hi!
I forgot/lost some data needed to login to my aws console created on the workshop. I tried to get it from the url your provided on the workshop (wa.....io) however this page doesn't work anymore. Is it only a temporary error on the page? If not how can I get my account details again?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.