Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update modules with missing steps #33

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

PBudgie
Copy link

@PBudgie PBudgie commented Mar 28, 2020

Issue #, if available:

Description of changes:
I worked through the tutorial and ended up debugging quite a few issues, so I updated the tutorial to contain missing steps that are required to get the skill working. I also did some markdown reformatting and added a few images to make the steps clearer.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -66,7 +76,7 @@ import logging
import ask_sdk_core.utils as ask_utils
import os
from ask_sdk_s3.adapter import S3Adapter
s3_adapter = S3Adapter(bucket_name=os.environ["S3_PERSISTENCE_BUCKET"])
s3_adapter = S3Adapter(bucket_name="NAME_OF_YOUR_BUCKET_HERE")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we removing os.environ from here? That's how an Alexa Hosted skill references an S3 bucket created by Alexa Hosted.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using os.environ["my_bucket_name"] throws errors during testing. The log is not very descriptive but this is what it looks like.
os_environ_error

@@ -8,7 +8,7 @@
import ask_sdk_core.utils as ask_utils
import os
from ask_sdk_s3.adapter import S3Adapter
s3_adapter = S3Adapter(bucket_name=os.environ["S3_PERSISTENCE_BUCKET"])
s3_adapter = S3Adapter(bucket_name="NAME_OF_YOUR_BUCKET_HERE")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we removing os.environ from here? That's how an Alexa Hosted skill references an S3 bucket created by Alexa Hosted.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see the comment above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants