marriage icon indicating copy to clipboard operation
marriage copied to clipboard

More detailed instruction for using cloud formation template

Open MineSafety opened this issue 4 years ago • 37 comments

Thanks for the new enhancements/changes, but am not sure whether using the new .yaml file replaces all previous AWS Lambda steps or is simply a supplement to it. Because when I follow the new instructions as is, I keep getting '403 Access Denied" errors for AWSLambda.

CleanShot 2020-07-26 at 08 17 24

From what I've read, I think it has something to do with setting an IAM role on the Configure stack options page, but I'm not too familiar with using AWS so anything additional direction that can be provided in the setup instructions would be much appreciated.

CleanShot 2020-07-26 at 08 19 12

MineSafety avatar Jul 26 '20 12:07 MineSafety

I ran into the same issue as you, turned out I had specified my S3 bucket incorrectly. Make sure to

  1. copy the deployment.zip file to your own s3 bucket
  2. specify the name of the bucket in the relevant field (just bucket name, no s3:// needed)
  3. specify the "key" of the deploy file (path of the file in the bucket, without bucket name, e.g. myfiles/deployment.zip)

JanLauGe avatar Jul 26 '20 18:07 JanLauGe

Thanks. Just so I'm clear, you're referring to this area of AWS? CleanShot 2020-07-26 at 17 41 30@2x

MineSafety avatar Jul 26 '20 21:07 MineSafety

Correct

On Sun, Jul 26, 2020, 17:42 Mine Safety [email protected] wrote:

Thanks. Just so I'm clear, you're referring to this area of AWS? [image: CleanShot 2020-07-26 at 17 41 30@2x] https://user-images.githubusercontent.com/47421280/88490132-556cdb80-cf67-11ea-9526-1ab49045adc3.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chuckha/marriage/issues/3#issuecomment-664044234, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSM2WD4FRZPTGN7MQWQYBDR5SPNTANCNFSM4PH6SZ4A .

JanLauGe avatar Jul 27 '20 01:07 JanLauGe

Got it resolved @MineSafety?

chuckha avatar Jul 27 '20 17:07 chuckha

It worked fine for me. Just got booked, thank you for your help @chuckha 😄 🤵 👰

JanLauGe avatar Jul 30 '20 20:07 JanLauGe

Hello @chuckha , first of all, thank you so much for sharing your code so couples like my finance and I could get an appointment slot without stressing out ourselves. I'm a complete stranger to Github or coding, so I followed your instructions from README step by step and managed to reach to the end and get a result. However, I experienced the exact same issue as @MineSafety did. Screen Shot 2020-08-03 at 7 21 34 PM I didn't change any default fields in parameters when creating a stack, but before creating a stack, I compressed the 6 files downloaded from you and renamed it deployment.zip, and also created a new folder under Downloads in my Mac and then renamed it to cupidsarrow, and drag "deployment.zip" into it. I saw the reply from @JanLauGe but I'm not quite sure what he means. Could you tell me what exactly need to be fixed? Thank you very much.

iriswu2020 avatar Aug 03 '20 23:08 iriswu2020

Ah. It’s a bit tough if you’re unfamiliar with coding. 

I’ll take a look tomorrow and see if the permissions are still public and update this issue. Thanks for reporting! Mine Safety [email protected] wrote: “Hello @chuckha , first of all, thank you so much for sharing your code so couples like my finance and I could get an appointment slot without stressing out ourselves. I'm a complete stranger to Github or coding, so I followed your instructions from README step by step and managed to reach to the end and get a result. However, I experienced the exact same issue as @MineSafety did.  ”

[Screen Shot 2020-08-03 at 7 21 34 PM] “ I didn't change any default fields in parameters when creating a stack, but before creating a stack, I compressed the 6 files downloaded from you and renamed it deployment.zip, and also created a new folder under Downloads in my Mac and then renamed it to cupidsarrow, and drag "deployment.zip" into it.  I saw the reply from @JanLauGe but I'm not quite sure what he means. Could you tell me what exactly need to be fixed? Thank you very much. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.”

chuckha avatar Aug 04 '20 02:08 chuckha

@chuckha Thanks a lot.

iriswu2020 avatar Aug 04 '20 16:08 iriswu2020

Hey @chuckha. I set everything up, but haven't received any slack messages yet. I left the frequency parameter as the default (1 hour). Am I suppose to receive a slack message every hour telling me whether an appointment is available or not? Or is it that it checks every hour and only slacks me when there is an available appointment?

gilruben avatar Aug 04 '20 18:08 gilruben

you should see a message every hour. Maybe there's something in the cloudwatch logs? Alternatively you can send it a test event from the lambda dashboard page and see if it shows you an error. Mine Safety [email protected] wrote: “Hey, I set everything up, but haven't received any slack messages yet. I left the frequency parameter as the default (1 hour). Am I suppose to receive a slack message every hour telling me whether an appointment is available or not? Or is it that it checks every hour and only slacks me when there is an available appointment?”

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckha avatar Aug 04 '20 19:08 chuckha

you should see a message every hour. Maybe there's something in the cloudwatch logs? Alternatively you can send it a test event from the lambda dashboard page and see if it shows you an error. Mine Safety [email protected] wrote: “Hey, I set everything up, but haven't received any slack messages yet. I left the frequency parameter as the default (1 hour). Am I suppose to receive a slack message every hour telling me whether an appointment is available or not? Or is it that it checks every hour and only slacks me when there is an available appointment?” — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

I checked the cloud watch logs and everything looks good. There are no errors and I can see that the data is being retrieved from calendly. It looks like I entered the whole channel url for the SlackChannelID parameter, instead of just the channel id. I'm waiting for the next slack message. I'll update you regardless of whether I get the message or not. Thanks for your help with this and for creating this app. I really appreciate it. 👏

gilruben avatar Aug 04 '20 21:08 gilruben

nice, let me know how it goes! Mine Safety [email protected] wrote: ““you should see a message every hour. Maybe there's something in the cloudwatch logs? Alternatively you can send it a test event from the lambda dashboard page and see if it shows you an error. Mine Safety [email protected] wrote: “Hey, I set everything up, but haven't received any slack messages yet. I left the frequency parameter as the default (1 hour). Am I suppose to receive a slack message every hour telling me whether an appointment is available or not? Or is it that it checks every hour and only slacks me when there is an available appointment?” — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.”

I checked the cloud watch logs and everything looks good. There are no errors and I can see that the data is being retrieved from calendly. I looks like I entered the whole channel url for the SlackChannelID parameter, instead of just the channel id. I'm waiting to for the next slack message. I'll update you regardless of whether I get the message or not. Thanks for your help with this and for creating this app. I really appreciate it. 👏”

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckha avatar Aug 04 '20 21:08 chuckha

@chuckha it's working now. Thanks!

gilruben avatar Aug 04 '20 21:08 gilruben

Hi @chuckha , can you let us know how to get past the error that @MineSafety had? Thank you!

ghost avatar Aug 04 '20 23:08 ghost

updated the permissions. give it a try again and let me know how it goes! Mine Safety [email protected] wrote: “Hi @chuckha , can you let us know how to get past the error that @MineSafety had? Thank you!”

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckha avatar Aug 05 '20 00:08 chuckha

@chuckha , all set now. thank you!!

ghost avatar Aug 05 '20 00:08 ghost

fantastic! Mine Safety [email protected] wrote: “@chuckha , all set now. thank you!!”

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckha avatar Aug 05 '20 00:08 chuckha

Thank you~~ @chuckha @MineSafety I tried again and it's working (Create_Complete). The error is gone and now I'm waiting for my first message in slack.

iriswu2020 avatar Aug 05 '20 01:08 iriswu2020

Wonderful news!! Multiple slots just opened up on 4 dates: 8/25~8/28. I just made an appointment. So excited.

iriswu2020 avatar Aug 06 '20 15:08 iriswu2020

:D congratulations! Mine Safety [email protected] wrote: “Wonderful news!! Multiple slots just opened up on 4 dates: 8/25~8/28. I just made an appointment. So excited.”

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

chuckha avatar Aug 06 '20 16:08 chuckha

Hi @chuckha, I think that this is a really great idea, thanks for building this out, it can help a lot of people! I'm trying to get this set up for my cousin and her friends but ran into some issues. In the Amazon stack events, I get UPDATE_COMPLETE, UPDATE_IN_PROGRESS and UPDATE_COMPLETE_CLEANUP_IN_PROGRESS, no errors. But I'm not seeing anything in the Output. Also nothing in Slack.

  1. Do I use OAuth Access Token or Bot User OAuth Access Token as the parameter?
  2. My Slack Bot has a grey circle instead of green circle (active). Is that an issue?
  3. I'm pretty sure I followed all the steps but is there anything I could have missed and is there any info that I can provide to help troubleshoot?

Thank you! And I apologize for the so many questions haha.

leonidblk avatar Aug 08 '20 01:08 leonidblk

Hello, thanks for the code. I can't make it work... I tried both Channel ID, with C and without C. For the Oath token, I built an app and gave admin settings and took the access token. Something else I should be doing? :(

Screen Shot 2020-08-11 at 3 52 35 PM Screen Shot 2020-08-11 at 3 53 13 PM

nkiraz avatar Aug 11 '20 19:08 nkiraz

Ah! You need to be in the us-east-1 region

Sorry for not including that! Mine Safety [email protected] wrote: “Hello, thanks for the code.  I can't make it work...  I tried both Channel ID, with C and without C.  For the Oath token, I built an app and gave admin settings and took the access token. Something else I should be doing? :(”

[Screen Shot 2020-08-11 at 3 52 35 PM] “”

[Screen Shot 2020-08-11 at 3 53 13 PM] “ — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.”

chuckha avatar Aug 11 '20 20:08 chuckha

Ah, thank you! I was thinking about where are the first slacks I created... So I have these, same thing, not getting any updates.. I wonder if I am adding the wrong channel ID or Oath token... Any feedback would be highly appreciated..

Screen Shot 2020-08-11 at 7 15 38 PM

nkiraz avatar Aug 11 '20 23:08 nkiraz

Hard to debug without more information. Are there any messages in the logs? Mine Safety [email protected] wrote: “Ah, thank you! I was thinking about where are the first slacks I created...  So I have these, same thing, not getting any updates.. I wonder if I am adding the wrong channel ID or Oath token...  Any feedback would be highly appreciated..”

[Screen Shot 2020-08-11 at 7 15 38 PM] “ — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.”

chuckha avatar Aug 11 '20 23:08 chuckha

I sent you a screen recording.. to your email :) I hope you can check it out...

nkiraz avatar Aug 12 '20 01:08 nkiraz

Can someone help me? I can send all my passwords... or can you forward your slack notifications to my slack account? I keep checking but no luck and I need to figure this out... 😩

nkiraz avatar Aug 13 '20 21:08 nkiraz

@nkiraz I have one suggestion if you have not tried it. On the slack side of things, did you invite the bot that you created into the slack channel where you want to receive the messages?? eg typing @yourBotName within the channel. Once invited if you are not getting any errors I think it will just work.

JFajobi avatar Aug 17 '20 23:08 JFajobi

@nkiraz I have one suggestion if you have not tried it. On the slack side of things, did you invite the bot that you created into the slack channel where you want to receive the messages?? eg typing @yourBotName within the channel. Once invited if you are not getting any errors I think it will just work.

Thank you! 😭 I didn't do that before, now done that... Question about token, which one should I be using 1-2-3 or 4? Also Channel ID should I add it with C or without C?

Screen Shot 2020-08-18 at 5 32 22 PM Screen Shot 2020-08-18 at 5 32 39 PM

Thanks!!! 🙏

nkiraz avatar Aug 18 '20 21:08 nkiraz

@nkiraz The OAuth token should be the one starting with xoxb-11*** in your top image. Channel ID should be the whole ID, so in this case yes include the C.

JFajobi avatar Aug 18 '20 22:08 JFajobi